• 0

    posted a message on Prat 3.0 Chat Mod Framework
    Currently getting this Lua error:
    Message: Interface\AddOns\Prat-3.0\modules\ChannelSticky.lua:316: attempt to call method 'ResgisterSmartGroup' (a nil value)
    Time: 08/04/16 20:51:09
    Count: 1
    Stack: Interface\AddOns\Prat-3.0\modules\ChannelSticky.lua:316: in function `OnModuleDisable'
    Interface\AddOns\Prat-3.0\addon\modules.lua:188: in function <Interface\AddOns\Prat-3.0\addon\modules.lua:186>
    (tail call): ?
    [C]: ?
    [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
    (tail call): ?
    ...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:593: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:586>
    (tail call): ?
    Interface\AddOns\Prat-3.0\addon\addon.lua:351: in function `?'
    ...Ons\Prat-3.0_Libraries\AceTimer-3.0\AceTimer-3.0.lua:53: in function <...Ons\Prat-3.0_Libraries\AceTimer-3.0\AceTimer-3.0.lua:48>
    
    Locals: <none>


    The solution is simple though!
    On line 316 in ChannelSticky.lua there is an "S" too much in Register.

    This:
    self:Re[COLOR="Red"][B]s[/B][/COLOR]gisterSmartGroup(false)


    Should be this:
    self:RegisterSmartGroup(false)
    Posted in: General AddOns
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from Seerah
    How, exactly, does it not work? Do you get an error or anything?


    Hmm never had an lua error, but seemed like i had it disabled somehow. Turned lua errors on again, and now when i run my click events i get this lua error:
    Message: Interface\AddOns\Prat-3.0\modules\ChannelSticky.lua:316: attempt to call method 'ResgisterSmartGroup' (a nil value)
    Time: 08/04/16 20:51:09
    Count: 1
    Stack: Interface\AddOns\Prat-3.0\modules\ChannelSticky.lua:316: in function `OnModuleDisable'
    Interface\AddOns\Prat-3.0\addon\modules.lua:188: in function <Interface\AddOns\Prat-3.0\addon\modules.lua:186>
    (tail call): ?
    [C]: ?
    [string "safecall Dispatcher[1]"]:9: in function <[string "safecall Dispatcher[1]"]:5>
    (tail call): ?
    ...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:593: in function <...ace\AddOns\Masque\Libs\AceAddon-3.0\AceAddon-3.0.lua:586>
    (tail call): ?
    Interface\AddOns\Prat-3.0\addon\addon.lua:351: in function `?'
    ...Ons\Prat-3.0_Libraries\AceTimer-3.0\AceTimer-3.0.lua:53: in function <...Ons\Prat-3.0_Libraries\AceTimer-3.0\AceTimer-3.0.lua:48>
    
    Locals: <none>


    This might cause my addon to fail, or my addon failing something in prat. I dont know - can you tell from the error?


    Edit:
    I tried moving "SetActionBarToggles(1, 1, 1, 1);" to my mouseover event instead, and it works just fine. There seems to be an issue somewhere when i click the buttons - even though all the profiles get set and copied. I'm confused at this point :S


    Edit again:
    I just tried not setting the prat profile, and the lua error stops. And also moved the code back into my PrankUISetup.Setup function. It worked without calling ReloadUI(); and then manually doing /reload instead - but when i do ReloadUI(); on line 53 the SetActionBarToggles dosn't go through.

    So to sum it up:
    - PrankUISetup.DB(Prat); on line 44 causes the lua error above
    - Having SetActionBarToggles(1, 1, 1, 1) (on line 50) without ReloadUI() (on line 53) it actually SETS the Action Bar Toggles to 1, but still needs a ReloadUI() to show on screen (so does kgPanels, sexyMap etc.)


    Edit yet again:
    Seems like the lua error from prat is a typo in their addon. "ResgisterSmartGroup" has one S too many. Unfortunatly just removing prat completly dosn't help with my action bar issue, which still fails to set to "1, 1, 1, 1" when i do a ReloadUI() right after.


    Edit again again:
    I decided to remove the ReloadUI() from the PrankUISetup.Setup function - and instead have an extra step which requires the user to click to Reload. This seems to have fixed my actionbar issue.

    I have also made a post in the prat forums with the typo they have, but i will just disable lua erros through my UI so it dosn't ruin the experience for the user.

    Also found an lua error in SUF when setting profile, and made them an ticket.

    Even though the lua errors happen, all the profiles get set correctly - so it's not breaking anything - and there is coming an reloadui after the error so it should not cause any problems while playing.
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    Oh, I forgot. You are using Bartender4. In your profile setup, toggle the bars within BT4. Then when you set the profile in your AddOn, it should be fixed.


    Cant seem to figure it out. Typing /run SetActionBarToggles(1, 1, 1, 1); in chat ingame and then do a reload UI it works. But cant seem to get it to work from inside my PrankUISetup.setup function at line 50. If you wouldn't mind taking a look at it?
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    Oh, I forgot. You are using Bartender4. In your profile setup, toggle the bars within BT4. Then when you set the profile in your AddOn, it should be fixed.


    The Bartender stuff works great, but the state configuration dosn't work properly unless you enable all action bars through the wow settings. So having to do that manually would suck, but luckly i found this from your previous comment.

    SHOW_MULTI_ACTIONBAR_1, SHOW_MULTI_ACTIONBAR_2, SHOW_MULTI_ACTIONBAR_3, SHOW_MULTI_ACTIONBAR_4 = 1


    Seems to be the way to go
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    Lines 4-7 MUST have the word local in front of them. Don't pollute the global namespace, please. Same with all your functions, and UISetup. Once the first instance of UISetup is a local variable, all the subtables will also be local in file scope.

    You may not need ReloadUI on line 47; comment it out and test.

    As for your todos, sorry, I can't help you there. I haven't messed with any of those AddOns' APIs. The rest of it looks alright at first glance, except for the notes above.


    Thanks a lot! First time doing an addon, so these notes are excellent! I will fix em up real fast.

    Though the reloadUI is needed. kgPanels dont actually do the artwork when i both set and copy profiles, and the minimap needs it too when global profile is set.

    About my todos, damn :/ I have a hard time figuring them out.
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    MayronUI and ElvUI are far from "simple".

    Before you code anything, go into each AddOn that supports profiles, create a new profile called Elegant UI or ElegantUI, and adjust the settings as you see fit.

    If you have done that already, but the profile is saved under some other name, still create the new profile and copy the settings via the Profiles tab tool.

    Then, in your code, use this API to set the profile, where "DBObjectLib" is the name of Bartender or kgPanel's database object. You can look in their respective ToC files to get that information.


    Hey again. A few days later and from the link you sent i actually managed to do something cool IMO. I have made an addon that now can set a profile and copy from another (set "CharacterName - Realm" and copy from "Prankstars Elegant UI")

    And i can now bring forth the window from /pui or /prankui

    I just have a few things i cant figure out now. If you look at my code, please tell me if i could improve / change anything.

    BUT the main issues i have left is:
    - Masque Profile (I cant seem to reach the database variable like the other addons)
    - Move Anything Profile (different kind of profile system, dunno what to do here)
    - Tidy plates paste settings from clipboard (tidy plates is weird.it has the code needed in the lua in saved variables, but you have to manually click a button "paste" at either dmg/healer/tank
    - Enable all actionbars (WOW settings, can i check those from LUA?)
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    I have now managede to create the Interface of the Addon within WoW and have two buttons i can click.

    https://github.com/DennisJohnsen/PrankstarsElegantUI_Setup-Addon

    Looks as shitty code, but it works. Now i just have to see if i know how to do the advanced stuff :( Still need to get /prankui working too, and a way of :Hide() the main window incase you dont want to do it right now.
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    MayronUI and ElvUI are far from "simple".

    Before you code anything, go into each AddOn that supports profiles, create a new profile called Elegant UI or ElegantUI, and adjust the settings as you see fit.

    If you have done that already, but the profile is saved under some other name, still create the new profile and copy the settings via the Profiles tab tool.

    Then, in your code, use this API to set the profile, where "DBObjectLib" is the name of Bartender or kgPanel's database object. You can look in their respective ToC files to get that information.


    Oh i know they're not simple. When i mention "simple" is because of that i only need that little feature with the profile copying from a .lua file.

    I will try and look at what you just mentioned =) Thought i doubt i will have any luck - don't even know how to make a frame with a backdrop and custom .tga as background for it (i use kgPanels for the stuff :P)
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Quote from myrroddin
    Post what, if any, code you have, and clearly state what you want done, or need help with.

    Yes, you've covered some of that in previous posts, but having whatever code you do have would help immensely.

    Afterall, what someone else would do with your UI and what you would do could be very different things.

    **Edit, just wanted to add that I like the .tga images, they look very nice.


    All the code i have is in the Github i linked - as said, i suck :P But i have all the right intentions. I figured it would be easier to talk on skype etc. for the specifics, but i guess i could go into more details here :)

    So what i wanted was to have a simple addon, which worked a little like MayronUI or ElvUI, when it comes to working with other addons.

    Simply put, the only thing i need is to have some profile settings for the various addons copied as "YourCharacterName-RealmName". So if you see the above image, when you click either the iron horde look, or the legion look - you should get a profile with the settings i have made for the given addons.

    Most of the addons share the same code, but some of them (fx. kgPanels and Castbars) will have their own profile code which need to be copied depending on what layout look you choose.

    That is basically it - only that feature of copying addon settings from files in the addon.


    Then some of the other requests is that it is simple code - as in if in the future i need a 3rd or 4th layout it could be fairly simple to extend the ui code with a 3rd or 4th layout.

    Hope it's enough info :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    I have a few things ready allready (targa wise) but the code obviously isn't quite there.

    I have comments in the core.lua files trying to say what i need/want but the artwork is cut out and ready.

    https://github.com/DennisJohnsen/PrankstarsElegantUI_Setup-Addon
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    Hey Guys!

    I'm currently working on finishing my new updated UI for this upcoming new expansion. This is some of what i managed to build using addons such as Shadowed Unit Frames, Bartender and kgPanels.

    This time i've stayed with a very similar layout, but i would like to focus more on an ability to change the look'n'feel of the UI. At the moment it will have Iron Horde (as seen is the video, slightly updated though) and a brand new Legion look.

    I also want to focus on usability. Right now my current UI has a long readme.txt with many steps for setting up profiles etc. This is something i also would like to change, so i thought about getting a setup addon for my UI.

    This is where YOU guys come in. I have a very limited lua skill set, and it comes down to a few for loops and if statements :P I was looking for someone to help me create this addon for setting up my new UI. Here is a picture of how it should work. Basically just two "radio buttons" in the shape of some .tga images with a hover effect.


    Click to enlarge

    Click to enlarge


    I cannot offer anything, but i would very much like to give the recognition in the UI in someway.
    I would really like to go over the specifics if someone would be interrested in helping me out.

    Thanks in advance, Prankstar
    Posted in: AddOn HELP!
  • 0

    posted a message on Need help doing a simple setup addon for my new UI
    .
    Posted in: AddOn HELP!
  • 0

    posted a message on Castbars - Official Thread
    Hey man.

    Pre patch for legion just hit! 7.0.3.

    Your addon is no longer working, are you planning on updating? Also, one thing i've missed is to change Frame Strata + Ancor Points for the bars. So if you would look at that too, that would be great. Thanks!
    Posted in: General AddOns
  • To post a comment, please or register a new account.