Page 1 of 1

Archreaver Class (nothing special) HELP WANTED!

Posted: Fri Oct 03, 2014 5:48 pm
by Micbran
So, I'm making an addon (All it is is some archmage talents mashed up with reaver talents, no special code or talents. Though I would like to know how to do that) and I have no idea what I'm doing.
I looked at some others guys birth, load and init file, so for the most part, the syntax is (hopefully) spot on. But still, I'm getting this error whenever I start a new game
Lua Error: /engine/utils.lua:1784: /data-areav/birth.lua:21: '}' expected (to close '{' at line 19) near 'name'
At [C]:-1
At [C]:-1 error
At /engine/utils.lua:1784 loadfilemods
At /engine/Birther.lua:36 loadDefinition
At /hooks/areav/load.lua:18
At [string "return function(l, self, data) local ok=false..."]:1
At /mod/load.lua:350
At [C]:-1 require
At /engine/Module.lua:158 load
At /engine/Module.lua:815 instanciate
At /engine/utils.lua:2199 showMainMenu
At /engine/init.lua:156
At [C]:-1 dofile
At /loader/init.lua:196
Here is a Dropbox link to my init, load, and birth
load: https://www.dropbox.com/s/s4t039fqznyooff/load.lua?dl=0
init: https://www.dropbox.com/s/dbkypa5pxqw95po/init.lua?dl=0
birth: https://www.dropbox.com/s/04fisa13cubia ... h.lua?dl=0

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Fri Oct 03, 2014 6:05 pm
by grayswandir
'#GOLD#Life per level:#LIGHT_BLUE# 2',},
Missing a comma.

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Fri Oct 03, 2014 8:32 pm
by Micbran
If it works after this I'm going to cry.

EDIT: I appreciate the help, but it didn't work
Lua Error: /engine/utils.lua:1784: /data-areav/birth.lua:21: '}' expected (to close '{' at line 19) near 'name'
At [C]:-1
At [C]:-1 error
At /engine/utils.lua:1784 loadfilemods
At /engine/Birther.lua:36 loadDefinition
At /hooks/areav/load.lua:18
At [string "return function(l, self, data) local ok=false..."]:1
At /mod/load.lua:350
At [C]:-1 require
At /engine/Module.lua:158 load
At /engine/Module.lua:815 instanciate
At /engine/utils.lua:2199 showMainMenu
At /engine/init.lua:156
At [C]:-1 dofile
At /loader/init.lua:196

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Fri Oct 03, 2014 9:15 pm
by Razakai
The best thing for you to do is download an existing addon and use the code. Feel free to take mine for a template:

http://te4.org/games/addons/tome/eternaldarkness

However, mine is a class rework rather than something that modifies a class. If you want a better understanding of adding brand new classes you'll need another. Doctornull and HousePet are two of the more prolific authors for adding new classes so I'd recommend taking a look at their addons.

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Fri Oct 03, 2014 9:55 pm
by Micbran
Razakai wrote:The best thing for you to do is download an existing addon and use the code. Feel free to take mine for a template:

http://te4.org/games/addons/tome/eternaldarkness

However, mine is a class rework rather than something that modifies a class. If you want a better understanding of adding brand new classes you'll need another. Doctornull and HousePet are two of the more prolific authors for adding new classes so I'd recommend taking a look at their addons.
I did, I used Nemesis Zeru's Phantom class. I still don't understand why it crashes though. I'll look over the code for the hooks and birth.lua later on the Phantom addon again.

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sat Oct 04, 2014 3:26 am
by NemesisZeru
Micbran wrote:
Razakai wrote:The best thing for you to do is download an existing addon and use the code. Feel free to take mine for a template:

http://te4.org/games/addons/tome/eternaldarkness

However, mine is a class rework rather than something that modifies a class. If you want a better understanding of adding brand new classes you'll need another. Doctornull and HousePet are two of the more prolific authors for adding new classes so I'd recommend taking a look at their addons.
I did, I used Nemesis Zeru's Phantom class. I still don't understand why it crashes though. I'll look over the code for the hooks and birth.lua later on the Phantom addon again.
There's your problem, right there. I'm aaaaaawful at code. x3

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sat Oct 04, 2014 3:39 am
by HousePet
Yep, I agree that you went wrong with that choice of addon as a base.

You need a comma at the end of lines 20, 21, 46, and 52.

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sat Oct 04, 2014 11:24 pm
by Micbran
NemesisZeru wrote:
Micbran wrote:
Razakai wrote:The best thing for you to do is download an existing addon and use the code. Feel free to take mine for a template:

http://te4.org/games/addons/tome/eternaldarkness

However, mine is a class rework rather than something that modifies a class. If you want a better understanding of adding brand new classes you'll need another. Doctornull and HousePet are two of the more prolific authors for adding new classes so I'd recommend taking a look at their addons.
I did, I used Nemesis Zeru's Phantom class. I still don't understand why it crashes though. I'll look over the code for the hooks and birth.lua later on the Phantom addon again.
There's your problem, right there. I'm aaaaaawful at code. x3
Note to self: Use grayswandir's or Doctornull's code next time.
Anyways, since this is receiving so much support even though is a trivial problem, here's a new error! (Yay!).
Lua Error: /engine/Birther.lua:46: /data-areav/birth.lua:51: table index is nil
At [C]:-1
At [C]:-1 error
At /engine/Birther.lua:46 loadDefinition
At /hooks/areav/load.lua:18
At [string "return function(l, self, data) local ok=false..."]:1
At /mod/load.lua:350
At [C]:-1 require
At /engine/Module.lua:158 load
At /engine/Module.lua:815 instanciate
At /engine/utils.lua:2199 showMainMenu
At /engine/init.lua:156
At [C]:-1 dofile
At /loader/init.lua:196
Once again, the link for the dropbox:
https://www.dropbox.com/s/04fisa13cubia ... h.lua?dl=0

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sun Oct 05, 2014 12:28 am
by grayswandir
It should be T_WEAPON_COMBAT, not T_COMBAT_ACCURACY - I have no idea why the game has a separate id for that talent.

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sun Oct 05, 2014 1:35 pm
by Micbran
grayswandir wrote:It should be T_WEAPON_COMBAT, not T_COMBAT_ACCURACY - I have no idea why the game has a separate id for that talent.
I see, thank you.


We(mostly you guys) finally did it! The addon has been published for all those to download, but like I said, the addon contains no special talents or anything, just the Archmage and Reaver class smashed together. Feedback is appreciated as well as ideas and perhaps a link to someplace where I can learn how to program custom talents. Thank you everyone!

Re: Archreaver Class (nothing special) HELP WANTED!

Posted: Sun Oct 05, 2014 2:34 pm
by Razakai
Looking at the data/talents and superload/talents folders of one of the previously posted addons will show how to create custom trees and talents. That's the best way of doing it.