Important information: this site is currently scheduled to go offline indefinitely by December 1st 2023.
If you wish to donate to attempt the preservation of tools and software somewhere else before it goes down, check the GoFundMe

EA STR string files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Mattrio
n00b
Posts: 14
Joined: Sun Jan 31, 2016 2:57 pm
Has thanked: 4 times

EA STR string files

Post by Mattrio »

Hi everyone.

I'm a MySims games lover, and since it's been 6 years EA stopped doing games for the series, I'd like to do game mods. So I searched in MySims, MySims Kingdom and MySims Agents (Wii) files and these three games have their string files in *.str. It exists different str files, there is even str files in other MySims games but for different purposes (audio compression). Here, it looks like every string files such as language files are in str, and I can't manage to edit or read them correctly.

Luckily it exists a PC version of MySims, and in its files can be found language files in two formats: xml and str. XML are totally readable and editable. It exists their exact equivalent, so it can be easier to found a way to read str ones? I've attached two exact equivalent, I hope it will helps.

Thanks
You do not have the required permissions to view the files attached to this post.
Sorry for bad spelling, I don't speak fluent English.
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: EA STR string files

Post by WRS »

this must already be documented......

aside from the xml flags, here is a rough template

Code: Select all

union meta
{
  uint raw;

  struct
  {
    ubyte a;
    ubyte b;
    ubyte c;
    ubyte d;
  } _;
};

struct cstr
{
  uint len;
  string str;
};

enum <uint32> Lang
{
  ENG_US = 1,
};

Lang Language;
uint NodeCount;

struct Node
{
  meta metadata;
  cstr text;
};

Node Nodes[NodeCount] <optimize=false>;
Useful tool links:
Mattrio
n00b
Posts: 14
Joined: Sun Jan 31, 2016 2:57 pm
Has thanked: 4 times

Re: EA STR string files

Post by Mattrio »

WRS wrote:this must already be documented......

aside from the xml flags, here is a rough template

Code: Select all

union meta
{
  uint raw;

  struct
  {
    ubyte a;
    ubyte b;
    ubyte c;
    ubyte d;
  } _;
};

struct cstr
{
  uint len;
  string str;
};

enum <uint32> Lang
{
  ENG_US = 1,
};

Lang Language;
uint NodeCount;

struct Node
{
  meta metadata;
  cstr text;
};

Node Nodes[NodeCount] <optimize=false>;
Thank you, but I don't see how I could use this template? I tried with QuickBMS but I get the following error:

Code: Select all

invalid command "union" or arguments -1 at line 1
Sorry for bad spelling, I don't speak fluent English.
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: EA STR string files

Post by WRS »

Mattrio wrote:Thank you, but I don't see how I could use this template? I tried with QuickBMS but I get the following error:

Code: Select all

invalid command "union" or arguments -1 at line 1
sorry, this is a script for 010 editor.

note: there are no offsets in this file. you can resize strings and adjust the "size" value before the string. that's it!
Useful tool links:
Mattrio
n00b
Posts: 14
Joined: Sun Jan 31, 2016 2:57 pm
Has thanked: 4 times

Re: EA STR string files

Post by Mattrio »

Thanks a lot!
Sorry for bad spelling, I don't speak fluent English.
Post Reply