The Forum is up for sale: XeNTaX Forum looking for new owner

Radiation Island .str file

Need help translating games in other languages? Have your language problems solved here.
Post Reply
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Radiation Island .str file

Post by hackspeedok »

Anyone can help me, please ? Thanks
You do not have the required permissions to view the files attached to this post.
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Re: Radiation Island .str file

Post by hackspeedok »

anyone can help me ? Thanks :)
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 136 times

Re: Radiation Island .str file

Post by WRS »

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File:     strings_EN.str
// Author:   wrs
// Revision: 1
// Purpose:  read entire file
//--------------------------------------
uchar hdr[6];
ushort num;

uint vals[num +1];

struct str(int len)
{
  wchar_t xor_str[len];
  // xored by 0x63?
};

local int i=0;

while(i<num)
{
  str String(vals[i+1]-vals[i]);
 ++i;
}

Assert(FTell() == FileSize());

resulting strings do not look english!
Useful tool links:
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Re: Radiation Island .str file

Post by hackspeedok »

WRS wrote:

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File:     strings_EN.str
// Author:   wrs
// Revision: 1
// Purpose:  read entire file
//--------------------------------------
uchar hdr[6];
ushort num;

uint vals[num +1];

struct str(int len)
{
  wchar_t xor_str[len];
  // xored by 0x63?
};

local int i=0;

while(i<num)
{
  str String(vals[i+1]-vals[i]);
 ++i;
}

Assert(FTell() == FileSize());

resulting strings do not look english!
Thanks so much. But do you think this file is encrypted ???
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Re: Radiation Island .str file

Post by hackspeedok »

anyone can help ? Thanks
hackspeedok
advanced
Posts: 47
Joined: Sat Aug 09, 2014 10:44 pm

Re: Radiation Island .str file

Post by hackspeedok »

please give me a help
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 136 times

Re: Radiation Island .str file

Post by WRS »

sorry no idea how to decode those strings

Code: Select all

//--------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File:     strings_EN.str
// Author:   wrs
// Revision: 1
// Purpose:  read entire file
//--------------------------------------
uchar hdr[6];
ushort num;

uint vals[num +1];


struct xorstr(int len)
{
  wchar_t xor_str[len];
  local int str_len = len;
};

typedef xorstr xstr <read=GetXorString>;

string GetXorString(xstr &t)
{
  wstring res = L"";

  local int l=0;
  while(l < t.str_len) {
    res += (wchar_t)(((uint)t.xor_str[l]) ^ 0x6363); ++l;
  }
  
  return WStringToString(res, CHARSET_ANSI );
}

local int i=0;

while(i<num)
{
  xstr String(vals[i+1]-vals[i]);
++i;
}

Assert(FTell() == FileSize());

Useful tool links:
Post Reply