News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CUE

Pages: 1 2 3 4 [5]
81
Programming / Re: Any idea what this SLZ algorithm is?
« on: November 11, 2011, 04:19:14 am »
I need put some comments in the tool  to upload the code tomorrow. Today is time to upload all my Nintendo DS/GBA compressors ;)


~~~ ADDED 2011-11-13 ~~~

All this stuff are free, without license, blah, blah, blah, use at your own risk, blah, blah, blah, and I'm the author ;D

The file: http://www.bwass.org/bucket/triAce-PS2.c

What do you need to know:

The encoded data has 3 32-bit tables:
- LBA table (offset position, in sectors)
- size table (number of sectors)
- a table not used (unknown)

Supported games (PS2):
- Star Ocean 3
- Radiata Stories
- Valkyrie Profile 2

If you want investigate the PSX games (Star Ocean 2, Valkyrie Profile):
The encoded data has 2 tables:
- a 32-bit table
- a 8-bit table

You must join the 4+1 bytes:
- 3 bytes are the file offset (MM:SS:FF format)
- 2 bytes are the length (number of sectors)

I don't remember now the PSX offsets.

This is a tiny tool used to test the decode method (PSX and PS2), with the keys used in each game:
Code: [Select]
#include <stdio.h>

#define PS1 1
#define PS2 2

void Codes(int ps, unsigned int seed, char *game) {
  unsigned int key = seed;

  printf("%s\n", game);
  do {
    printf(":%08X", key); key ^= (key << 1);
    printf(":%08X", key); key ^= ~seed;
    if (ps == PS2) {
      printf(":%08X", key); key ^= (key << 2) ^ seed;
    }
    printf("\n");
  } while (key != seed);
  printf("\n");
}

int main(void) {
  Codes(PS1, 0x13578642, "Star Ocean 2");
  Codes(PS1, 0x64283921, "Valkyrie Profile");
  Codes(PS2, 0x13578642, "Radiata Stories");
  Codes(PS2, 0x13578642, "Star Ocean 3");
  Codes(PS2, 0x49287491, "Valkyrie Profile 2");

  return(0);
}

82
Programming / Re: Any idea what this SLZ algorithm is?
« on: November 10, 2011, 12:24:54 pm »
Do you want the TOC decoder? (well, the triAce-PS2 source code)

83
Programming / Re: Any idea what this SLZ algorithm is?
« on: October 28, 2011, 06:22:57 am »
The files are not needed. Please download the latest SLZ and decomp again.

Check the .pk files (packed files) and .bin (unchecked).

84
Programming / Re: Any idea what this SLZ algorithm is?
« on: October 25, 2011, 04:22:18 am »
I need the bad slz files, please upload 20-30.

~~~ ADDED ~~~
My fault!!! A last minute change breaks the modes 0-1-2.  :banghead:

SLZ updated, upped & queued. :thumbsup:

/me slaps CUE around a bit with a large trout
/me slaps CUE again

Wrong code:
Code: [Select]
flags = 0xFFFF0000 | *slz++;
if (mode == 3) flags |= *slz++ << 8;

Right code:
Code: [Select]
flags = 0x00FF0000 | *slz++;
if (mode == 3) flags |= 0xFF000000 | (*slz++ << 8);


85
Programming / Re: Any idea what this SLZ algorithm is?
« on: October 20, 2011, 04:43:42 am »
Quote
I did try your SLZ decompressor on VP2 unpacked files and only a few .slz files are properly decoded, actually only 0002.slz and 0006.slz (other slz make your program crash). These are decoded into obscure .raw files... But what I am supposed to do with those ? I checked them with an hex-editor and they seem to be ELF files... I may be dumb but I'm completely lost there...
The decompressor only work with SLZ files. All others are not compressed. If you find some SLZ files that fails, post it, please.

Quote
I only want to find the cutscenes which -I guess- are located in .pk1 or .bin files. How could I process/decrypt those with your proggie ?
I'll search further anyway and once again thanks a lot for replying and contributing.
I remember the "Star Ocean"/"Valkyrie Profile" from PSX/PSP and the videos/cutscenes are not packed. Use triAce-PS2 to extract the files from the ISO and check it all. I never analized the files with .BIN extension (you can discard all others).

86
Programming / Re: Any idea what this SLZ algorithm is?
« on: October 16, 2011, 02:05:21 pm »
SLZ decompressor with source code added to the database, supporting all modes (0-1-2-3):
http://www.bwass.org/bucket/SLZ_decompressor-CUE.rar

You can use "triAce-PS2" to extract all files from the ISO image:
http://www.sendspace.com/file/d8oank

To extract all files to a folder (command line only):
triAce-PS2 ISOname folder

Pages: 1 2 3 4 [5]