 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Tue, 29. May 12, 06:55 Post subject: How to get "Betty" to say what you want |
|
|
Iv'e recently added some new ship IDs with X3 editor 2, and it's just weird when you click on your ship and the ship computer "Betty" is silent. Anyone got an idea on how to add a voice to the name and description of a ship?
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Fri, 1. Jun 12, 22:58 Post subject: |
|
|
It can be done, provided your desired results can be achieved by piecing together words and/or phrases that are already part of Betty's vocabulary.
I did exactly that in Reunion, and it worked perfectly. I added a new ship to the TShips file (using the Eclipse V2 model), updated a few text files (t/440001.xml, and mov/00044.xml) and appended some new speech samples to the end of the speech audio file (mov/00044.dat, which is actually an MP3 file containing ALL of the game's voice sounds).
To generate the new speech samples, I used sound editor software to copy Betty saying "Super" from the existing phrase "Super Freighter", and prepended it to the the existing word "Nova", creating the new speech sample for the ship: "Super Nova". While I was at it, I even cobbled together speech samples for a few items missing from Betty's vocabulary: Concussion Impulse Generator, Commodity Logistics Software Mk 1 and MK 2, Trade Command Software Mk 1 and MK 2... and a few others. Just because.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3350 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Sat, 2. Jun 12, 19:02 Post subject: |
|
|
@akeelah- Using a sound editor's a smart idea. Plus now I can use my sound editor for something other than having it sit on my desktop forever. Anyways, how would you open a dat file? Through X3 editor 2? And all I have to do is use words that are familiar to the computer in the description? Because most of the words I have used in my descriptions are ones I have heard before, except for a few.
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

 |
Posted: Sat, 2. Jun 12, 19:06 Post subject: |
|
|
@ DrBullwinkle: Yes, you could. If you don't care about the voice sounding like Betty, then the sky's the limit.
I bounce back and forth between Fission and Sound Studio 4 (I'm a Mac user) because Fission allows for truly lossless editing of MP3s but only allows one audio file open at a time (don't get me started!), whereas Sound Studio allows multiple files open at once (helps with splicing bits and pieces together) but doesn't handle MP3s so well. There's probably an easier way, but these are the apps I already own, so...
[edited for clarity]
Last edited by akeelah on Sat, 2. Jun 12, 19:12; edited 1 time in total |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Sat, 2. Jun 12, 19:07 Post subject: |
|
|
@akeelah- Using a sound editor's a smart idea. Plus now I can use my sound editor for something other than having it sit on my desktop forever. Anyways, how would you open a dat file? Through X3 editor 2? And all I have to do is use words that are familiar to the computer in the description? Because most of the words I have used in my descriptions are ones I have heard before, except for a few.
@DrBullwinkle- That's also possible, but might sound kinda weird. The sound editor I use is called Audacity.
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Sat, 2. Jun 12, 19:08 Post subject: |
|
|
The .dat file is really just an MP3. Make a backup of it -- just to be safe! -- and then change the file extension to MP3. Then you can edit it with your audio software and when you're done, change the extension back to .dat.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Sat, 2. Jun 12, 19:21 Post subject: |
|
|
OK, thanks for the help. I'll see what I can do to make this work. I think part of the problem is that I didn't change anything in 000044.xml (or whatever it's called) in the mov folder. Now, back to making ships stupidly overpowered...
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Sat, 2. Jun 12, 19:36 Post subject: |
|
|
Of course, there's also a far simpler (but far more limiting) method. Try this:
Create a text file with this entry (or add this entry to an existing text file and Reinit Script Caches):
| Code: |
<page id="17" title="Boardcomp. objects" descr="" voice="yes">
<t id="1000000">{17,4931} {17, 10001} {17, 10006} {17, 10010} {17, 10012}</t>
</page>
|
Then, run this script (where xxxx is the text id of the T-file above):
| Code: |
001 load text: id=xxxx
002 START speak text: page=17 id=1000000 priority=10
003 return null
|
It's worth a laugh, if nothing else.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Sat, 2. Jun 12, 19:51 Post subject: |
|
|
| Cavemonkey wrote: |
| OK, thanks for the help. I'll see what I can do to make this work. I think part of the problem is that I didn't change anything in 000044.xml (or whatever it's called) in the mov folder. Now, back to making ships stupidly overpowered... |
Yes, for every entry in /types/TShips and in /t/0001-L044.xml, you'll need need a corresponding entry in the /mov/00044.txt which tells the game where to find the desired sound clip in the /mov/00044.dat file. Said entry contains the corresponding ID, the offset (in milliseconds from the beginning of the audio file) to the beginning of the clip, and finally the length (in milliseconds) of the clip.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Sat, 2. Jun 12, 19:53 Post subject: |
|
|
Where would I put the text file after I create it? Also do I run the script in the script editor? (Sorry, I have little experience with scripting as my main focus is creating ship models and scenes and a little bit of xml scripting).
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Sat, 2. Jun 12, 20:08 Post subject: |
|
|
The text file goes in the /t directory. It's actually an xml file, and the file must be named according to this convention: xxxx-L0yy.xml, where xxxx is the text ID of your choice (must be unique from others already in use) and yy is the language code (44 for English).
So, assuming you choose 9123 as your text ID (I have no idea if that's available), and further assuming you prefer English, your T-File would be named 9123-L044.xml
And, yes, the script you simply create and run via the Script Editor.
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
akeelah

Joined: 14 Mar 2008 Posts: 194 on topic Location: TX, USA

|
Posted: Sat, 2. Jun 12, 20:11 Post subject: |
|
|
| akeelah wrote: |
| The text file goes in the /t directory. It's actually an xml file, and the file must be named according to this convention: xxxx-L0yy.xml, where xxxx is the text ID of your choice (must be unique from others already in use) and yy is the language code (44 for English). |
This just occurred to me: the above is true for X3 TC and X3 AP. If you're playing X3 Reunion, the name format is yyxxxxxx.xml.
I should have asked: which game are you playing? 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
DrBullwinkle

Joined: 17 Dec 2011 Posts: 3350 on topic Location: Boston, USA

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cavemonkey
Joined: 24 Nov 2011
Location: Kha'ak Sector 926
|
Posted: Tue, 5. Jun 12, 07:14 Post subject: |
|
|
I am using TC, so the code above is applicable to my game. Anyways thanks for the help. Maybe I could create another XRM. Just give me forty years and I'll have it for ya.
_________________ You want something from me? Are you empty of the mind? |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|