Important information: this site is currently scheduled to go offline indefinitely by end of the year.

No Man's Sky Language Files (.mbin)

Need help translating games in other languages? Have your language problems solved here.
Post Reply
asasfdfsfs
ultra-n00b
Posts: 2
Joined: Thu Sep 11, 2014 10:02 pm

No Man's Sky Language Files (.mbin)

Post by asasfdfsfs »

Hello. No Man's Sky language files how to the unpack/pack .mbin?

Example : https://yadi.sk/d/bTKnPP9GuCJGH
User avatar
LinkOFF
beginner
Posts: 38
Joined: Mon Sep 08, 2014 12:32 am
Has thanked: 10 times
Been thanked: 8 times

Re: No Man's Sky Language Files (.mbin)

Post by LinkOFF »

Text block offset: 0x26D070
Image
atvaark
advanced
Posts: 52
Joined: Fri Aug 28, 2015 3:19 pm
Been thanked: 47 times

Re: No Man's Sky Language Files (.mbin)

Post by atvaark »

asasfdfsfs wrote:Hello. No Man's Sky language files how to the unpack/pack .mbin?

Example : https://yadi.sk/d/bTKnPP9GuCJGH

Code: Select all

//------------------------------------------------
//--- 010 Editor v7.0.2 Binary Template
//
//      File: NMS_MBIN.bt
//   Authors: Atvaark
//   Version: 1
//   Purpose: 
//  Category: 
// File Mask: 
//  ID Bytes: 
//   History: 
//------------------------------------------------

typedef struct {
  int32 cc;
  int32 version;
  int32 padding;
  int32 padding;
  int64 hash;
  char type[64];
  int64 padding;
} Header;

typedef struct {
  int32 offset;
  int32 padding;
  int32 length;
  uint32 unknown; // 01 AA AA AA

  if (length > 0) {
      local int64 end = FTell();
      FSeek(startof(this) + offset);
      char line[length];
      FSeek(end);
  }
} LocalisationLine <optimize=false>;

typedef struct(uint32 count) {  
  char key[32];
  LocalisationLine lines[count];
} LocalisationTableEntry <optimize=false>;

typedef struct {
  int32 lineCount;
  int32 padding;
  int32 entryCount;
  int32 unknown;  
} LocalisationTableHeader;

typedef struct {
  LocalisationTableHeader header;
  LocalisationTableEntry entries(header.lineCount)[header.entryCount];
} LocalisationTable;

Header header;

if (header.type != "cTkLocalisationTable") {
  Printf("Unknown archive");
  return;
}

LocalisationTable table;
User avatar
LinkOFF
beginner
Posts: 38
Joined: Mon Sep 08, 2014 12:32 am
Has thanked: 10 times
Been thanked: 8 times

Re: No Man's Sky Language Files (.mbin)

Post by LinkOFF »

Tool from swuforce - https://yadi.sk/d/6etMaVJhuEwuS
Post Reply