Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Rolayler on August 09, 2014, 05:10:37 am

Title: [QUESTION] Custom Class creation
Post by: Rolayler 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)
Title: Re: [QUESTION] Custom Class creation
Post by: Rolayler 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.
Title: Re: [QUESTION] Custom Class creation
Post by: Kaev on August 09, 2014, 11:10:21 am
Did you insert your modified DBCs in the dbc folder of the server?
Title: Re: [QUESTION] Custom Class creation
Post by: Rolayler 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
Title: Re: [QUESTION] Custom Class creation
Post by: Kaev 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)?
Title: Re: [QUESTION] Custom Class creation
Post by: Rolayler 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)
Title: Re: [QUESTION] Custom Class creation
Post by: Kaev 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 (http://modcraft.io/viewtopic.php?f=26&t=3838" onclick="window.open(this.href);return false;) 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. :)