Forum > Serverside Modding
[3.3.5a] Create new race --> error message
(1/3) > >>
Nic:
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:
Did i forget something?
Ghaster:
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: ---<CheckButton name="CharacterCreateRaceButton11" inherits="CharacterCreateRaceButtonTemplate" id="22"> <Anchors> <Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton8" relativePoint="BOTTOMLEFT" x="0" y="-10"/> </Anchors> </CheckButton> --- End code ---
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.
Nic:
Looks better. The next problem is the backgroundcolor. Value is nil.
detonatorss:
--- Quote from: "Nic" ---Looks better. The next problem is the backgroundcolor. Value is nil.
--- End quote ---
Add a background m2
Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.m2 Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.skin01 Interface/Glues/Models/YOURRACENAMEHERE/YOURRACENAME.skin02
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:
I added one line to CharBaseInfo.dbc: 12, 1
I add the dbc to my patch file and server folder.
Navigation
[0] Message Index
[#] Next page
|