I've got some progress on Runes of Magic thanks to DKDave on the Discord, but it brought up a new problem:
When I try to open a texture file (they are saved in .dds format), GIMP throws me a double error that reads: "Invalid DDS file." as well as "Invalid DDS Header!" This happens with ANY texture file, so I've got no idea where I could find the cause for this problem... Can I?
The texture files are packed in a 7z file that can be found here. (It is a rather big file as I need certain textures for both genders on humans and elves...)
Any help is greatly appreciated!
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Runes of Magic DDS format?
-
- veteran
- Posts: 145
- Joined: Sat Oct 21, 2006 12:58 pm
- Has thanked: 5 times
- Been thanked: 24 times
Re: Runes of Magic DDS format?
It's pretty clear they have intentionally scrambled the files to prevent you having access.
The first layer is zlib compression but what the 2nd layer is supposed to be would need more figuring out whether its another compression layer or cipher.
Can't help further, maybe someone else has the time/expertise/interest to try various means to reverse engineer them.
The first layer is zlib compression but what the 2nd layer is supposed to be would need more figuring out whether its another compression layer or cipher.
Can't help further, maybe someone else has the time/expertise/interest to try various means to reverse engineer them.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Runes of Magic DDS format?
they are lzma compressed, here is bms script to decompress to viewable dds files.
edit
*updated script to support zlib compressed files also*
edit
*updated script to support zlib compressed files also*
You do not have the required permissions to view the files attached to this post.
Last edited by Acewell on Thu Jan 30, 2020 6:16 pm, edited 2 times in total.
-
- advanced
- Posts: 57
- Joined: Thu Jan 10, 2019 11:42 am
- Has thanked: 8 times
- Been thanked: 2 times
Re: Runes of Magic DDS format?
I keep running into a memory allocation problem or I get this error:Acewell wrote: ↑Mon Jan 06, 2020 9:02 pm they are lzma compressed, here is bms script to decompress to viewable dds files.Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm comtype lzma_dynamic get NAME basename get EXT extension string NAME + _decmp. string NAME + EXT goto 0x46 get SIZE long get ZSIZE long savepos OFFSET clog NAME OFFSET ZSIZE SIZE
Code: Select all
12 clog NAME OFFSET ZSIZE SIZE
Some of the texture files I extracted exceed the size of 1MB - and that script can't handle this size (it doesn't matter if I use the regular or the 4gb_files executable)... Skip them or fix the script?
Take for example the file hm_male_foot_02_leather100-001.dds and try decompressing it.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Runes of Magic DDS format?
that file is zlib compressed instead of lzma, and it is headerless rgba32 when decompressed,
i will try to modify the script later to accomodate these best i can.
i might just put this into a Noesis python script later for fun.
edit: script updated in previous post
i will try to modify the script later to accomodate these best i can.
i might just put this into a Noesis python script later for fun.
edit: script updated in previous post