+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
Like Tree1Likes

Thread: Gadgets: Outfitter... looking for Addon Dev(s)

  1. #1
    RIFT Guide Writer Wylt's Avatar
    Join Date
    Oct 2011
    Posts
    910

    Default Gadgets: Outfitter... looking for Addon Dev(s)

    I need to take a break from Rift Addon Dev for a time. I have an upgrade for Outfitter about 50% complete and will need to update it to account for the event system changes. However, I find that I currently don't have the time, or motivation, to get this done.

    I'm swamped with work (where I program C#/SQL), working 60+ hours per week for the last few months with no end in sight. This has me in a pretty severe case of burnout to the point that even looking at my computer brings on a sense of dread... let alone when I open yet more code.

    What I'm looking for is an existing addon dev, or someone who wants to break into it, who can dive in and finish off the update I've started and help bring the event handling up to speed between now and 2.3.

    Please shoot me an email if you're interested in assisting / temporarily taking this addon over: wykkyd.gaming@gmail.com

  2. #2
    Rift Disciple Thorarin's Avatar
    Join Date
    Oct 2011
    Posts
    136

    Default

    Unfortunately I don't really have the time to maintain additional addons either.
    Best of luck with your work situation though :S

    KaruulAlert maintainer/co-author (Curse / Rift UI)

  3. #3
    Plane Touched
    Join Date
    Dec 2010
    Posts
    216

    Default

    Got those error today it was fine lately but strangely getting this today:

    Error: Gadgets_Outfitter/Outfitter.Window.lua:194: attempt to index local 'slot' (a nil value)
    In wtLibCore / wtLibCore.Frame3_wykkydOutfitterButtonBar_clicky:R ightClick
    stack traceback:
    Gadgets_Outfitter/Outfitter.Window.lua:194: in function 'ShowGear'
    Gadgets_Outfitter/Outfitter.Window.lua:294: in function 'LoadEquipment'
    Gadgets_Outfitter/Outfitter.Window.lua:454: in function 'OpenWindow'
    Gadgets_Outfitter/Outfitter.lua:302: in function <Gadgets_Outfitter/Outfitter.lua:284>

  4. #4
    Rift Chaser
    Join Date
    Feb 2011
    Posts
    350

    Default

    Love this addon! Please don't let it do the way of the dodo.
    Someone go to this guys place of work and do his C#/SQL so he can game/LUA more.

  5. #5
    Plane Touched
    Join Date
    Dec 2010
    Posts
    216

    Default

    I tried removing it and reinstalling Outfitter and now getting:

    Code:
    Error: Incorrect function usage.
      Parameters: (userdata: ), "TOPCENTER", (Frame: wtLibGadget.Frame3_Frame2_wykkydOutfitterIconAlpha.0x228b3420), "TOPCENTER", 260
      Parameter types: userdata, string, Frame, string, number
    Function documentation:
    	Pins a point on this frame to a location on another frame. This is a rather complex function and you should look at examples to see how to use it.
    	This function can take many different forms. In general, it looks like this: SetPoint(point_on_this_frame, target_frame, point_on_target_frame [, x_offset, y_offset]).
    	The first part is the point on this frame that will be attached. Usually, these are string identifiers. "TOPLEFT", "TOPCENTER", "TOPRIGHT", "CENTERLEFT", "CENTER", "CENTERRIGHT", "BOTTOMLEFT", "BOTTOMCENTER", "BOTTOMRIGHT". You may also use a string identifier that refers to a single axis - "TOP", "BOTTOM", "LEFT", "RIGHT", "CENTERX", "CENTERY". If you want more direct numeric control you can use number pairs. 0,0 is equivalent to "TOPLEFT", 1,1 is equivalent to "BOTTOMRIGHT", 0.5,nil is equivalent to "CENTERX".
    	The second part is the frame to attach to, as well as the point on that frame to attach to. The frame is simply passing in the frame table. The point is the same identifier or number pair as the first parameter.
    	Optionally, you may include an X or Y offset to the point.
    	This connection is permanent, and if the target frame moves, this frame will move along with it. 
    	Caveat: If the target is a frame set to the "restricted" SecureMode, and the client is currently in "secure" mode, then unexpected behavior may occur.
    	Not permitted on a frame with "restricted" SecureMode while the addon environment is secured.
    		Frame:SetPoint(...)   -- ...
    Parameters:
    		...:	This function's parameters are complicated. Read the above summary for details.
        In wtLibGadget / wtLibGadget.WTGadgetCreate_wrapper_outfitWrapper:LeftClick
    stack traceback:
    	[C]: in function 'SetPoint'
    	libWykkyd/wyk.frame.properties.lua:128: in function 'setPoint'
    	libWykkyd/wyk.frame.standard.lua:97: in function 'CreateText'
    	libWykkyd/wyk.frame.slideframe.lua:12: in function 'SlideFrame'
    	Gadgets_Outfitter/Outfitter.lua:360: in function 'ConfigDialog'
    	wtLibGadget/dialogs/wtGadget_CreateDialog.lua:375: in function <wtLibGadget/dialogs/wtGadget_CreateDialog.lua:354>

  6. #6
    Soulwalker RavenDust's Avatar
    Join Date
    Mar 2013
    Posts
    6

    Default

    Sadly, the only thing i could do is try and fix the errors that come up (which i'd totally try). I'll go have a look at it today, and if i get an idea of how you've done it, i could at least try to mainain it a bit until you come back

  7. #7
    Plane Walker
    Join Date
    Dec 2010
    Posts
    489

    Default

    http://www.curseforge.com/media/file....2.11.18.2.zip

    I just updated it to support Sl images and to support 20 roles.
    Mael (Cleric)/Merxie (Warrior)/Merxion (Rogue)/Merxi (Mage) - <Valens Nexus> - Wolfsbane
    4/4 TotDQ - 3/4 FT - 2/5 EE - 1/4 GA

  8. #8
    Plane Walker
    Join Date
    Dec 2010
    Posts
    489

    Default

    I'll play around and see if I can sort out how the new event system works and how to implement it.
    I think its as simple as changing this
    Code:
    table.insert(Event.Item.Slot,{Wykkyd.Outfitter.UpdateWindow, "Gadgets_Outfitter", "Wykkyd.Outfitter.UpdateWindow" })
    to this but i'll experiment and see.
    Code:
    Command.Event.Attach(Event.Item.Slot, Wykkyd.Outfitter.UpdateWindow, "Wykkyd.Outfitter.UpdateWindow")
    Mael (Cleric)/Merxie (Warrior)/Merxion (Rogue)/Merxi (Mage) - <Valens Nexus> - Wolfsbane
    4/4 TotDQ - 3/4 FT - 2/5 EE - 1/4 GA

  9. #9
    Soulwalker
    Join Date
    Jun 2013
    Posts
    16

    Default

    Yeah, that's pretty much how the new event system acts. Also note that all the handlers now receive a first argument named "handle" which I haven't really gone a long way to figure out what is. So you'll have to add that first argument to every single handler. Could simply be a reference to the frame it was called on for all I know. A lot of the names for UI events have also changed.

    So if you're used to stuff like this:
    Code:
    button.Event.LeftClick = function() print("Hello world") end
    It should now look something like this:
    Code:
    button:EventAttach(Event.UI.Input.Mouse.Left.Click, function(handle) print("Hello world") end, "Left click handler")
    At least that's what I've been using with great success in my experiments with it. It's a bit annoying to rewrite all the frame events like that, but it's for the greater good of things.

  10. #10
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    I have a text document I use to cut and paste - saves a bit of typing =)

    Code:
    -- \.Event:LeftClick
    :EventAttach(Event.UI.Input.Mouse.Left.Click, function(self, h)
    end, "Event.UI.Input.Mouse.Left.Click")
    
    -- \.Event:LeftDown
    :EventAttach(Event.UI.Input.Mouse.Left.Down, function(self, h)
    end, "Event.UI.Input.Mouse.Left.Down")
    
    -- \.Event:LeftUp
    :EventAttach(Event.UI.Input.Mouse.Left.Up, function(self, h)
    end, "Event.UI.Input.Mouse.Left.Up")
    
    -- \.Event:RightClick
    :EventAttach(Event.UI.Input.Mouse.Right.Click, function(self, h)
    end, "Event.UI.Input.Mouse.Right.Click")
    
    -- \.Event:RightDown
    :EventAttach(Event.UI.Input.Mouse.Right.Down, function(self, h)
    end, "Event.UI.Input.Mouse.Right.Down")
    
    -- \.Event:RightUp
    :EventAttach(Event.UI.Input.Mouse.Right.Up, function(self, h)
    end, "Event.UI.Input.Mouse.Right.Up")
    
    -- \.Event:MouseIn
    :EventAttach(Event.UI.Input.Mouse.Cursor.In, function(self, h)
    end, "Event.UI.Input.Mouse.Cursor.In")
    
    -- \.Event:MouseOut()
    :EventAttach(Event.UI.Input.Mouse.Cursor.Out, function(self, h)
    end, "Event.UI.Input.Mouse.Cursor.Out")
    
    -- \.Event:MouseMove
    :EventAttach(Event.UI.Input.Mouse.Cursor.Move, function(self, h)
    end, "Event.UI.Input.Mouse.Cursor.Move")
    
    -- \.Event:WheelForward
    :EventAttach(Event.UI.Input.Mouse.Wheel.Forward, function(self, h)
    end, "Event.UI.Input.Mouse.Wheel.Forward")
    
    -- \.Event:WheelBack
    :EventAttach(Event.UI.Input.Mouse.Wheel.Back, function(self, h)
    end, "Event.UI.Input.Mouse.Wheel.Back")
    
    -- \.Event:CheckboxChange
    :EventAttach(Event.UI.Checkbox.Change, function(self, h)
    end, "Event.UI.Checkbox.Change")
    
    -- \.Event:SliderChange
    :EventAttach(Event.UI.Slider.Change, function(self, h)
    end, "Event.UI.Slider.Change")
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  11. #11
    Plane Walker
    Join Date
    Dec 2010
    Posts
    489

    Default

    Thanks I'll give it a whirl. I just hate to have to go back to a side bar full of macro's to do this.
    Mael (Cleric)/Merxie (Warrior)/Merxion (Rogue)/Merxi (Mage) - <Valens Nexus> - Wolfsbane
    4/4 TotDQ - 3/4 FT - 2/5 EE - 1/4 GA

  12. #12
    Soulwalker
    Join Date
    Jun 2013
    Posts
    16

    Default

    You can just reply here if you run into any kind of trouble. I'm sure one of us will help. I'll be keeping an eye out. It's a shame to let addons die because they're no longer maintained.
    Zhevron
    Lyrai @ Faeblight NA
    Author of Tome (BETA)

  13. #13
    Plane Walker
    Join Date
    Dec 2010
    Posts
    489

    Default

    Ok Think i understand.

    So as an example from outfitter.

    Code:
    slotIcon.Event.MouseIn = function()
       if Wykkyd.Outfitter.displayedGear[myCount][slot] then 
         --local mouse = Inspect.Mouse()
         Wykkyd.Outfitter.OpenTooltipWindow(myCount, Wykkyd.Outfitter.displayedGear[myCount][slot]) 
       end
    end
    Would turn into
    Code:
    slotIcon:EventAttach(Event.UI.Input.Mouse.Cursor.In, function(self, h)
      if Wykkyd.Outfitter.displayedGear[myCount][slot] then 
        --local mouse = Inspect.Mouse()
        Wykkyd.Outfitter.OpenTooltipWindow(myCount, Wykkyd.Outfitter.displayedGear[myCount][slot]) 
      end	
    end, "Event.UI.Input.Mouse.Cursor.In")
    Last edited by Merxion; 06-20-2013 at 09:15 AM.
    Mael (Cleric)/Merxie (Warrior)/Merxion (Rogue)/Merxi (Mage) - <Valens Nexus> - Wolfsbane
    4/4 TotDQ - 3/4 FT - 2/5 EE - 1/4 GA

  14. #14
    Soulwalker
    Join Date
    Jun 2013
    Posts
    16

    Default

    Yeah, that looks about right. You're getting the hang of it.
    Zhevron
    Lyrai @ Faeblight NA
    Author of Tome (BETA)

  15. #15
    Plane Walker
    Join Date
    Dec 2010
    Posts
    489

    Default

    Wierd one I came across.

    bIcon.Event.LeftClick = macro

    The code above it builds a /yell /shout etc macro for when switching gear sets.

    bIcon:EventAttach(Event.UI.Input.Mouse.Left.Click, function(self, h)
    macro
    end, "Event.UI.Input.Mouse.Left.Click")

    That seemed right but it throws an error it expects an equal sign.
    Mael (Cleric)/Merxie (Warrior)/Merxion (Rogue)/Merxi (Mage) - <Valens Nexus> - Wolfsbane
    4/4 TotDQ - 3/4 FT - 2/5 EE - 1/4 GA

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts