[Help/Request]Game from PS2: Okage

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
stalking89
Posts: 2
Joined: Mon Apr 11, 2016 10:11 am

[Help/Request]Game from PS2: Okage

Post by stalking89 »

Hey hello!

first, I'd like to introduce myself, I'm new here

(hi y'all :D )

Well, I don't know if you could help me with a game, Okage: Shadow King, for PS2, it's from 2001, I'm trying to extract the 3D Models/Textures from the game. I know about 3D modeling and animation, and I just tought, "Hey I remember that game I liked when I was a kid, I wonder if I could find some 3D models from it" and well... I found nothing lol and I tried and followed some tutorials about how to export 3d models using the "Texmod/3D Ripper DX + PCSX2" method I saw on vg-resources, and it almost worked, but not at all, the model was bad exported.

then I don't now how I even ended up here, but I hope you could help me to extract the models/textures (or more if possible) from the game, or give me a clue about how to do it.

I've seen some of the scripts, and examples from other games, but I haven't found the same extension/encriptation from the game....

I upload a file from the iso, so you could check it and able to help me, I would appreciate it so much!

:)

sorry for the long post and the bad english, as I speak spanish as first language and I live in France and I comunicate in french all the time, I tend to make mistakes in english
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Help/Request]Game from PS2: Okage

Post by aluigi »

The format is simple but I really suspect that the files are compressed (probably 32bit big-endian decompressed size followed by compressed data) but I found no interesting results my compression scanner mainly because I don't know how these XIM and XMD files should be.
Anyway:

Code: Select all

idstring "XPFX"
get BASE_OFF long
get FILES long
get ZERO long
for i = 0 < FILES
    getdstring NAME 0x18
    get OFFSET long
    get SIZE long
    math OFFSET + BASE_OFF
    log NAME OFFSET SIZE

    /* compression?
    savepos TMP
    goto OFFSET
    get XSIZE long
    reverselong XSIZE
    savepos OFFSET
    math SIZE - 4
    goto TMP
    clog NAME OFFSET SIZE XSIZE
    */
next i
stalking89
Posts: 2
Joined: Mon Apr 11, 2016 10:11 am

Re: [Help/Request]Game from PS2: Okage

Post by stalking89 »

hey thank you for the answer, so, I guess that's the script I should run to figure out how to get the models?
or at least the XIM and XMD files... what I read about the game is that even for a RPG game, with let's say a good quantity of models and maps, they managed to use a CD instead of a DVD.... well it's something, if you know something else please let me know, I'll try to search something about it too :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [Help/Request]Game from PS2: Okage

Post by aluigi »

The script will work when quickbms 0.11 will be available:
http://aluigi.org/bms/okage_xpk.bms