[Tutorial] Change the names of the weapons

View previous topic View next topic Go down

[Tutorial] Change the names of the weapons

Post by WormsS on 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)
: Â
: ç
: ô
: É
: Â
avatar
WormsS
Worms tweaker
Worms tweaker

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

View user profile

Back to top Go down

Re: [Tutorial] Change the names of the weapons

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

Awesome :!:
avatar
PotatoMan
Standard Member

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

View user profile

Back to top Go down

Re: [Tutorial] Change the names of the weapons

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

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

______________________________________________________________________________________________________________________
I'm done here. I want to call this site home, but I can't. There is nothing go to here, it's just a barren wasteland.
If you want me back, give me a call when the one-man show is over.

~Sincerely, Fireworm.

Fireworm
Standard Member

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

View user profile

Back to top Go down

Re: [Tutorial] Change the names of the weapons

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

avatar
edicu2000
Standard Member

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

View user profile

Back to top Go down

Re: [Tutorial] Change the names of the weapons

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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