Modding Help

Have a really dumb question? Ask it here to get help from the experts (or those with too much time on their hands)

Moderator: Moderator

Post Reply
Message
Author
The Revanchist
Uruivellas
Posts: 762
Joined: Sun Nov 03, 2013 12:14 am

Modding Help

#1 Post by The Revanchist »

I have recently began trying to add a summoning talent, and come up against some problems I should have seen coming.

Code: Select all

stack traceback:
	[C]: in function 'error'
	/engine/interface/ActorTalents.lua:152: in function </engine/interface/ActorTalents.lua:134>
Lua Error: /engine/interface/GameTargeting.lua:118: /engine/interface/ActorTalents.lua:152: data-minion/talents/summon-basic.lua:79: attempt to call global 'setupSummon' (a nil value)
stack traceback:
	data-minion/talents/summon-basic.lua:79: in function <data-minion/talents/summon-basic.lua:34>
	[C]: in function 'xpcall'
	/engine/interface/ActorTalents.lua:147: in function </engine/interface/ActorTalents.lua:134>
	At [C]:-1 
	At [C]:-1 error
	At /engine/interface/GameTargeting.lua:118 fct
	At /engine/interface/GameTargeting.lua:124 targetMode
	At /engine/interface/GameTargeting.lua:185 
	At /engine/KeyBind.lua:229 
I can see I'm doing something wrong... but I don't know what.
I've taken this almost wholesale from the Warhound talent, and changed some simple things... but I don't really know how to fix this. :(

Any help would be appreciated, and I've enclosed attachment, in case whoever wants to correct my mistake needs it.

Edit: I also seem unable to get the talent icon working.
Last edited by The Revanchist on Wed Jan 29, 2014 5:52 pm, edited 1 time in total.
Reason: Forgot something.

stinkstink
Spiderkin
Posts: 543
Joined: Sat Feb 11, 2012 1:12 am

Re: Modding Help

#2 Post by stinkstink »

Try adding this to summon-basic.lua:

Code: Select all

local setupSummon = getfenv(self:getTalentFromId(self.T_SPIDER).action).setupSummon
Edit: Changed the who to self, I just grabbed the line of code from an artifact without examining it too closely

The Revanchist
Uruivellas
Posts: 762
Joined: Sun Nov 03, 2013 12:14 am

Re: Modding Help

#3 Post by The Revanchist »

FANTASTIC!

...which is to say, it worked.

I also figured out why the icon wouldn't load; missing a folder.

Thank you very much.

Post Reply