Page 1 of 1

SoupToys .toy format

Posted: Sat Oct 11, 2008 9:09 am
by AngelSL
Hey. I've been playing this game http://www.souptoys.com, and have gotten considerably fed up with the "limit" of each toy available.

Hopefully, the format isn't too hard.
(File format header: 883F0305)

(If you download it, the toy files can be found at C:\Documents and Settings\All Users\Application Data\Souptoys\Toys.

Re: SoupToys .toy format

Posted: Thu Oct 16, 2008 3:11 am
by Zench
Here is just a quick little bit of info about this format:

It starts out with a 76 byte header that doesn't seem to be part of the format, since all offsets are relative to the end of this header (so to get the real offset you need to add 76 to the value in the file). The file table is at the end of the file, even though there seems to be something at the beginning too. Everything is little-endian.

Code: Select all

// At the very end of the file
uint32 {4} - Offset to the end header (subtract 4, but also remember to add 76 to it!)

// The end header
uint32 {4} - Offset to the file table (remember to add 76 to it!)

// The file table
uint32 {4} - Number of files

// For each file
  uint32 {4} - Filename length
  char {x} - Filename
  uint32 {4} - Offset to the file data (remember to add 76 to it!)
  uint32 {4} - Extension length
  char {x} - Extension, although already specified in the filename
  uint32 {4} - Size of the file

Re: SoupToys .toy format

Posted: Sat Oct 18, 2008 7:24 am
by AngelSL
Thanks for looking at it. So far it seems that it's some kind of archive file with AutoCAD 3d files in them?

Re: SoupToys .toy format

Posted: Mon Oct 20, 2008 2:22 am
by Zench
AngelSL wrote:Thanks for looking at it. So far it seems that it's some kind of archive file with AutoCAD 3d files in them?
The file you posted is an archive, but there are no AutoCAD files in it. It looks like it has a few pictures, sound effects, and script files. An extractor for it would probably not be difficult to write.

Re: SoupToys .toy format

Posted: Tue Oct 21, 2008 7:49 am
by AngelSL
I must be mistaken then. I hope to see an extractor soon, maybe even a repacker (okay I'm going way too far.. am I?)

Re: SoupToys .toy format

Posted: Tue Oct 28, 2008 4:48 pm
by Zench
AngelSL wrote:I must be mistaken then. I hope to see an extractor soon, maybe even a repacker (okay I'm going way too far.. am I?)
Good thing I held off on making an extractor... it looks the format is not what I thought it is (I downloaded the demo). A repacker would not be too difficult to make.

Re: SoupToys .toy format

Posted: Fri Oct 31, 2008 11:18 pm
by Zench
Just to mix things up a bit, here is a Game Extractor plugin to read this format. It's my first attempt at writing a Game Extractor plugin, so I may not have done things completely right. Just extract the ZIP into C:\Game Extractor\plugins.

Re: SoupToys .toy format

Posted: Sun Nov 02, 2008 3:29 am
by AngelSL
Thanks all. I'll look at the java source and try to reverse it (i.e repacker)

Re: SoupToys .toy format

Posted: Sun Nov 02, 2008 9:01 pm
by Snow
Nice job, ill be sure to contribute what i understand, and if i can get a repack script together

Re: SoupToys .toy format

Posted: Mon Nov 03, 2008 8:23 am
by AngelSL
The contents of this post was deleted because of possible forum rules violation.

Re: SoupToys .toy format

Posted: Mon Nov 10, 2008 6:25 am
by Snow
My bad, i just have a mess of things, well thanks for the simplified versions

Re: SoupToys .toy format

Posted: Wed Nov 12, 2008 3:29 am
by Zench
Looks neat, but yet I haven't gotten around to trying it! :D