Page 1 of 1

Sorcerer 0.0.1a : Whats wrong with my addon

Posted: Sat Jan 05, 2013 5:47 am
by Sradac
With my addon enabled, I go to start a new game and tome just gets stuck sitting at 100% progress. I checked te4_log and it appears that the addon was loaded just fine, it just wont go any farther:

Code: Select all

Binding addon	Sorcerer Class	/addons/tome-sorcerer.teaa	tome-sorcerer-1.0.0
 * with data
 * with hooks
[1] = /loaded-addons/sorcerer/data/birth/classes/sorcerer.lua:68730779bde0a6c6fa1942c2913da190
[2] = /loaded-addons/sorcerer/data/talents/spells/sorcery.lua:e99640031001a7b510ba3dff0d92f292
[3] = /loaded-addons/sorcerer/data/talents/spells/spells-sorcery.lua:0ba53a505fc0a945dad050e6b2bdb4f3
[4] = /loaded-addons/sorcerer/hooks/load.lua:244d4430f589d05b616b7f21f13a7161
[5] = /loaded-addons/sorcerer/init.lua:eb2be5a51a25f53a6c64c47f5bc38ac0
[MODULE LOADER] addon 	sorcerer	 MD5	1373f6ae016e5926e8066cab7ddd90f3	computed in 	263	/loaded-addons/sorcerer
I am attaching the addon to here. Could some kind soul take a look at this and maybe let me know what the issue is? I used both the spellsword and barbarian as reference points for the architecture of this and replicated as much as I could.

spell/sorcerery is literally just a copy / paste of spell/arcane data as a placeholder. To prevent conflicts I (think) I replaced everything with placeholder info like talent names, requirements, descriptions, types, etc.

Also would appreciate feedback from anyone on my ideas. If you check sorcerery.lua the names, descriptions, and a comment outline some top level ideas I have on this class.

Re: Sorcerer 0.0.1a : Whats wrong with my addon

Posted: Sat Jan 05, 2013 7:22 am
by lukep

Code: Select all

Lua Error: /engine/Birther.lua:46: /data-sorcerer/birth/classes/sorcerer.lua:50: table index is nil
	At [C]:-1 
	At [C]:-1 error
	At /engine/Birther.lua:46 loadDefinition
	At /hooks/sorcerer/load.lua:12 
	At [string "return function(l, self, data) local ok=false..."]:1 
	At /mod/load.lua:304 
	At [C]:-1 require
	At /engine/Module.lua:159 load
	At /engine/Module.lua:699 instanciate
	At /engine/utils.lua:1906 showMainMenu
	At /engine/init.lua:136 
	At [C]:-1 dofile
	At /loader/init.lua:190 
That's the error you should be looking at, it points you to line 50 of the birth file, which is:

Code: Select all

		[ActorTalents.T_ARCANE_RECONSTRUCTION] = 1,
The problem is that that talent does not exist, you should have ActorTalents.T_HEAL instead. All talents are called by their "short_name" in the code (which is usually, but not always the same as the "name").

Also, some of the new talents pop errors when you mouse over them, but I didn't look into that more.

Re: Sorcerer 0.0.1a : Whats wrong with my addon

Posted: Sat Jan 05, 2013 4:29 pm
by Sradac
ah haha. ok thanks.