Heeeelp!!!

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Heeeelp!!!

Post by bounty_hunter66 »

From where do i change sound volume and range for weapons?????????

In x3 there is a fie Sounds.pck in types but in x2 there isnt!!!

FROM WHERE DO I ALTER THEM???
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

Afaik, the only possibility to change the volume of a particular sound is to adjust the volume in the sound file itself (i.e. in the wav-file). Range is set in TBullets (or TLaser? can't remember).
bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Post by bounty_hunter66 »

Well i have Cool Edit Pro and tried to amplify it but it sounds like crap.

Does some1 know another method?

How do i increase the range in TBullets/Tlasers?
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

There is Doubleshadow's X2Editor available from here which makes altering weapons characteristic (and other things) pretty easy.

It's in TBullets.pck. Look for Lifetime(Index 10) and/or Speed (Index 11). There's no value "Range" but range is Lifetime x Speed.
bounty_hunter66
Posts: 550
Joined: Tue, 15. Aug 06, 13:36
x4

Post by bounty_hunter66 »

NO NO NO!!!!

U got me wrong!!!

I was refering to how far away could a weapon sound be heard!!
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

Oops, sorry :oops: !

No method I know of. In X2 sound effects are hardcoded afaik.
Graceburn
Posts: 80
Joined: Tue, 15. Jan 08, 13:22

Post by Graceburn »

another sound related question: is it possible to play sounds like station announcments or staion welcoming, i need the pirate one for a mod, but no others
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

You want the welcome text to be heard in a other context? That can be done, you need a script to do this. You need the page id and text id of the text you want to be spoken and then you need a script with the speak text command.
--------------------------------

[ external image ]
Graceburn
Posts: 80
Joined: Tue, 15. Jan 08, 13:22

Post by Graceburn »

im a little confused at your wording, but i want to be able to play the x2 station welcome announcments, and regular announcements, such 'ahoy matey,welcome aboard this pirate station', or 'attention customers, there is a sale on in the 'tool shop' on 'level 8' don't miss the savings' in a media player such as WMP or iTunes
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

That's simple enough. In your X2-Directory, there's a folder 'mov'. There's a file named 00144.dat. This is where all the spoken text is in. This is a wma-file with dat-extension. Copy the file to another place and rename it to 00144.wma (or whatever you like - it's the extension that's important). Now you're able to play it with MediaPlayer.

Next thing you need is a sound editor to extract the texts you want. But it's difficult to find the text you want. There's a trick, but you need the two files 440001.xml (from t-folder) and 00044.xml (from mov-folder) from the cat/dat files. Search in 440001.xml for the text you want. This text has a page id and a text id. Search for <page id="[YourPageID]"> in the 00044.xml and then search for <t id="[YourTextID]">. You end up with a line like this:

Code: Select all

<t id="224021" s="348857" l="54625"/>
't id' is the text id, 's' means where the chunk of text starts (in ms), 'l' how long the sound is played (again in ms).
With the information from this file you can go straight to the start of the text.
--------------------------------

[ external image ]
Graceburn
Posts: 80
Joined: Tue, 15. Jan 08, 13:22

Post by Graceburn »

yay! thanks a million chris

Return to “X²: The Threat - Scripts and Modding”