Official Codex Discord Server

  1. Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.
    Dismiss Notice

Grimoire RSF Unpacker

Discussion in 'Golden Era Games' started by groke, Aug 14, 2017.

  1. groke Arcane Patron

    groke
    Joined:
    Dec 28, 2011
    Messages:
    2,377
    Location:
    SAVE THIS CHARACTER? NO.
    Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire Serpent in the Staglands Divinity: Original Sin Torment: Tides of Numenera BattleTech
    I wrote a small utility to unpack the .RSF file. It seems to pull most of the files correctly (.MID and .WAV files in particular), but several of the file types are missing headers or otherwise encoded.

    Updated: now generates headers for .BMP files.

    Source is here: https://github.com/guroukku/grime (pls no bully)
    Windows binary attached below.
     

    Attached Files:

    Last edited: Feb 4, 2018
    • Brofist Brofist x 8
    • incline incline x 1
    ^ Top  
  2. Jaesun Fabulous Moderator

    Jaesun
    Joined:
    May 14, 2004
    Messages:
    36,924
    Location:
    Seattle, WA USA
    Torment: Tides of Numenera Divinity: Original Sin 2 BattleTech
    If someone could extract the .MID files and zip them up, I would be very interested in that.
     
    • Friendly Friendly x 1
    ^ Top  
  3. groke Arcane Patron

    groke
    Joined:
    Dec 28, 2011
    Messages:
    2,377
    Location:
    SAVE THIS CHARACTER? NO.
    Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire Serpent in the Staglands Divinity: Original Sin Torment: Tides of Numenera BattleTech
    Your wish is my command: https://a.pomf.cat/xyjrjs.7z
     
    • Brofist Brofist x 4
    • Salute Salute x 2
    ^ Top  
  4. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Nice work!

    Zep--
     
    ^ Top  
  5. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Wondering, did you try replacing something and re-packing it?

    Zep--
     
    ^ Top  
  6. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Tried for about 15 minutes to insert a BMP header into an extracted BMP file. Couldn't get one to work. Will look at this more later.

    Zep--
     
    ^ Top  
  7. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Ok...got one to load, just a bunch of somewhat random pixels, probably have to tweak the bmp DIB header a bit.

    I can tell there is an image there...it's just sort of going diagonal...

    Using "Rune" files in the DIC folder, size is 42x42. (I think)

    Zep--
     
    ^ Top  
  8. groke Arcane Patron

    groke
    Joined:
    Dec 28, 2011
    Messages:
    2,377
    Location:
    SAVE THIS CHARACTER? NO.
    Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire Serpent in the Staglands Divinity: Original Sin Torment: Tides of Numenera BattleTech
    I've updated the utility to generate headers, which works for everything in the SCN, SCR and IGX folders, but files in DIC and elsewhere are skewed as you say.
     
    • Brofist Brofist x 2
    ^ Top  
  9. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    • Thanks! Thanks! x 1
    ^ Top  
  10. Has the copy protection been hacked yet?
     
    • Acknowledge this user's Agenda Acknowledge this user's Agenda x 1
    ^ Top  
  11. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Getting a little closer with the non-working bitmaps.

    v8.PNG

    I need to tweak the palette start/end and/or image pixel data start (I think).

    Will look more tomorrow...

    Zep--
     
    ^ Top  
  12. mercyRPG Arbiter

    mercyRPG
    Joined:
    Feb 20, 2013
    Messages:
    778
    Location:
    Alpha Centauri
    Ultimate goal is to unpack RSF properly, edit the files and PACK IT BACK PROPERLY, so the game loads unfazed. Then we have a perfect MOD tool. Especially I'm eyeing some WAV files to edit: metallic hit sound for ex.
     
    • Brofist Brofist x 1
    • Agree Agree x 1
    ^ Top  
  13. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    Welp, I don't have enough time for this...gonna work on DECLINE some more. :)

    Zep--
     
    • Despair Despair x 1
    ^ Top  
  14. udm Arcane Patron

    udm
    Joined:
    Aug 14, 2008
    Messages:
    1,725
    My dear sir, please please please change the aileekaiyohhh voice.
     
    ^ Top  
  15. Haba Harbinger of Decline Patron

    Haba
    Joined:
    Dec 24, 2008
    Messages:
    1,868,751
    Location:
    Land of Rape & Honey ❤️
    Codex 2012 MCA Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2
    :/
     
    ^ Top  
  16. mondblut Arcane

    mondblut
    Joined:
    Aug 10, 2005
    Messages:
    16,955
    Location:
    Ingrija
    It tries to create a subfolder of the same name as a file already present in the folder. Rename the file to something else to extract.
     
    • Thanks! Thanks! x 1
    ^ Top  
  17. Haba Harbinger of Decline Patron

    Haba
    Joined:
    Dec 24, 2008
    Messages:
    1,868,751
    Location:
    Land of Rape & Honey ❤️
    Codex 2012 MCA Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2
    that works, thanks.
     
    ^ Top  
  18. Lady Error █▓▒░ ░▒▓█ Patron Literally Hitler

    Lady Error
    Joined:
    Oct 14, 2012
    Messages:
    1,876,602
    Well, Cleve said he will release the Grimoire tools for modders anyway at some point. And we all know it will take some time.
     
    • incline incline x 1
    • retadred retadred x 1
    ^ Top  
  19. groke Arcane Patron

    groke
    Joined:
    Dec 28, 2011
    Messages:
    2,377
    Location:
    SAVE THIS CHARACTER? NO.
    Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire Serpent in the Staglands Divinity: Original Sin Torment: Tides of Numenera BattleTech
    babby.png
    Hm. Getting there.
     
    • Brofist Brofist x 3
    • Acknowledge this user's Agenda Acknowledge this user's Agenda x 2
    • Prestigious Prestigious x 1
    ^ Top  
  20. SwiftCrack Arcane

    SwiftCrack
    Joined:
    Oct 3, 2012
    Messages:
    1,839
    ^ Top  
  21. mercyRPG Arbiter

    mercyRPG
    Joined:
    Feb 20, 2013
    Messages:
    778
    Location:
    Alpha Centauri
    • Thanks! Thanks! x 1
    ^ Top  
  22. groke Arcane Patron

    groke
    Joined:
    Dec 28, 2011
    Messages:
    2,377
    Location:
    SAVE THIS CHARACTER? NO.
    Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire Serpent in the Staglands Divinity: Original Sin Torment: Tides of Numenera BattleTech
    et voilà:
    PROP15.png

    Bitmaps now unpack with correct headers (though some look like they might be losing a column of pixels on one side, will need some more investigation). Next up is figuring out the DMI sprite files.
     
    • Brofist Brofist x 4
    ^ Top  
  23. mondblut Arcane

    mondblut
    Joined:
    Aug 10, 2005
    Messages:
    16,955
    Location:
    Ingrija
    Who cares about sprites, decode the txt files! :takemyjewgold:
     
    • Agree Agree x 2
    ^ Top  
  24. GandGolf Savant

    GandGolf
    Joined:
    Feb 22, 2013
    Messages:
    770
    Location:
    Rivendell
    How is the program used?
     
    ^ Top  
  25. Zep Zepo Titties and Beer Patron Dumbfuck Repressed Homosexual

    Zep Zepo
    Joined:
    Mar 23, 2013
    Messages:
    5,189
    Divinity: Original Sin
    put it and a copy of the bundle file in its own folder
    rename the bundle file to something like Bundle.rsf
    open cmd prompt

    run in the cmd window:
    rsfunpack.exe bundle.rsf

    it will create a directory called BUNDLE-Z.RSF with the file unpacked.

    that's how I did it, anyway.
    main thing being, you HAVE to rename the bundle, or the directory does not get created.

    Zep--
     
    ^ Top  

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.