Where is Betty? :)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24961
Joined: Sun, 2. Apr 06, 16:38
x4

Re: Where is Betty? :)

Post by X2-Illuminatus » Sat, 14. Mar 20, 09:16

00044.pck is the correct file. (Easy enough to add or miss a leading '0'.) Try unpacking the file using the X3 Editor 2, and open the unpacked 00044.xml file with an xml or text editor. Then you see the page and text ids of the voiced words as well as their starting time in the corresponding 00144.dat and length (both in milliseconds).
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Leytra
Posts: 4
Joined: Sat, 15. Feb 20, 05:09
x3ap

Re: Where is Betty? :)

Post by Leytra » Sat, 14. Mar 20, 09:58

X2-Illuminatus wrote:
Sat, 14. Mar 20, 09:16
00044.pck is the correct file. (Easy enough to add or miss a leading '0'.) Try unpacking the file using the X3 Editor 2, and open the unpacked 00044.xml file with an xml or text editor. Then you see the page and text ids of the voiced words as well as their starting time in the corresponding 00144.dat and length (both in milliseconds).
Okay so I was able to open that file now but the timestamps don't seem to correspond. I'm using premiere pro to try and slide directly to the timestamp by typing it in and it's not corresponding to what the sound ID should be.
For example, using the line this thread was originally searching for, "incoming message." it's id is 1333. On the XML file, 1333 is listed as so:

Code: Select all

    <t id="1333" s="31180880" l="1336"/>
That S number does not correspond to a millisecond time stamp for the sound.

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24961
Joined: Sun, 2. Apr 06, 16:38
x4

Re: Where is Betty? :)

Post by X2-Illuminatus » Sat, 14. Mar 20, 10:14

We're talking about X3TC and its main voice recording file 00144.dat, right? Not the additional 00244.dat of X3AP. It works fine for me with that text and time stamp. Since I currently do not have a proper audio editor installed, I just shortly tested this with VLC media player and the correct voice recording is played at 08:39:41 (hh:mm:ss; no ms support here).
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Leytra
Posts: 4
Joined: Sat, 15. Feb 20, 05:09
x3ap

Re: Where is Betty? :)

Post by Leytra » Sat, 14. Mar 20, 21:53

X2-Illuminatus wrote:
Sat, 14. Mar 20, 10:14
We're talking about X3TC and its main voice recording file 00144.dat, right? Not the additional 00244.dat of X3AP. It works fine for me with that text and time stamp. Since I currently do not have a proper audio editor installed, I just shortly tested this with VLC media player and the correct voice recording is played at 08:39:41 (hh:mm:ss; no ms support here).
Yep I'm using the 00144.dat file.
My endgoal is to figure out how to use these timestamps to give betty a line for the word "tartan" but I just need to figure out the timestamps first.
It doesn't seem to correlate in any way is the issue. How do you read the 31180880 as a timestamp then? Because that's clearly what I'm messing up

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24961
Joined: Sun, 2. Apr 06, 16:38
x4

Re: Where is Betty? :)

Post by X2-Illuminatus » Sat, 14. Mar 20, 22:45

Milliseconds divided by 1000 gives you seconds. Seconds divided by 60 gives you minutes. Minutes divided by 60 gives you hours:
31180880 ms / 1000 = 31180,88 s
31180,88 s / 60 = 519,6813333333333‬ min
519,6813333333333 min‬ / 60 = ‭‬8,661355555555556 h

Keeping the integral part and multiplying the rest by the divisor again gives you the time format I posted above:
(8,661355555555556 hours - 8) hours * 60 = 39,68133333333333 minutes
(39,68133333333333 - 39) minutes * 60 = 40,88 seconds
(40,88 - 40) seconds * 1000 = 880 milliseconds
880 milliseconds

Thus, as I wrote above, 31180880 correlates to 08:39:41 (hh:mm:ss, rounded to seconds), or actually 08:39:40,88 (hh:mm:ss,ff; if your audio editor supports the display of milliseconds).
Nun verfügbar! X3: Farnham's Legacy - Ein neues Kapitel für einen alten Favoriten

Die komplette X-Roman-Reihe jetzt als Kindle E-Books! (Farnhams Legende, Nopileos, X3: Yoshiko, X3: Hüter der Tore, X3: Wächter der Erde)

Neuauflage der fünf X-Romane als Taschenbuch

The official X-novels Farnham's Legend, Nopileos, X3: Yoshiko as Kindle e-books!

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”