wattostudios / GameExtractor

Reads and writes thousands of different archive and image formats used in games.
http://www.watto.org
GNU General Public License v2.0
143 stars 9 forks source link

Update Plugin_RES_0TSR_2.java #15

Closed Gamebuster19901 closed 9 months ago

Gamebuster19901 commented 1 year ago

In Chadland2_sunny.toc, this value is 4D8B3949, which corresponds to 1228507981 in decimal little endian.

The date for unix timestamp 1228507981 is Fri Dec 05 2008 20:13:01 GMT+0000.

Additionally, we know by looking at error messages in main.dol that both the TOC file and the RES file contain a create_time (see below).

image

Gamebuster19901 commented 1 year ago

Also updated the link to the excitebots CRC algorithm, as the previous link was dead.

Gamebuster19901 commented 1 year ago

I have just discovered that a portion of the .toc file documentation on the website is incorrect.

The website says the following:

  // FILENAME DIRECTORY
    // for each file
      X - Filename
      1 - null Filename Terminator

However it fails to state that the filename directory is padded with null bytes so that its length is always divisible by 16.

For example, in mini4.toc

image

is padded to become

image

Gamebuster19901 commented 1 year ago

Updated link to excitebots CRC algorithm again, the previous implementation would sometimes be incorrect.

wattostudios commented 9 months ago

The website will be updated with the specs change in the next release. Thanks for the other information, appreciate the continual improvement.