^^Marie^^
20 Feb 2009, 13:09
http://img21.imageshack.us/img21/3117/menuhattweakdb3.jpg
That was the best thing I got... but when I select the custom hat I only see a blank worm (even without the eyebrows).
-What I did:
Open this file ...\data\Tweak\WormAttachments.xml. In this file we can see about the hats, gloves, glasses... And also the many positions those accessories can have (When we right-click in the glove/hat/glasses while we set them, it changes of possition...):
<ContainerResources href='WXFE.A.Gloves.Spacesuit'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.B'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.G'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.P'/>
<ContainerResources href='WXFE.A.Gloves.Terminator'/>
<ContainerResources href='WXFE.A.Gloves.White'/>
<ContainerResources href='WXFE.A.Gloves.White.Br'/>
<ContainerResources href='WXFE.A.Gloves.White.D'/>
<ContainerResources href='WXFE.A.Gloves.White.Y'/>
<!-- Custom hats -->
<ContainerResources href='WXFE.A.Hat.Aerith'/>
<!-- end of Custom hats -->
<ContainerResources href='WXFE.A.Hat.Afro'/>
<ContainerResources href='WXFE.A.Hat.Alien'/>
<ContainerResources href='WXFE.A.Hat.American'/>
<ContainerResources href='WXFE.A.Hat.American.Bl'/>
<ContainerResources href='WXFE.A.Hat.American.S'/>
<ContainerResources href='WXFE.A.Hat.American.Y'/>
<ContainerResources href='WXFE.A.Hat.Arabian'/>
<ContainerResources href='WXFE.A.Hat.Arabian.D'/>
<ContainerResources href='WXFE.A.Hat.Arabian.R'/>
<ContainerResources href='WXFE.A.Hat.Arabian.W'/>
I just added my hat like the others...
And now, I do write the "details" for "ContainerResources" tag. Just like the other hats have. I place it alphabetically sorted, in the first place of hats and after the last gloves "details":
<WXFE_AttachmentOffsets id='WXFE.A.Gloves.White.Y-1'>
<PositionOffset x='0' y='-25' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1.4' y='1.4' z='1.4' />
</WXFE_AttachmentOffsets>
<!-- custom hats -->
<XContainerResourceDetails id='WXFE.A.Hat.Aerith'>
<Value href='WXFE.A.Hat.Aerith-0'/>
<Name>WXFE.A.Hat.Aerith</Name>
<Flags>81</Flags>
</XContainerResourceDetails>
<WXFE_WormAttachments id='WXFE.A.Hat.Aerith-0'>
<MeshID>Aerith</MeshID>
<FrontEndMeshID></FrontEndMeshID>
<MeshTextNameID>FETXT.Hat.Aerith</MeshTextNameID>
<Glasses>true</Glasses>
<Tash>true</Tash>
<Type>0</Type>
<Offsets href='WXFE.A.Hat.Aerith-1'/>
<FrontEndOffsets href='WXFE.A.Hat.Aerith-2'/>
<Lock>Lock.Hat.Aerith</Lock>
<Eyebrow>false</Eyebrow>
</WXFE_WormAttachments>
<WXFE_AttachmentOffsets id='WXFE.A.Hat.Aerith-1'>
<PositionOffset x='0' y='0' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1' y='1' z='1' />
</WXFE_AttachmentOffsets>
<WXFE_AttachmentOffsets id='WXFE.A.Hat.Aerith-2'>
<PositionOffset x='0' y='0' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1' y='1' z='1' />
</WXFE_AttachmentOffsets>
<!-- end of custom hats -->
<XContainerResourceDetails id='WXFE.A.Hat.Afro'>
<Value href='WXFE.A.Hat.Afro-0'/>
<Name>WXFE.A.Hat.Afro</Name>
<Flags>81</Flags>
</XContainerResourceDetails>
To do that, I just copied the details of a hat and changed the name of that hat to "Aerith".
Okay, now if we save the file and start the game, we'll see this thing in the hats menu:
http://img155.imageshack.us/img155/3742/menuhattweak2bq1.jpg
The hat name in the menu now is: FETXT.Hat.Aerith .... and it shows a blank worm:
http://img54.imageshack.us/img54/2659/menuhattweak3go5.jpg
By the way, I've my hat in Character and Objects folders as: HatAerith.xom, Aerith.xom in both folders.
I just found how to correct that, so coming back to the WormAttachments.xml, to the beginning of the file:
<?xml version='1.0' ?>
<xomArchive>
<xomObjects>
<XDataBank id='id-0'>
<Section>0</Section>
<!-- Custom hats -->
<StringResources href='FETXT.Hat.Aerith'/>
<!-- end of Custom hats -->
<ContainerResources href='WXFE.A.Glasses.3D'/>
<ContainerResources href='WXFE.A.Glasses.Elvis'/>
That string will include the name that must be shown in the menu.
Okay, now as always.. we write the "details" here, after <XDataBank> ends:
<ContainerResources href='WXFE.A.Mustache.Viking'/>
<ContainerResources href='WXFE.A.Mustache.Viking.Bk'/>
<ContainerResources href='WXFE.A.Mustache.Viking.G'/>
<ContainerResources href='WXFE.A.Mustache.Viking.R'/>
</XDataBank>
<!-- custom hats -->
<XStringResourceDetails id='FETXT.Hat.Aerith'>
<Value>Aerith</Value>
<Name>FETXT.Hat.Aerith</Name>
<Flags>64</Flags>
</XStringResourceDetails>
<!-- end of custom hats -->
Now we see the correct name, but worm will be blank:
http://img149.imageshack.us/img149/7694/menuhattweak4ui6.jpg
So... Im stucked at this point! Help!
That was the best thing I got... but when I select the custom hat I only see a blank worm (even without the eyebrows).
-What I did:
Open this file ...\data\Tweak\WormAttachments.xml. In this file we can see about the hats, gloves, glasses... And also the many positions those accessories can have (When we right-click in the glove/hat/glasses while we set them, it changes of possition...):
<ContainerResources href='WXFE.A.Gloves.Spacesuit'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.B'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.G'/>
<ContainerResources href='WXFE.A.Gloves.Spacesuit.P'/>
<ContainerResources href='WXFE.A.Gloves.Terminator'/>
<ContainerResources href='WXFE.A.Gloves.White'/>
<ContainerResources href='WXFE.A.Gloves.White.Br'/>
<ContainerResources href='WXFE.A.Gloves.White.D'/>
<ContainerResources href='WXFE.A.Gloves.White.Y'/>
<!-- Custom hats -->
<ContainerResources href='WXFE.A.Hat.Aerith'/>
<!-- end of Custom hats -->
<ContainerResources href='WXFE.A.Hat.Afro'/>
<ContainerResources href='WXFE.A.Hat.Alien'/>
<ContainerResources href='WXFE.A.Hat.American'/>
<ContainerResources href='WXFE.A.Hat.American.Bl'/>
<ContainerResources href='WXFE.A.Hat.American.S'/>
<ContainerResources href='WXFE.A.Hat.American.Y'/>
<ContainerResources href='WXFE.A.Hat.Arabian'/>
<ContainerResources href='WXFE.A.Hat.Arabian.D'/>
<ContainerResources href='WXFE.A.Hat.Arabian.R'/>
<ContainerResources href='WXFE.A.Hat.Arabian.W'/>
I just added my hat like the others...
And now, I do write the "details" for "ContainerResources" tag. Just like the other hats have. I place it alphabetically sorted, in the first place of hats and after the last gloves "details":
<WXFE_AttachmentOffsets id='WXFE.A.Gloves.White.Y-1'>
<PositionOffset x='0' y='-25' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1.4' y='1.4' z='1.4' />
</WXFE_AttachmentOffsets>
<!-- custom hats -->
<XContainerResourceDetails id='WXFE.A.Hat.Aerith'>
<Value href='WXFE.A.Hat.Aerith-0'/>
<Name>WXFE.A.Hat.Aerith</Name>
<Flags>81</Flags>
</XContainerResourceDetails>
<WXFE_WormAttachments id='WXFE.A.Hat.Aerith-0'>
<MeshID>Aerith</MeshID>
<FrontEndMeshID></FrontEndMeshID>
<MeshTextNameID>FETXT.Hat.Aerith</MeshTextNameID>
<Glasses>true</Glasses>
<Tash>true</Tash>
<Type>0</Type>
<Offsets href='WXFE.A.Hat.Aerith-1'/>
<FrontEndOffsets href='WXFE.A.Hat.Aerith-2'/>
<Lock>Lock.Hat.Aerith</Lock>
<Eyebrow>false</Eyebrow>
</WXFE_WormAttachments>
<WXFE_AttachmentOffsets id='WXFE.A.Hat.Aerith-1'>
<PositionOffset x='0' y='0' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1' y='1' z='1' />
</WXFE_AttachmentOffsets>
<WXFE_AttachmentOffsets id='WXFE.A.Hat.Aerith-2'>
<PositionOffset x='0' y='0' z='0' />
<OrientationOffset x='0' y='0' z='0' />
<ScaleOffset x='1' y='1' z='1' />
</WXFE_AttachmentOffsets>
<!-- end of custom hats -->
<XContainerResourceDetails id='WXFE.A.Hat.Afro'>
<Value href='WXFE.A.Hat.Afro-0'/>
<Name>WXFE.A.Hat.Afro</Name>
<Flags>81</Flags>
</XContainerResourceDetails>
To do that, I just copied the details of a hat and changed the name of that hat to "Aerith".
Okay, now if we save the file and start the game, we'll see this thing in the hats menu:
http://img155.imageshack.us/img155/3742/menuhattweak2bq1.jpg
The hat name in the menu now is: FETXT.Hat.Aerith .... and it shows a blank worm:
http://img54.imageshack.us/img54/2659/menuhattweak3go5.jpg
By the way, I've my hat in Character and Objects folders as: HatAerith.xom, Aerith.xom in both folders.
I just found how to correct that, so coming back to the WormAttachments.xml, to the beginning of the file:
<?xml version='1.0' ?>
<xomArchive>
<xomObjects>
<XDataBank id='id-0'>
<Section>0</Section>
<!-- Custom hats -->
<StringResources href='FETXT.Hat.Aerith'/>
<!-- end of Custom hats -->
<ContainerResources href='WXFE.A.Glasses.3D'/>
<ContainerResources href='WXFE.A.Glasses.Elvis'/>
That string will include the name that must be shown in the menu.
Okay, now as always.. we write the "details" here, after <XDataBank> ends:
<ContainerResources href='WXFE.A.Mustache.Viking'/>
<ContainerResources href='WXFE.A.Mustache.Viking.Bk'/>
<ContainerResources href='WXFE.A.Mustache.Viking.G'/>
<ContainerResources href='WXFE.A.Mustache.Viking.R'/>
</XDataBank>
<!-- custom hats -->
<XStringResourceDetails id='FETXT.Hat.Aerith'>
<Value>Aerith</Value>
<Name>FETXT.Hat.Aerith</Name>
<Flags>64</Flags>
</XStringResourceDetails>
<!-- end of custom hats -->
Now we see the correct name, but worm will be blank:
http://img149.imageshack.us/img149/7694/menuhattweak4ui6.jpg
So... Im stucked at this point! Help!