Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Nic on July 13, 2015, 07:15:16 pm

Title: [3.3.5a] Create new race --> error message
Post by: Nic on July 13, 2015, 07:15:16 pm
Hello,

i try to copy the blood elf class for testing but i stuck on the CharacterCreate.xml.

I change the follow files:
ChrRaces.dbc
--> Copy the bloodelf row and change id to 22 and change the name columns (#6, #11, #17, #34, #51 in Taliis) to "Te" and "Testelf"

CharBaseInfo.dbc
--> Add line (id 22 and class 1)

Trinity core SharedDefines.h
--> Add "RACE_TESTELF = 22,"
--> Add " |(1<<(RACE_TESTELF-1)))" to racemask
--> Compile the core and start it with the modified dbcs

GlueStrings.lua
--> Add before RACE_INFO_BLOODELF the lines:
RACE_INFO_TESTELF = "Test it";
RACE_INFO_TESTELF_FEMALE = "Test it";
--> Add before ABILITY_INFO_BLOODELF1 the lines:
ABILITY_INFO_TESTELF1 = "- Line 1";
ABILITY_INFO_TESTELF2 = "- Line 2";
ABILITY_INFO_TESTELF3 = "- Line 3";
ABILITY_INFO_TESTELF4 = "- Line 4";

CharacterCreate.lua
--> Change MAX_RACES from 10 to 11
--> Add after ["DRAENEI_FEMALE"]   = {0.5, 0.625, 0.5, 0.75},
["TESTELF_MALE"]     = {0.5, 0.625, 0, 0.25},
["TESTELF_FEMALE"]   = {0.5, 0.625, 0, 0.25},

CharacterCreate.xml
Add after
<CheckButton name="CharacterCreateRaceButton10" inherits="CharacterCreateRaceButtonTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton9" relativePoint="BOTTOMLEFT" x="0" y="-21"/>
</Anchors>
</CheckButton>

this:
<CheckButton name="CharacterCreateRaceButton22" inherits="CharacterCreateRaceButtonTemplate" id="22">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton8" relativePoint="BOTTOMLEFT" x="0" y="-10"/>
</Anchors>
</CheckButton>   

At the end i remove the interface protection and start wow. If i want to create a new character i get this error:
(http://www11.pic-upload.de/13.07.15/guntqcmglu.jpg)

Did i forget something?
Title: Re: [3.3.5a] Create new race --> error message
Post by: Ghaster on July 13, 2015, 07:27:35 pm
Your first problem is that your race id is 22, the maximum in wotlk is 21. So you will have to replace an existing race to make it work.

Second your race button should look like this:

Code: [Select]
<CheckButton name="CharacterCreateRaceButton11" inherits="CharacterCreateRaceButtonTemplate" id="22">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton8" relativePoint="BOTTOMLEFT" x="0" y="-10"/>
</Anchors>
</CheckButton>

The reason is that the values doesn't follow the race id, but their own system.
I think that should be all to get it working. Maybe you will need to fill out CharSections with your new race too.
Title: Re: [3.3.5a] Create new race --> error message
Post by: Nic on July 13, 2015, 08:41:45 pm
Looks better. The next problem is the backgroundcolor. Value is nil.
(http://www11.pic-upload.de/13.07.15/vxx9vblxzmyn.jpg)
Title: Re: [3.3.5a] Create new race --> error message
Post by: detonatorss on July 13, 2015, 09:05:56 pm
Quote from: "Nic"
Looks better. The next problem is the backgroundcolor. Value is nil.
(http://www11.pic-upload.de/13.07.15/vxx9vblxzmyn.jpg)

Add a background m2

Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.m2
Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.skin01
Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.skin02
Title: Re: [3.3.5a] Create new race --> error message
Post by: Nic on July 13, 2015, 09:24:55 pm
Okay background is no problem, but the next problem. If i click on my new race icon it happens nothing. Just the "class mask" change:
(http://www11.pic-upload.de/13.07.15/emst3pdi7n9.jpg)

I added one line to CharBaseInfo.dbc:
12, 1

I add the dbc to my patch file and server folder.
Title: Re: [3.3.5a] Create new race --> error message
Post by: detonatorss on July 13, 2015, 10:16:31 pm
Quote from: "Nic"
Okay background is no problem, but the next problem. If i click on my new race icon it happens nothing. Just the "class mask" change:
(http://www11.pic-upload.de/13.07.15/emst3pdi7n9.jpg)

I added one line to CharBaseInfo.dbc:
12, 1

I add the dbc to my patch file and server folder.

12,1,
12,5,

for example.

You have to add your race id and not 12 if it's 12 yes but if not no.
Title: Re: [3.3.5a] Create new race --> error message
Post by: Nic on July 13, 2015, 10:26:03 pm
My ChrRace.dbc:
12,12,2,0x102D,15476,15475,"Te",1,7,15007,0x448,"Testelf",162,0x1,,,,"Testelf",,,,,,,,,,,,,0xFF01FE,,,,463,,,,,,,,,,,,,0xFF01EC,,,,"Testelf",,,,,,,,,,,,,0xFF01EC,"NORMAL","EARRINGS","NORMAL",1,

My CharBaseInfo.dbc:
12,1,

I think its correct, isnt it?
Title: Re: [3.3.5a] Create new race --> error message
Post by: detonatorss on July 13, 2015, 10:27:47 pm
Quote from: "Nic"
My ChrRace.dbc:
12,12,2,0x102D,15476,15475,"Te",1,7,15007,0x448,"Testelf",162,0x1,,,,"Testelf",,,,,,,,,,,,,0xFF01FE,,,,463,,,,,,,,,,,,,0xFF01EC,,,,"Testelf",,,,,,,,,,,,,0xFF01EC,"NORMAL","EARRINGS","NORMAL",1,

My CharBaseInfo.dbc:
12,1,

I think its correct, isnt it?

Yes put it on your server and your client and make the correspondent changed to the db and it will work

Remember now TrinityCore use a racemask you will have to adapt by yourself the sql query's
Title: Re: [3.3.5a] Create new race --> error message
Post by: Nic on July 14, 2015, 07:17:26 pm
I fill the database and recheck my CharBaseInfo but the problem is not solved.

If i click on my new race button it happens nothing.
Title: Re: [3.3.5a] Create new race --> error message
Post by: detonatorss on July 15, 2015, 09:52:30 pm
Quote from: "Nic"
I fill the database and recheck my CharBaseInfo but the problem is not solved.

If i click on my new race button it happens nothing.

i don't know what it's the problem
Title: Re: [3.3.5a] Create new race --> error message
Post by: Nic on July 15, 2015, 10:20:35 pm
I uploaded my files (its a german client) as a zip.

Maybe you found the problem :/

PS: I delete the CharSection because it was very buggy. I dont be sure how i copy so much rows (Bloodelf race has over 1000 entries).