emoose / re4-research

Various tools & modding research for Resident Evil 4
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

File format references #10

Open emoose opened 2 years ago

emoose commented 2 years ago

It'd be nice to get all the RE4 file formats mapped out into structs, with tools like 010 Editor you can turn a struct into a modifiable template, letting it parse the file for you & give human-readable values which are easy to edit.

For example: image

I saw residentevilmodding forum has a lot of info about the file formats there, if we could transfer the knowledge into C/C++ structs it'd open the way for a lot more ways of changing things (and being C/C++, would also give us a way to play with things at runtime too!)

To start things off, I've posted a template for LFS files to https://github.com/emoose/re4-research/blob/master/file-formats/LFS.bt, should be usable in 010 Editor against both PC & X360 files (and maybe works in rehex as well)

It's probably a long shot, but any contributions to this repo would be greatly appreciated! Besides that I'll try and create templates for formats I come across as well (if anyone has any useful links to RE4 file format info please consider sharing them!)