READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Goodbye Deponia - Localisation hints

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
XpoZed
veteran
Posts: 144
Joined: Sat Oct 24, 2009 5:08 pm
Location: Bulgaria
Has thanked: 2 times
Been thanked: 45 times
Contact:

Goodbye Deponia - Localisation hints

Post by XpoZed » Thu Oct 24, 2013 2:44 pm

I'm starting this thread because there are few things changed in the third (and last) episode of the Deponia trilogy - Goodbye Deponia.

Originally the previous versions were using the following VIS3 file structure:

Code: Select all

DWORD data_offset;
DWORD size_packed; // if  size_packed != size_unpacked entry is packed
DWORD size_unpacked;
DWORD type; // 0x00000000 = OGG; 0x00000008 = PNG; 0x00000003 = XML; 0x00000012 = CXML
The structure now is the same, BUT this "type" value is now always 0, so all files are considered to be OGGs.
The file holding the texts is always the last one, so you will be interested in 00002172.ogg (it's around five megabytes).

Now, the previous versions were using a XML file (compressed (XML) or compressed in chunks (CXML)), but now there's something called VBIN.
It's actually a pretty simple file, with it's own structure:

Code: Select all

DWORD header;
DWORD unknown;
DWORD size_unpacked;
DWORD size_packed;
byte data[size_packed];
So to get the texts out, you need to uncompress the "data" according to the given sizes, using zlib (or equal).
The easiest way to do this is using PHP and since it's designed to dynamically allocate the space needed, open the file, get rid of the header, the unknown DWORD, and the two sizes (in other words, trim the first 16 bytes), so the only thing you will left in there is the data.

Then just extract it like so (CMD):
php -r "echo gzuncompress(file_get_contents('00002172.ogg'))"; > localization.bin
and you will get the localization file.

Unfortunately it's not a XML file anymore (maybe some sort of compiled XML), so you will need to either HEX edit the texts or make some additional parsing tool for easier editing.

To sum it up:
1. Use Unpakke to get the files out of data.vis
2. Do the VBIN decompression kung-fu
3. Edit the texts
4. Do step 3 in reverse (compress, add the header, the unknown dword and the two updated sizes according to your changes)
5. use Unpakke to pack back the data.vis

I've probably didn't explain that very good, but I think that will be useful information if someone have the time (and the skills) to make some sort of tool.

WRS
ultra-veteran
ultra-veteran
Posts: 601
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 132 times

Re: Goodbye Deponia - Localisation hints

Post by WRS » Wed Oct 30, 2013 9:57 pm

pm me a sample and we'll see what sort of format the xml is in :)
Useful tool links:

warwar
advanced
Posts: 41
Joined: Sat Jun 04, 2011 8:36 am

Re: Goodbye Deponia - Localisation hints

Post by warwar » Mon Nov 04, 2013 9:13 am

I use 16HEX and found 00002172.ogg is the only one with VBIN header, so I follow your instructions, remove the first 16 bytes and use php to convert, but then I got error message and failed to get xml.
And I also got some files with RIFF header in the folder, if i unpack it again, it should be editable png file, so how can I unpack and convert this kind of files?

There is the 00002172.ogg
http://pan.baidu.com/s/1oYj7G

And there is the RIFF header file Smaple.
http://pan.baidu.com/s/1rFZhT

Thanks

User avatar
XpoZed
veteran
Posts: 144
Joined: Sat Oct 24, 2009 5:08 pm
Location: Bulgaria
Has thanked: 2 times
Been thanked: 45 times
Contact:

Re: Goodbye Deponia - Localisation hints

Post by XpoZed » Mon Nov 04, 2013 9:36 am

warwar wrote:I use 16HEX and found 00002172.ogg is the only one with VBIN header, so I follow your instructions, remove the first 16 bytes and use php to convert, but then I got error message and failed to get xml.
And I also got some files with RIFF header in the folder, if i unpack it again, it should be editable png file, so how can I unpack and convert this kind of files?

There is the 00002172.ogg
http://pan.baidu.com/s/1oYj7G

And there is the RIFF header file Smaple.
http://pan.baidu.com/s/1rFZhT

Thanks
As i mention before, in this version they are no longer using XML, but something like compiled XML, so it's not ASCII file anymore.

Starnova
n00b
Posts: 18
Joined: Mon Feb 10, 2014 3:19 am
Been thanked: 2 times

Re: Goodbye Deponia - Localisation hints

Post by Starnova » Mon May 12, 2014 12:39 am

Hi, can anyone help me to extract the txt?? I used "VISExt" to unpack de Data.vis, but is there any tool for the ogg!!? The Help will be extremly apreciated...

swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 11 times
Been thanked: 105 times

Re: Goodbye Deponia - Localisation hints

Post by swuforce » Mon May 19, 2014 7:31 pm

This quickbms script can export some texts. Use both script on the ogg.
Some subtitles are embedded in the video files, which are mkv files. You can use MKVToolnix to edit them.
You do not have the required permissions to view the files attached to this post.
Last edited by swuforce on Sat Jan 10, 2015 7:10 pm, edited 2 times in total.

User avatar
Beagle Boy
ultra-n00b
Posts: 3
Joined: Wed Jun 29, 2011 4:01 pm
Has thanked: 2 times

Re: Goodbye Deponia - Localisation hints

Post by Beagle Boy » Sat Nov 29, 2014 3:12 pm

swuforce wrote:This quickbms script can export some texts. Use both script on the ogg.
Some subtitles are embedded in the video files, which are mkv files. You can use MKVToolnix to edit them.
First of all, thanks for the script.

But recently, Visionaire updated the game files, and now your script do'nt work properly.
Your tool uncompressed the file normally, but is no longer converting to clean text.

If you can update it, I would be grateful for that.
I added the new file for you analyse in this link:
https://dl.dropboxusercontent.com/u/957 ... 000c3f.vbi

Thanks in advance.

swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 11 times
Been thanked: 105 times

Re: Goodbye Deponia - Localisation hints

Post by swuforce » Sun Dec 14, 2014 11:02 am

Updated script. Try. Use both on the vbi file.
You do not have the required permissions to view the files attached to this post.

turusele
ultra-n00b
Posts: 2
Joined: Tue Feb 04, 2014 12:14 am

Re: Goodbye Deponia - Localisation hints

Post by turusele » Thu Sep 10, 2015 12:03 pm

Beagle Boy wrote:
swuforce wrote:This quickbms script can export some texts. Use both script on the ogg.
Some subtitles are embedded in the video files, which are mkv files. You can use MKVToolnix to edit them.
First of all, thanks for the script.

But recently, Visionaire updated the game files, and now your script do'nt work properly.
Your tool uncompressed the file normally, but is no longer converting to clean text.

If you can update it, I would be grateful for that.
I added the new file for you analyse in this link:
https://dl.dropboxusercontent.com/u/957 ... 000c3f.vbi

Thanks in advance.
how to extract this file?

Post Reply