Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: iviaguic on March 28, 2013, 01:08:42 pm

Title: [QUESTION] Some problems when editing CharacterCreate.XML
Post by: iviaguic on March 28, 2013, 01:08:42 pm
Hi there, how are u doing?

Well, i have what I consider a very big problem. When I edited my CharacterCreate.XML file, the race icons are not positionet as wanted. I followed a lot of guides and stuff, but i can't get them in their position.

I would really much appreciate your help!

Here my CharacterCreate.XML file:
Code: [Select]

<Frames>
<CheckButton name="CharacterCreateRaceButton1" inherits="CharacterCreateRaceButtonTemplate" id="1">
<Anchors>
<Anchor point="TOP" relativePoint="TOP" x="-50" y="-43"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton2" inherits="CharacterCreateRaceButtonTemplate" id="2">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton1" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton3" inherits="CharacterCreateRaceButtonTemplate" id="3">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton2" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton4" inherits="CharacterCreateRaceButtonTemplate" id="4">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton3" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton5" inherits="CharacterCreateRaceButtonTemplate" id="5">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton4" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton6" inherits="CharacterCreateRaceButtonTemplate" id="6">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton5" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton7" inherits="CharacterCreateRaceButtonTemplate" id="7">
<Anchors>
<Anchor point="TOP" relativePoint="TOP" x="50" y="-43"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton8" inherits="CharacterCreateRaceButtonTemplate" id="8">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton7" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton9" inherits="CharacterCreateRaceButtonTemplate" id="9">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton8" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton10" inherits="CharacterCreateRaceButtonTemplate" id="10">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton9" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton12" inherits="CharacterCreateRaceButtonTemplate" id="12">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton10" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>
<CheckButton name="CharacterCreateRaceButton11" inherits="CharacterCreateRaceButtonTemplate" id="11">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton12" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
</Anchors>
</CheckButton>


SS:
[attachment=0:1mjiwhx4]WoWScrnShot_032813_125219.jpg[/attachment:1mjiwhx4]
Thank you very much
Title: Re: [QUESTION] Some problems when editing CharacterCreate.XM
Post by: schlumpf on March 28, 2013, 01:12:26 pm
Neither is this server side modding, nor do we know how you define "as wanted". Also, the forum lets you add screenshots as attachment.
Title: Re: [QUESTION] Some problems when editing CharacterCreate.XM
Post by: iviaguic on March 28, 2013, 01:20:26 pm
Quote from: "schlumpf"
Neither is this server side modding, nor do we know how you define "as wanted". Also, the forum lets you add screenshots as attachment.
Thx Schlumpf. Better now?
Title: Re: [QUESTION] Some problems when editing CharacterCreate.XM
Post by: Skullbot on March 28, 2013, 07:20:15 pm
I think you may need to check CharacterCreate.lua, as many things like that are in fact modified by script at runtime.

It's somewhere around line 25 if I remember well.
Code: [Select]
RACE_ICON_TCOORDS =
Title: Re: [QUESTION] Some problems when editing CharacterCreate.XM
Post by: XxXGenesisXxX on March 28, 2013, 08:03:42 pm
The problem is your relative anchor points.

Look at button 11 (which I am assuming is Worgen.

<CheckButton name="CharacterCreateRaceButton11" inherits="CharacterCreateRaceButtonTemplate" id="11">
                        <Anchors>
                           <Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton12" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
                        </Anchors>
                     </CheckButton>

It is relative to button 12,

If you look at Button 1 and button 2 you will see that button 2 positions itself based on where button 1 is, meaning if you move button 1, button 2 will move aswell, because it is anchored to it. Then, button 3 is anchored to button 2, so if you button 2 moves, so does button 3. And of course this works as a chain. Button 1 moves, makes button 2 move, which makes button 3 move. This continues till button 6.

Button 7, is just like button 1, it has it's own starting point on the page to anchor to. Then 8, follows it onward from there and so on.

You need your new buttons to follow the right buttons. Button 11 needs to be anchored to button 6, and button 12 needs to be anchored to button 10. That's if button 11 is Worgen and button 12 is Goblin.
Title: Re: [QUESTION] Some problems when editing CharacterCreate.XM
Post by: iviaguic on March 28, 2013, 10:16:17 pm
Quote from: "XxXGenesisXxX"
The problem is your relative anchor points.

Look at button 11 (which I am assuming is Worgen.

<CheckButton name="CharacterCreateRaceButton11" inherits="CharacterCreateRaceButtonTemplate" id="11">
                        <Anchors>
                           <Anchor point="TOPLEFT" relativeTo="CharacterCreateRaceButton12" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
                        </Anchors>
                     </CheckButton>

It is relative to button 12,

If you look at Button 1 and button 2 you will see that button 2 positions itself based on where button 1 is, meaning if you move button 1, button 2 will move aswell, because it is anchored to it. Then, button 3 is anchored to button 2, so if you button 2 moves, so does button 3. And of course this works as a chain. Button 1 moves, makes button 2 move, which makes button 3 move. This continues till button 6.

Button 7, is just like button 1, it has it's own starting point on the page to anchor to. Then 8, follows it onward from there and so on.

You need your new buttons to follow the right buttons. Button 11 needs to be anchored to button 6, and button 12 needs to be anchored to button 10. That's if button 11 is Worgen and button 12 is Goblin.

Hi there,

im afraid to say that didn't work :( ;(
SS:
[attachment=0:30ls97js]WoWScrnShot_032813_221411.jpg[/attachment:30ls97js]

Any idea?
P.S. Worgen is 12 and Goblin is 11

BTW Thanks for the help ;)