Jump to content


Photo

BarFiller

luaaddonmorathbarfiller

32 replies to this topic

#1 Morath

Morath

    Member

  • Members
  • PipPip
  • 19 posts

    Posted 01 May 2015 - 02:42 AM

    Greetings fellow Adventurers!

    First I'd like to point out that I have never programmed in Lua before attempting this!

    Also I'd like to thank Byrth and SnickySnacks for their work on BattleMod, and PointWatch respectively. I borrowed some of their code including the menu, and incoming chunk analysis code for use in this addon.

     
    With all that out of the way, I'd like to introduce to you all the Windower addon, BarFiller!

     

    View on GitHub

    Download latest ZIP (v0.2.5)

    1. Copy addons\barfiller to your local Windower4\addons folder
    2. Copy addons\libs\images.lua to your local Windower4\addons\libs folder
    3. I recommend installing Montserrat, and/or Ubuntu Mono fonts, otherwise the Addon will use your PCs default "sans-serif" font

    What does it do? Simply put, it displays an experience bar above the Help Window. It will display at the top-center of the screen no matter what resolution you're using, and display your current level progress below. Includes XP needed to reach the next level, overall %, and XP/hr.

     

    If you have any requests, and/or feedback please let me know. I'll be monitoring this thread often.

     

    Available commands

    Spoiler

     

    Future Features & Screenshots

    Spoiler

     

    Version History

    Spoiler

    Edited by Morath, 05 June 2015 - 06:26 PM.

    • Xeye likes this

    #2 Arcon

    Arcon

      Advanced Member

    • Windower Staff
    • 1189 posts
    • LocationMunich, Germany

    Posted 01 May 2015 - 06:25 AM

    Looks great! Two things:

     

    1. Where is the official pull request? :)
    2. I sure hope it fills smoothly and doesn't just jump to the next value! This is 2015 after all, everything needs to be smooth~

     

    Edit:

    Also, I vote changing colors depending on fill status! Greener or bluer the higher it gets :D



    #3 Morath

    Morath

      Member

    • Members
    • PipPip
    • 19 posts

      Posted 01 May 2015 - 06:53 AM

      Thanks!

       

      1. Somewhere over the Atlantic Ocean at the moment. It's coming shortly.

      2. Smooth animations is on my todo list, and I'll look into shifting colour palettes.

       

      EDIT: I think I finally got my Git Pull Request up. I can see it on the website, so I assume it's pending now.



      #4 Morath

      Morath

        Member

      • Members
      • PipPip
      • 19 posts

        Posted 05 May 2015 - 11:28 PM

        v0.1.9 was just pushed, and brings with it detailed information below the Experience bar:

        • Main Job
        • Main Job Level
        • Current XP
        • Total XP for Current Level
        • XP To Next Level
        • % of Current Level

        FU2eJED.png



        #5 Morath

        Morath

          Member

        • Members
        • PipPip
        • 19 posts

          Posted 10 May 2015 - 11:05 PM

          v0.2.0 was just pushed with added EXP/hr counter, and now loads properly at character selection screen:

           

          cqmO0Wm.png

           

          EXP/hr only updates on chunk updates, instead of every second like in PointWatch. This was to limit the amount of wasted calculations, and keep the memory usage down.



          #6 Kappachino1911

          Kappachino1911

            Member

          • Members
          • PipPip
          • 13 posts

            Posted 12 May 2015 - 04:24 AM

            Looks awesome!!  Pardon me for my ignorance but how can I start using this addon?


            • Morath likes this

            #7 Morath

            Morath

              Member

            • Members
            • PipPip
            • 19 posts

              Posted 12 May 2015 - 05:42 AM

              Looks awesome!!  Pardon me for my ignorance but how can I start using this addon?

               

              Thank you! However, I would wait until it's merged with the official Windower repo before using it. Arcon and some others are helping me to clean up the code to make it safe and ready for public use. My first few updates were pretty ugly and using very bad coding practices to get it to work.

               

              EDIT: Once it's merged with the Windower repo you'll be able to download the addon properly in the Launcher > Addons tab.


              Edited by Morath, 12 May 2015 - 05:52 AM.


              #8 Kappachino1911

              Kappachino1911

                Member

              • Members
              • PipPip
              • 13 posts

                Posted 13 May 2015 - 03:23 AM

                Sounds great!! Can't wait for it.  Keep up the great work man!


                • Morath likes this

                #9 Morath

                Morath

                  Member

                • Members
                • PipPip
                • 19 posts

                  Posted 23 May 2015 - 11:00 AM

                  v0.2.1 adds a new Image library, converting all the prim to Image Objects



                  #10 Avaro

                  Avaro

                    Advanced Member

                  • Members
                  • PipPipPip
                  • 37 posts

                    Posted 23 May 2015 - 03:37 PM

                    I like it reminds me of 14. Keep up the great work. :)


                    • Morath likes this

                    #11 Morath

                    Morath

                      Member

                    • Members
                    • PipPip
                    • 19 posts

                      Posted 24 May 2015 - 12:55 AM

                      That's what I'm going for :)

                       

                      The base functionality is all there, now I'm going for style updates. Working on smooth animations next.



                      #12 Morath

                      Morath

                        Member

                      • Members
                      • PipPip
                      • 19 posts

                        Posted 24 May 2015 - 02:25 AM

                        v0.2.2 now has smooth animations, thanks to Iryoku for the logic

                         

                        Zippy Gif Preview

                        Gfycat Preview

                        Imgur Gifv Preview


                        Edited by Morath, 01 June 2015 - 06:22 PM.


                        #13 Morath

                        Morath

                          Member

                        • Members
                        • PipPip
                        • 19 posts

                          Posted 25 May 2015 - 02:25 AM

                          v0.2.3 removed the need for 10 second delay on startup, I was forgetting to update windower.ffxi.get_player(), and re-added frame_count to prevent Text flicker.



                          #14 mmckee

                          mmckee

                            Newbie

                          • Members
                          • Pip
                          • 6 posts

                            Posted 30 May 2015 - 06:21 AM

                            Hey, made an account here to tell you this, but in the current version there is a bug for new players who don't have a subjob on line 337 of static.lua.

                             

                            if you replace that line with this code:

                             

                                if info.sub_job == nil then
                                    player.sub = '--'
                                else
                                   player.sub = '('..string.lower(info.sub_job)..') ' 
                                end
                             
                            That will fix it.
                             
                            I tried to create a github account to contact you but I haven't figure out how on that site. Figured this would be easier.
                             
                            Hope it helps, thanks for making an awesome addon.

                            • Morath likes this

                            #15 Arcon

                            Arcon

                              Advanced Member

                            • Windower Staff
                            • 1189 posts
                            • LocationMunich, Germany

                            Posted 30 May 2015 - 06:32 AM

                            You can't message other people on GitHub, but you can commit a fix for the issue yourself there, or open an issue on his or our issue tracker :)



                            #16 Morath

                            Morath

                              Member

                            • Members
                            • PipPip
                            • 19 posts

                              Posted 30 May 2015 - 07:06 AM

                              Thanks for letting me know, I'll add that in!  :)

                               

                              EDIT: I don't have another mule to test this on, but it should simplify things, basically: IF variable == true THEN true ELSE false END

                               

                              player.sub = (info.sub_job and '('..string.lower(info.sub_job)..') ' or '(---) ') 

                               

                               

                              Hey, made an account here to tell you this, but in the current version there is a bug for new players who don't have a subjob on line 337 of static.lua.

                              [...]



                              #17 Avaro

                              Avaro

                                Advanced Member

                              • Members
                              • PipPipPip
                              • 37 posts

                                Posted 01 June 2015 - 09:02 AM

                                Hey I've installed this to test it aswell and see the bar, but no job or exp is shown.


                                • Morath likes this

                                #18 Morath

                                Morath

                                  Member

                                • Members
                                • PipPip
                                • 19 posts

                                  Posted 01 June 2015 - 12:22 PM

                                  Hey I've installed this to test it aswell and see the bar, but no job or exp is shown.

                                   

                                  Thanks for downloading it to test, but make sure you copy all the contents of addons\barfiller, as well as the addons\libs\images.lua file in order for the addon to work.



                                  #19 Morath

                                  Morath

                                    Member

                                  • Members
                                  • PipPip
                                  • 19 posts

                                    Posted 01 June 2015 - 04:37 PM

                                    v0.2.4 Fixed memory leak when calculating new width, renamed functions to be read easier, strings are now updated by a factor of time instead of frames for a more consistent experience at any frame rate.

                                     

                                    Image library also updated to include drag support, and some functions were added: width, height, get_extents, draggable

                                     

                                    NOTE: BarFiller does not have dragging enabled by default!



                                    #20 mmckee

                                    mmckee

                                      Newbie

                                    • Members
                                    • Pip
                                    • 6 posts

                                      Posted 02 June 2015 - 05:06 AM

                                      I am getting an error at line 120 of barfiller.lua. 
                                       

                                      if chunk_update then
                                           local old_width = foreground_bar:width()
                                           local new_width = calc_new_width()
                                      

                                      I'm not entirely sure what is causing it, I copied fresh so maybe I missed something.

                                       

                                      *edit submitted too soon*

                                       

                                      Further information:

                                      The addon loads, doesn't show text under the bar, and when I goto status in the menu (to update the chunk) it spams the error constantly.
                                       

                                      Barfiller: Lua runtime error: barfiller/barfiller.lua:120: attempt to call method 'width' (a nil value)


                                      • Morath likes this





                                      Also tagged with one or more of these keywords: lua, addon, morath, barfiller

                                      1 user(s) are reading this topic

                                      0 members, 1 guests, 0 anonymous users