Worms 4 and Ultimate Mayhem tweaking mods
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Tutorial] Change the names of the weapons

4 posters

Go down

[Tutorial] Change the names of the weapons Empty [Tutorial] Change the names of the weapons

Post by WormsS Wed May 18, 2011 4:14 pm

I don't know if you know this.
Okay, first, I'm french. If you don't understand me, ... tell me.

With this tutorial, you can change the name of the weapons, but you can change ALL the texts in Worms 4 Mayhem. I explain it later.

This is a bit difficult.

Open WeapTwk.xml .

You have...

Code:
<?xml version='1.0' ?>
<xomArchive>
  <xomObjects>
    <XDataBank id='id-0'>
      <Section>0</Section>
      <IntResources href='AI.WeaponsDontEndTurn'/>
      <IntResources href='Flood.FloodDuration'/>
...

Now, go to :

Code:
      <ColorResources href='Payload.FuseTimerInitialColor'/>
      <ColorResources href='Payload.FuseTimerUrgentColor'/>
    </XDataBank>

In this tutorial, we will change the name of the Bazooka, for exemple. The "name" of the Bazooka is "Text.kWeaponBazooka".

Now, add a new line, like that :

Code:
      <ColorResources href='Payload.FuseTimerUrgentColor'/>
      <StringResources href='Text.kWeaponBazooka'/>
    </XDataBank>

Be sure you have written "<StringResources ", and not "<ContainerResources".

Now, go to the end of WeapTwk.xml .

You have...

Code:
<XColorResourceDetails id='Payload.FuseTimerUrgentColor'>
      <Value r='255' g='255' b='255' a='255' />
      <Name>Payload.FuseTimerUrgentColor</Name>
      <Flags>64</Flags>
    </XColorResourceDetails>
  </xomObjects>
</xomArchive>

And now, add this:

Code:
    <XStringResourceDetails id='Text.kWeaponBazooka'>
      <Value>The new name of the Bazooka</Value>
      <Name>Text.kWeaponBazooka</Name>
      <Flags>64</Flags>
    </XStringResourceDetails>
  </xomObjects>
</xomArchive>

And change "The new name of the Bazooka" with a name, whatever you want.

Now, save, and launch the game ! Wink

The names of the weapons are in "<DisplayName></DisplayName>" in WeapTwk.xml.


Okay.

You can change ALL the texts in Worms 4: Mayhem.
Just change "Text.kWeaponBazooka" with the "name" of the text to change.

I have the list of all the texts to change (without the texts in the missions) in http://up.sur-la-toile.com/ikn7 with the equivalent... in french. Sorry for you.

Name_of_the_text_to_change = Equivalent_in_french .


With this tutorial, you can change the name of the weapons, of the wormpot, of the comments when a crate appears for exemple...


Oh, and if you want to write accents :

Code:
é : é️
è : è
ê : ê
à : à   (with an espace)
â : Â
ç : ç
ô : ô
É : É
 : Â
WormsS
WormsS
Worms tweaker
Worms tweaker

Posts : 49
Activity Points : 69
Reputation : 9
Join date : 2010-03-31
Age : 26
Location : France

Back to top Go down

[Tutorial] Change the names of the weapons Empty Re: [Tutorial] Change the names of the weapons

Post by PotatoMan Wed May 18, 2011 9:59 pm

Awesome :!:
PotatoMan
PotatoMan
Standard Member

Posts : 4
Activity Points : 6
Reputation : 0
Join date : 2011-05-14
Location : Tatooine

Back to top Go down

[Tutorial] Change the names of the weapons Empty Re: [Tutorial] Change the names of the weapons

Post by Fireworm Fri May 20, 2011 9:04 am

This goes in FAQ and tutorials section. *topic will be moved*
Besides that, good tutorial.

Fireworm
Standard Member

Posts : 493
Activity Points : 622
Reputation : 88
Join date : 2010-01-27
Age : 29

Back to top Go down

[Tutorial] Change the names of the weapons Empty Re: [Tutorial] Change the names of the weapons

Post by edicu2000 Sat May 21, 2011 12:13 am

edicu2000
edicu2000
Standard Member

Posts : 29
Activity Points : 44
Reputation : 3
Join date : 2011-03-31
Age : 25

Back to top Go down

[Tutorial] Change the names of the weapons Empty Re: [Tutorial] Change the names of the weapons

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum