Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Sly 2 : Band of Thieves (E3 demo) WAL extractor and repacker

Featured Replies

  • Author
  • Localization

frogz2007, posted Thu Feb 12, 2015 7:27 am (3139)


I am wondering if anybody could have a crack at a Sly 2 extractor and repacker? Apparently the file with the data has no header to it, so this could be hard.

Download:

https://www.dropbox.com/s/ym2i0h3oip9bh6f/SLY2.7z?dl=0

If this info here helps any, then here:

http://forum.xentax.com/viewtopic.php?f=21&t=12300
  • Author
  • Localization

aluigi, posted Fri Feb 13, 2015 10:00 am (3152)


http://aluigi.org/papers/bms/others/sly_wal.bms

Automatic key scanner plus reading of the WAC index and extraction of the WAL archive.
The decryption function is in pre-compiled code for faster performance (the decryption code in bms was too slow).
  • Author
  • Localization

frogz2007, posted Fri Feb 13, 2015 11:11 am (3153)


Hmm. I tried it on the Sly 2 demo, but the thing is this demo does not have the WAC file present for some reason. Is there a way to make it so just the WAL can be extracted/repacked?
  • Author
  • Localization

aluigi, posted Fri Feb 13, 2015 11:41 am (3154)


Thanks, I have fixed everything, included the error of decrypted the data file (only the information are encrypted).
Script 0.2.
  • Author
  • Localization

frogz2007, posted Fri Feb 13, 2015 11:44 am (3155)


How you do this stuff is beyond me. I thank you! :)

EDIT: I tried injecting a custom file in, and it gave me an error that says, " Last script line before the error or that produced the error: 111 log MEMORY_FILE 0 SIZE

Another one I get is, "Incomplete input file 0: SLY2.WAC
Can't read 8 bytes from offset 00000000
  • Author
  • Localization

aluigi, posted Fri Feb 13, 2015 12:40 pm (3156)


I guess you didn't use reimport.bat correctly as explained in section 3 of quickbms.txt.
In this case there are no limitations or problems so the reimporting should work perfectly.
  • Author
  • Localization

aluigi, posted Fri Feb 13, 2015 12:41 pm (3157)


Edit: I'm checking it better, wait.
  • Author
  • Localization

aluigi, posted Fri Feb 13, 2015 12:45 pm (3158)


The problem seems related to quickbms when it tries to load the WAC file the first time.
I will check it when I will release the next version of quickbms.
In the meantime you can just remove the following lines and it will work:
Code:
if DECRYPT_ONLY == 0
    get NAME filename
    open FDDE "WAC" 0 EXISTS
    if EXISTS == 0
        open FDSE NAME
    endif
endif
  • Author
  • Localization

frogz2007, posted Fri Feb 13, 2015 1:12 pm (3159)


It works perfect! Thanks.
  • Author
  • Localization

aluigi, posted Sat Feb 14, 2015 10:08 am (3169)


Fixed.
There was a padding of 4 bytes between names and offset/size that wasn't visible in the file on xentax.
  • Author
  • Localization

frogz2007, posted Sat Feb 14, 2015 10:19 am (3170)


Sorry to bother you again, but it now says, after extracting a few files, "It's not possible to create that file due to it's filename or related incompatibilities (for example already exists a folder with that name), so now you must choose a new filename for saving it."
  • Author
  • Localization

aluigi, posted Sat Feb 14, 2015 10:28 am (3171)


Some files contain a folder in their name and others have the folder as name, very strange.
Anyway I have modified the script to replace the folder delimiter with an underscore avoiding the problem.
  • Author
  • Localization

brendan19, posted Sat Feb 14, 2015 2:34 pm (3173)


I tried this script on all three games from the Sly Cooper HD Collection from the PSN store and the script doesn't like the .WAL archive.

I also tried using the individual games available from the PSN store as well and it doesn't like those archives either.

I'm somewhat fairly sure that the individual games available from the PSN are in fact just the HD remasters and not the original SD games.

Here are some samples :)

Sly Cooper WAL Samples
  • Author
  • Localization

aluigi, posted Sat Feb 14, 2015 3:30 pm (3174)


Very interesting, the format of some of the WAL archives is very strange.
I have updated the script to version 0.2.2.

Please let me know if you have problems like duplicated or invalid names (so if quickbms asks you something).
  • Author
  • Localization

frogz2007, posted Sat Feb 14, 2015 3:47 pm (3175)


Hey. I think this is out of the question for right now, but all of the full, original PS2 versions have the files encrypted somehow. Say, for instance, the first game is 2 GB, but if you open the ISO, those WAL and WAC files are nowhere to be found.
  • Author
  • Localization

brendan19, posted Sat Feb 14, 2015 6:34 pm (3177)


Reports from testing

PSN individual games:

Sly Cooper And the Thievius Raccoonus:
I ran into duplicate filenames but I told QuickBMS to just automatically rename any it found. Then I hit an error which halts the extraction.

Sly 2: Band of Thieves
QuickBMS extracts the archive with no errors

Sly 3: Honour Among Thieves
QuickBMS extracts the archive with no errors



PSN Sly Cooper HD Collection:

Sly Cooper And the Thievius Raccoonus HD
QuickBMS extracts the archive with no errors

Sly 2: Band of Thieves HD
QuickBMS extracts the archive with no errors

Sly 3: Honour Among Thieves HD
The Sly3.wal from the HD collection is split into two parts as the PS3 can only handle a max of 4GB files. I combined the two files and in a hex editor and then saved it as Sly3.wal. I used quickbms_4gb_files and QuickBMS extracted the archive with no errors


So it seems that the standalone version of Sly Cooper and the Thievius Raccoonus is the only game which still has an issue with the script.


Also just as a minor mention, is it at all possible during extraction, the files that are given an "M" filename are given their appropriate extention attached? (.XVAG)
  • Author
  • Localization

aluigi, posted Sun Feb 15, 2015 8:50 am (3182)


The duplicate name in Sly1 is ok, 'r' solves the problems.
But regarding the format I have no fixes because it's correct.
It looks like the archive is just one byte smaller than expected (?), can you try to add a 0x00 at its end and retry the extraction?
  • Author
  • Localization

frogz2007, posted Sun Feb 15, 2015 9:31 am (3186)


Hey, aluigi, I think this may be beyond your knowledge, but is there a way to get the WAL files out of the full games for PS2? They are not visible when the ISO is opened.
  • Author
  • Localization

aluigi, posted Sun Feb 15, 2015 10:20 am (3188)


I don't have experience with PS2 ISO so there is not immediate much help I can offer about that.
  • Author
  • Localization

brendan19, posted Mon Feb 16, 2015 8:32 am (3203)


Image

I added an extra 00 byte to the archive and it extracted without errors. Thanks aluigi :D
  • Author
  • Localization

aluigi, posted Mon Feb 16, 2015 8:45 am (3206)


That's great.
I have updated the script to 0.2.2a adding a check that automatically set SIZE if OFFSET SIZE is bigger than the archive size.
  • Author
  • Localization

frogz2007, posted Mon Feb 16, 2015 8:49 am (3207)


Hey, aluigi. Somebody you may know (he goes by either Michael Peter, albinoleopard, or FurryFan) can't get the Sly 2 demo WAL files to extract. Is there any reason why this may happen?
  • Author
  • Localization

aluigi, posted Mon Feb 16, 2015 9:13 am (3209)


Do you mean the SLY2.WAL archive you linked in the first post?
Tried just now and it works correctly.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.