Archreaver Class (nothing special) HELP WANTED!

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Archreaver Class (nothing special) HELP WANTED!

#1 Post 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
Last edited by Micbran on Sat Oct 04, 2014 11:25 pm, edited 2 times in total.
A little bit of a starters guide written by yours truly here.

grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

Re: Archreaver Class (nothing special) HELP WANTED!

#2 Post by grayswandir »

'#GOLD#Life per level:#LIGHT_BLUE# 2',},
Missing a comma.
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: Archreaver Class (nothing special) HELP WANTED!

#3 Post 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
A little bit of a starters guide written by yours truly here.

Razakai
Uruivellas
Posts: 889
Joined: Tue May 14, 2013 3:45 pm

Re: Archreaver Class (nothing special) HELP WANTED!

#4 Post 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.

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: Archreaver Class (nothing special) HELP WANTED!

#5 Post 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.
A little bit of a starters guide written by yours truly here.

NemesisZeru
Archmage
Posts: 335
Joined: Wed Jan 15, 2014 12:56 pm
Location: Somewhere, probably.

Re: Archreaver Class (nothing special) HELP WANTED!

#6 Post 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

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Archreaver Class (nothing special) HELP WANTED!

#7 Post 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.
My feedback meter decays into coding. Give me feedback and I make mods.

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: Archreaver Class (nothing special) HELP WANTED!

#8 Post 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
A little bit of a starters guide written by yours truly here.

grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

Re: Archreaver Class (nothing special) HELP WANTED!

#9 Post 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.
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: Archreaver Class (nothing special) HELP WANTED!

#10 Post 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!
A little bit of a starters guide written by yours truly here.

Razakai
Uruivellas
Posts: 889
Joined: Tue May 14, 2013 3:45 pm

Re: Archreaver Class (nothing special) HELP WANTED!

#11 Post 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.

Post Reply