Age Of Empires 4 / IV ( .rgm .rgo .rrgeom .rrmaterial )

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
shinzef
Posts: 8
Joined: Thu Oct 07, 2021 12:59 am

Age Of Empires 4 / IV ( .rgm .rgo .rrgeom .rrmaterial )

Post by shinzef »

After opening it from a hex editor its Relic Chunky

Quick bms script doesnt work
And other mod tools

Some file samples:
https://drive.google.com/drive/folders/ ... sp=sharing
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Age Of Empires 4 / IV ( .rgm .rgo .rrgeom .rrmaterial )

Post by aluigi »

Not sure if it will work with other samples but try this "mod" of the original script:

Code: Select all

idstring "Relic Chunky\r\n\x1a\0"
get DUMMY long
get DUMMY long
get RGM_SIZE asize
do
    getdstring CHUNK_NAME1 4
    getdstring CHUNK_NAME2 4
    set CHUNK_NAME3 string ""
    get DUMMY long
    if CHUNK_NAME1 u== "DATA"
        get SIZE long
        getdstring DUMMY 12
    else
        get SIZE long
        getdstring DUMMY 4
    endif
    if CHUNK_NAME2 u== "MTR2"
        get CHUNK_NAME3 string
    endif

    savepos OFFSET
    string NAME p "%s/%s/" CHUNK_NAME1 CHUNK_NAME2
    log NAME OFFSET SIZE
    goto SIZE 0 SEEK_CUR
    savepos TMP
while TMP != RGM_SIZE