Rule of Rose (PS2) RPK / RTPK File

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Hello!

I'm wondering if anyone is able to help with the contents of RPK files that are used in Rule of Rose for PS2?

I have attached a sample (zipped) file, that I'm hoping maybe someone could help with?

Thank you very much for any assistance you can provide!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by aluigi »

http://aluigi.org/bms/rule_of_rose_rtpk.bms

Horrible nested archives inside archives... but it works :D
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Thank you so very much! You are the best! :)
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Sorry to be a bother but apparently some of the different rpk files are structured differently. See attached for another example - much simpler I think. But I don't know enough to know how to tailor the script to each situation unfortunately. I'm trying to learn as much as I can!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by aluigi »

Script 0.2 that should work better even with MOTIONPK.RPK
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Interesting. That was able to extract some pieces of data, but for some reason I am getting this result:

C:\bms>quickbms c:\bms\rule_of_rose_rtpk-2.bms c:\bms\premiere.rpk c:\bms\output4\

QuickBMS generic files extractor and reimporter 0.8.0
by Luigi Auriemma
e-mail: me@aluigi.org
web: aluigi.org
(Mar 12 2017 - 15:03:46)

quickbms.aluigi.org Homepage
zenhax.com ZenHAX Forum
@zenhax Twitter & Scripts

- open input file c:\bms\PREMIERE.RPK
- open script c:\bms\rule_of_rose_rtpk-2.bms
- set output folder c:\bms\output4\
- the folder doesn't exist, do you want to create it (y/N)?:
y

offset filesize filename
--------------------------------------
00000880 132352 //cmntex/CMNTEX.RPK/bit8a
00020d80 132352 //cmntex/CMNTEX.RPK/bit8b
00041280 132352 //cmntex/CMNTEX.RPK/bit8c
00061780 132352 //cmntex/CMNTEX.RPK/bit8d
00081c80 132352 //cmntex/CMNTEX.RPK/bit8e
000a2180 16448 //cmntex/CMNTEX.RPK/noise
000a61c0 4294288960 //cmntex/CMNTEX.RPK/r_shadow

Error: impossible to write 0xfff5a640 bytes (total 0xfff5a640)
Check your disk space

Last script line before the error or that produced the error:
66 log NAME OFFSET SIZE

Do you know why this might be? Disk Space definitely isn't an issue.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by aluigi »

A stupid typo in the name of a variable RPK_SIZE -> TPK_SIZE :(
Fixed in 0.2.1
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Perfect. Thank you!!!
sadikyo
Posts: 16
Joined: Thu Aug 10, 2017 11:16 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by sadikyo »

Ok one more question. It looks like the script extracts the files "too deep" - meaning it creates folders for certain files "alx.mdl" and then has data pieces inside that folder, but I'm wondering if the file itself is alx.mdl. Is there any way around this?

Thanks!

This is the file in question:

https://www.dropbox.com/s/0yb0uo42jbwrqvr/CHARA.7z?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by aluigi »

What you get from the script is the maximum possible.
If it's an RTPK archive it gets parsed, otherwise it gets extracted as-is
walisson85
Posts: 1
Joined: Fri Oct 16, 2020 1:14 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by walisson85 »

aluigi wrote:What you get from the script is the maximum possible.
If it's an RTPK archive it gets parsed, otherwise it gets extracted as-is

There are a lot of files and I can't find the text files to translate... can you tell me if it's possible to translate this game? if so, can you tell me where the game texts are?
Alvarezmd90
Posts: 3
Joined: Tue Feb 09, 2021 1:22 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by Alvarezmd90 »

Bump.
Someone on Twitter named Murugo has figured out what the i3d format is.
The textures are all .tm2 format. So if you rename the extensionless extracted files from rpk's they will immediately have thumbnails. It's best to convert those to tga from Noesis.
https://twitter.com/MurugalStudio/statu ... 74433?s=20
Image

I've tried searching every corner of github and forums about i3d but I have no clue as to how these are compressed/encrypted. They don't have their regular content because Giants Editor won't open them either.
Alvarezmd90
Posts: 3
Joined: Tue Feb 09, 2021 1:22 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by Alvarezmd90 »

In case anyone is wondering. I've asked Murugo on Discord and he has added his tool on Github. Thanks to Murugo the format can now be converted to obj. https://github.com/Murugo/Misc-Game-Research
You need to install Python and install numpy within that. After you're done, you can simply drag and drop the rpk's into the extractor and drag and drop the mdl files into the mdl2obj.
Vertex color and armatures are not yet to be extracted. For environments especially it's the lighting that seems to be baked into vertex color. So we're still missing out on some cool looking shading.
roocker666
Posts: 20
Joined: Sun Jun 23, 2019 5:13 am

Re: Rule of Rose (PS2) RPK / RTPK File

Post by roocker666 »

Alvarezmd90 wrote:In case anyone is wondering. I've asked Murugo on Discord and he has added his tool on Github. Thanks to Murugo the format can now be converted to obj. https://github.com/Murugo/Misc-Game-Research
You need to install Python and install numpy within that. After you're done, you can simply drag and drop the rpk's into the extractor and drag and drop the mdl files into the mdl2obj.
Vertex color and armatures are not yet to be extracted. For environments especially it's the lighting that seems to be baked into vertex color. So we're still missing out on some cool looking shading.


That is amazing man!
I already extracted a few models with those scripts, it was a little bit confusing at first but now I understand the whole process.
Thank you for sharing the info and please send a big Thanks to Murugo! :)
GatitoScavenger
Posts: 3
Joined: Sat Dec 02, 2017 9:47 pm

Re: Rule of Rose (PS2) RPK / RTPK File

Post by GatitoScavenger »

Cool