This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Custom Class For Trinity  (Read 4170 times)

salagon

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 23
    • View Profile
[Question] Custom Class For Trinity
« 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

salagon

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 23
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #2 on: August 24, 2012, 05:59:29 pm »
Tried it, same thing as alwasy. Error

« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #3 on: August 24, 2012, 06:47:22 pm »
And? Did you cehck your server logfile?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Crumpet

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

salagon

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 23
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #5 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #6 on: August 25, 2012, 12:55:27 am »
database seams to be very dirty. There arr tonns of errers.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #7 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #8 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Supora

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 143
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #9 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

salagon

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 23
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #10 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #11 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #12 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [Question] Custom Class For Trinity
« Reply #13 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »