Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: salagon on August 22, 2012, 08:03:22 pm

Title: [Question] Custom Class For Trinity
Post by: salagon on August 22, 2012, 08:03:22 pm
Hello,

I followed the guide on here on how to make a custom class shell. However, I saw a fork in the road when in comes to core editing. I edited as much as I could in the core but it keeps giving me a character create error. Can someone tell me what files I need to edit and what I need to edit them to in my Trinity core to make the custom class be accessible. So far I edited SharedDefines.cpp and added in my custom class with the value 12 to it. What other things do I need to edit besides SharedDefines.cpp?
Title: Re: [Question] Custom Class For Trinity
Post by: Steff on August 23, 2012, 01:18:41 pm
Trinity loads the most stuff from DBCs and not form a MySQL table like arcemu/ascent. So cahnge the DBCs and re upload to your server.
Title: Re: [Question] Custom Class For Trinity
Post by: salagon on August 24, 2012, 05:59:29 pm
Tried it, same thing as alwasy. Error

(http://img444.imageshack.us/img444/5006/wow2012082411552804.png)
Title: Re: [Question] Custom Class For Trinity
Post by: Steff on August 24, 2012, 06:47:22 pm
And? Did you cehck your server logfile?
Title: Re: [Question] Custom Class For Trinity
Post by: Crumpet on August 24, 2012, 09:34:05 pm
You'll need to modify the database tables (I can't remember which ones exactly) in order to actually create the character.
Title: Re: [Question] Custom Class For Trinity
Post by: salagon on August 24, 2012, 10:19:28 pm
I compiled my own core but my worldserver.exe wasnt working so I just took that from a trinity repack i found, would that effect it? Heres my log:

http://pastebin.com/Btem70CT (http://pastebin.com/Btem70CT" onclick="window.open(this.href);return false;)
Title: Re: [Question] Custom Class For Trinity
Post by: Steff on August 25, 2012, 12:55:27 am
database seams to be very dirty. There arr tonns of errers.
Title: Re: [Question] Custom Class For Trinity
Post by: Ascathos on August 25, 2012, 01:08:04 am
Did you include every changed dbc in your server files ? This sounds to me like one of the more likely reasons
Title: Re: [Question] Custom Class For Trinity
Post by: Steff on August 25, 2012, 09:58:12 am
Die you realy read the log?

player_classlevelstats is a MySQL table in world DB.
This table defines your mana and HP basd on your class.

12-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.
2012-08-24 16:10:57 ERROR: Wrong class 12 in `player_classlevelstats` table, ignoring.

Seams that you need to do core changes.
Title: Re: [Question] Custom Class For Trinity
Post by: Supora on August 25, 2012, 03:45:36 pm
Quote from: "salagon"
I compiled my own core but my worldserver.exe wasnt working so I just took that from a trinity repack
Thats the answer. You need your compiled worldserver.
Title: Re: [Question] Custom Class For Trinity
Post by: salagon on August 26, 2012, 11:42:42 pm
however, my biggest concern comes from the idea that when i compiled my core, it didnt spit out a worldserver and auth.exe, so how do I exactly get mine when they dont even make them in the complimation
Title: Re: [Question] Custom Class For Trinity
Post by: Steff on August 27, 2012, 08:24:59 am
Then you perhaps dont compile the full project. DOnt look at the right place or dont look at errors in log of compiler.
Title: Re: [Question] Custom Class For Trinity
Post by: detonatorss on October 17, 2012, 12:34:45 pm
it's very simple you have to put in clas_levelstats all the levels begin 1 to 80 writing the stats of the class the same in another table

and yes you have to create a playercreateinfo, if you don't have this the class crash
Title: Re: [Question] Custom Class For Trinity
Post by: XxXGenesisXxX on October 17, 2012, 02:49:31 pm
Quote from: "salagon"
however, my biggest concern comes from the idea that when i compiled my core, it didnt spit out a worldserver and auth.exe, so how do I exactly get mine when they dont even make them in the complimation

If you followed the guide, made the class .cpp and .h, redid cmake, ran build solution tehn ran install project and it's not spitting out the worldserver, you are clearly getting critical errors when building the core and it's not being successful.

Try recompiling and then look at the log as it's building.

Edit: Also a good trick is to use the search function. Hit CTRL-F and search for Shaman and just keep searching till it's run out of new searches. Then look through it all to see what needs to be added.