ikskoks Posted March 13 Share Posted March 13 Hi. Any tools or scripts available for PAK file from "RTL Ski Jumping 2002" (PC)? Sample file --> https://drive.google.com/file/d/1BKKgEBWTSye_9ayMGSggAeZ6uBg27AeW/view?usp=sharing Compression method is currently unknown. File format should look like this: // PAK file format // directory number_of_files * { 4 bytes (uint32) - compressed file size 4 bytes (uint32) - file ID? 4 bytes (uint32) - unknown 4 bytes (uint32) - unknown 64 bytes (char) - file path // e.g. "SOUND\TEXTPL\10_001A.WAV" } x bytes - padding (nulls) // data number_of_files * { 8 bytes (uint64) - uncompressed file size?? x bytes - compressed file data x bytes - padding (filled with 0xAA 0xAA 0xAA...) } Link to comment Share on other sites More sharing options...
Engineer Rabatini Posted March 15 Engineer Share Posted March 15 Can´t download it. Virus alert. Link to comment Share on other sites More sharing options...
DKDave Posted March 15 Share Posted March 15 On 3/13/2024 at 11:11 PM, ikskoks said: Hi. Any tools or scripts available for PAK file from "RTL Ski Jumping 2002" (PC)? Sample file --> https://drive.google.com/file/d/1BKKgEBWTSye_9ayMGSggAeZ6uBg27AeW/view?usp=sharing Compression method is currently unknown. File format should look like this: // PAK file format // directory number_of_files * { 4 bytes (uint32) - compressed file size 4 bytes (uint32) - file ID? 4 bytes (uint32) - unknown 4 bytes (uint32) - unknown 64 bytes (char) - file path // e.g. "SOUND\TEXTPL\10_001A.WAV" } x bytes - padding (nulls) // data number_of_files * { 8 bytes (uint64) - uncompressed file size?? x bytes - compressed file data x bytes - padding (filled with 0xAA 0xAA 0xAA...) } Not sure of compression, looks like some RLE variation, maybe not too complicated. In the file table, the second value is the file offset - multiply by 0x800 to get actual offset. The third value is unknown but always seems to be slightly bigger than the decompressed size. The fourth value is the decompressed size - it should be the same value as in the file data header 1 Link to comment Share on other sites More sharing options...
Engineer Rabatini Posted March 15 Engineer Share Posted March 15 set base_off = 0x800 for get comp long if comp == 0 break endif get offset long get size long get decomp long math offset * base_off getdstring name 0x40 log name offset size next 1 Link to comment Share on other sites More sharing options...
ikskoks Posted March 16 Author Share Posted March 16 Thanks for the script. Some files seems to be uncompressed like SOUND\MENU\MALYSZ.WAV Link to comment Share on other sites More sharing options...
Solution Thief1987 Posted March 19 Solution Share Posted March 19 (edited) Here is the tool for unpacking, with the decompression. To use it just enter archive name in the command line RTLSki2002.rar Edited March 20 by Thief1987 1 Link to comment Share on other sites More sharing options...
ikskoks Posted March 20 Author Share Posted March 20 On 3/19/2024 at 7:11 PM, Thief1987 said: Here is the tool for unpacking, with the decompression. To use it just enter archive name in the command line Thanks. Any chance for source code? And I have some additional questions: 1. Is the compression method well known or is it something custom? 2. What was the purpose of 8 bytes right before compressed data? Link to comment Share on other sites More sharing options...
Thief1987 Posted March 20 Share Posted March 20 (edited) 1 hour ago, ikskoks said: Thanks. Any chance for source code? And I have some additional questions: 1. Is the compression method well known or is it something custom? 2. What was the purpose of 8 bytes right before compressed data? well, no problem, but I'm just an amateur so it might be hard to read 1. I'm not sure it may be some known LZ variation but I reversed it from exe. 2. It's a decompressed size. Why they need to write it again here when it's already present in the TOC I don't know)) RTL Ski Jumping 2002.rar Edited March 20 by Thief1987 1 Link to comment Share on other sites More sharing options...
lewyytm Posted December 4 Share Posted December 4 (edited) @ikskoks Were you able to make any changes and package it back up and run the game? Or someone could also add a module to pack it up again to pak file? Edited December 4 by lewyytm Link to comment Share on other sites More sharing options...
ikskoks Posted December 4 Author Share Posted December 4 6 hours ago, lewyytm said: Were you able to make any changes and package it back up and run the game? No, I wasn't. Link to comment Share on other sites More sharing options...
lewyytm Posted December 5 Share Posted December 5 (edited) Ok, because I found something on german internet "Real Ski Patch" and I wonder what they exactly do because they propably modified .exe file and extract outside the files graphics http://olaf-asmus.de/showthread.php?tid=63 Edit: I little bit analyzed what’s going on and what I see - there are a few graphics which if we put in springen folder with game the game will load them. But it’s not the rule for all because for example start bib with VCC logo is not working but the lower part of bib we can edit and it’s work. - there are also a folder dat with files dat02 and dat03 and it’s responsible for jumper names and skills. They put them a lot of changes and the results on game are very similar to what happens on season 01/02 in real world (Ammann, Hocke) but these files are not readable in hex so I got no idea how they achieve that. - there is also a modified exe file but is without no-cd crack and I left my original file and I don’t know what was changed in exe file, because names are changed, skills are changed graphics works also. I still think that unpacking, modification and pack .pak file would give a lot of opportunities like change commentary, modifying team competition, and maybe expand list of jumpers or add new countries? There is also a question how much the exe file and file loading there is a blocker to expand the game. I hope that almost someone will help us to pack .pak file again and it will be beginning of reactivating this game. Edited December 5 by lewyytm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now