Page 1 of 4

Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Sun Dec 20, 2015 7:11 pm
by Taner038
Hi,
I want to localize this game,
but I couldn't open the file.can you help?
example
http://www.mediafire.com/download/t553j ... ch.m4b.m4b

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 12:48 am
by WRS
this patch file is referencing subtitles in .bin files - such as "subtitle_p_atr2_s03_p05.bin"

does the game include those? this m4b is just a patch delta format:

Code: Select all


//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File:        patch.m4b parser (Myst IV)
// Author:      WRS (XeNTaX.com)
// Revision:    1
// Purpose:     Patch parser
//--------------------------------------

#include "prelen.bt";

// Forward decl.
struct RecNode;

struct File
{
  str String(plen32);
  uint length;
  uint offset;

  Printf("[PATCHING] %s %u bytes @ %u\n", String.val, length, offset);
};

struct RecNode
{
  str String(plen32);
  ubyte num;

  if( num > 0 )
  {
    RecNode children[num] <optimize=false>;

    uint unknown_0; Assert(unknown_0 == 0);
  }
  else
  {
    uint files; Assert(files > 0);
    File file_child[files] <optimize=false>;
  }
};

struct Hd
{
    // UBI_BG_SIG
    str Sig(plen32);
    
    uint unknown_0; Assert(unknown_0 == 1);
    uint unknown_1; Assert(unknown_1 == 0);

    ubyte num_child; Assert(num_child > 0 );

    if( num_child > 0 )
    {
      RecNode child[num_child] <optimize=false>;
    }

    uint Langs;

    struct Lang
    {
      str Lang1(plen32);
      uint z, x;
    
      Printf("%s\n", Lang1.val);
    };
    
    Lang langs_[Langs] <optimize=false>;
};

// Actual data isn't stored like this - the script just parses as an example
Hd a, b;


Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 5:07 am
by Taner038
WRS wrote:this patch file is referencing subtitles in .bin files - such as "subtitle_p_atr2_s03_p05.bin"

does the game include those? this m4b is just a patch delta format:

This is delta format. But, how can I use the code?
I have not never written a program before

Here is Original file: http://www.mediafire.com/download/yb86l ... /patch.m4b

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 4:02 pm
by WRS
it's a template for 010 editor - http://www.sweetscape.com/010editor/

that patch.m4b is the same as the one you posted above!!!!! post a sample of the .bin files :wink:

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 4:58 pm
by Taner038
WRS wrote:it's a template for 010 editor - http://www.sweetscape.com/010editor/

that patch.m4b is the same as the one you posted above!!!!! post a sample of the .bin files :wink:
other game the file size is 300MB. also I threw that single file language file. And to use 010editor, unfortunately I don't know. Do you have the possibility to export in the form of more detailed or CMD code

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 5:02 pm
by WRS
Taner038 wrote:
WRS wrote:it's a template for 010 editor - http://www.sweetscape.com/010editor/

that patch.m4b is the same as the one you posted above!!!!! post a sample of the .bin files :wink:
other game the file size is 300MB. also I threw that single file language file. And to use 010editor, unfortunately I don't know. Do you have the possibility to export in the form of more detailed or CMD code
the script just arranges the file contents:

Image

it just contains patch information. if you want to unpack the language files you need to give a language file. the patch information says these are bin files. without them i can't do anything :wink:

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 5:21 pm
by Taner038
WRS wrote:
Taner038 wrote:
WRS wrote:it's a template for 010 editor - http://www.sweetscape.com/010editor/

that patch.m4b is the same as the one you posted above!!!!! post a sample of the .bin files :wink:
other game the file size is 300MB. also I threw that single file language file. And to use 010editor, unfortunately I don't know. Do you have the possibility to export in the form of more detailed or CMD code
the script just arranges the file contents:

Image

it just contains patch information. if you want to unpack the language files you need to give a language file. the patch information says these are bin files. without them i can't do anything :wink:
Ok. I will send the shortest time. Thanx again. You're good man.

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 6:18 pm
by Taner038
I can get the language files of the game by using the rival tools.
letters with a hex editor I can transfer it on the screen and also the game looks.
The file I dropped this translation can be made.
The problem is that letters have a limit.

Rival tools here: https://www.sendspace.com/file/fhdkxq


these tools unpack the language files but can't repack.

I have to repack tools.

@WRS

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 7:13 pm
by WRS
Taner038 wrote:The problem is that letters have a limit.
how do you know this if you can't repack stuff?

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 10:19 pm
by Taner038
WRS wrote:
Taner038 wrote:The problem is that letters have a limit.
how do you know this if you can't repack stuff?
I'm using hex editor.

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 11:15 pm
by WRS
Taner038 wrote:I can get the language files of the game by using the rival tools.
letters with a hex editor I can transfer it on the screen and also the game looks.
The file I dropped this translation can be made.
The problem is that letters have a limit.

Rival tools here: https://www.sendspace.com/file/fhdkxq


these tools unpack the language files but can't repack.

I have to repack tools.

@WRS

the java decompilers are horrible. uploate the resource somewhere and i'll take a look at the actual data. no point porting bytecode

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Mon Dec 21, 2015 11:21 pm
by Taner038
WRS wrote: the java decompilers are horrible. uploate the resource somewhere and i'll take a look at the actual data. no point porting bytecode
if you could find a solution it would make me very happy.
translation with a hex editor sucks :s :s

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Wed Dec 23, 2015 3:48 am
by Taner038
Up.

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Thu Dec 24, 2015 9:00 am
by Taner038

Re: Myst IV -- patch.m4b how unpack and repack txt files?

Posted: Fri Dec 25, 2015 12:29 pm
by Taner038
Up.