Homefront: The Revolution serialized XML/LUA decoding help

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
JDog
Posts: 2
Joined: Fri Mar 15, 2019 1:25 am

Homefront: The Revolution serialized XML/LUA decoding help

Post by JDog »

I'm interested in trying to mod Homefront: The Revolution, but there is a barrier. The game's xml and lua files are serialized using a custom format. All the existing CryEngine xml tools fail, including Sir Kane's, which I used for Sniper: Ghost Warrior 3. I was hoping someone with the know-how might be able to help me convert them to plaintext which hopefully the game will run without issue, just like other CryEngine titles. Unpacking the archives is easy, and a modified exe exists why bypasses the signature check on new archives.

I've included two sample files. I'm mainly interested in the XML format, but the lua format would be a nice bonus because sometimes you need to get creative when modding.
example files.rar
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: Homefront: The Revolution serialized XML/LUA decoding help

Post by akintos »

https://github.com/pleonex/HappyXml

This code works. Replace Yarhl submodule with Yarhl nuget package to compile.
JDog
Posts: 2
Joined: Fri Mar 15, 2019 1:25 am

Re: Homefront: The Revolution serialized XML/LUA decoding help

Post by JDog »

Thank you very much.