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 creation  (Read 1213 times)

Rolayler

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
[QUESTION] Custom Class creation
« on: August 09, 2014, 05:10:37 am »
When going to make a new character of a custom class, it tells me "Error creating character" on the character create screen it also doesn't deselect the previously selected class, though it also selects the custom class(ie Warrior and custom class both look like they are selected if the custom class is selected), is this an xml/lua/core issue? Or is this a dbc issue?
(Sorry if this is not the right forum for this)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rolayler

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #1 on: August 09, 2014, 08:49:18 am »
I guess I should add in that I have done the core edits, modified the playercreateinfo.sql, done with CharacterCreate.xml and .lua, the GlueStrings.lua, modified the CharBaseInfo.dbc, ChrClass.dbc the gt dbcs, the talent.dbc, talenttab.dbc, and have the proper icon in the blp file.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #2 on: August 09, 2014, 11:10:21 am »
Did you insert your modified DBCs in the dbc folder of the server?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rolayler

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #3 on: August 09, 2014, 11:32:34 am »
Oh some sqls I missed apparently, I just got the playercreateinfo.sql, not the playercreatespell.sql ect.(maybe?) ;  ; though yes, I have made sure the dbcs on the server are up to date with the ones in my patches
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #4 on: August 09, 2014, 12:08:40 pm »
Afaik you dont need to give starting spells.
Did you create a entire new class (with a new id) or did you replace one (e.g. mage)?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rolayler

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #5 on: August 09, 2014, 01:17:58 pm »
Entirely new class, with a new class id(12), and good, I cannot find the correct sqls on the test server I am using...at least that match up to the running server haha(Most likely just a name change since the test server is a more updated core than the running server atm)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [QUESTION] Custom Class creation
« Reply #6 on: August 09, 2014, 03:20:56 pm »
I never made a new class, but could it be that yo uneed to edit the core a bit?
In this tutorial viewtopic.php?f=26&t=3838 i saw something that it could be.

Quote
@@ -105,7 +105,7 @@ enum Classes
     CLASS_SHAMAN        = 7,
     CLASS_MAGE          = 8,
     CLASS_WARLOCK       = 9,
-    //CLASS_UNK           = 10,
+    CLASS_TEST          = 10,
     CLASS_DRUID         = 11
 };
 
@@ -116,7 +116,7 @@ enum Classes
     ((1<<(CLASS_WARRIOR-1))|(1<<(CLASS_PALADIN-1))|(1<<(CLASS_HUNTER-1))|
     (1<<(CLASS_ROGUE-1))  |(1<<(CLASS_PRIEST-1)) |(1<<(CLASS_SHAMAN-1))|
     (1<<(CLASS_MAGE-1))   |(1<<(CLASS_WARLOCK-1))|(1<<(CLASS_DRUID-1)) |
-    (1<<(CLASS_DEATH_KNIGHT-1)))
+    (1<<(CLASS_TEST-1))   |(1<<(CLASS_DEATH_KNIGHT-1)))

he replaced the unknown class (id 10) with his new class and added class_test to the enum then.
You could try this. :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »