Resident Evil 4 .fen reimport (Nintendo Switch)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ramzes911
Posts: 5
Joined: Tue May 21, 2019 10:37 pm

Resident Evil 4 .fen reimport (Nintendo Switch)

Post by ramzes911 »

Hi Aluigi! Can you fix reimport Resident Evil 4 .fen for Nintendo Switch? I tried this script and it working both for extract and reimport but game not running after that.
Sorry for my English.
NSW .fen example file
https://www.mediafire.com/file/1gymsmvm ... k.fen/file
ramzes911
Posts: 5
Joined: Tue May 21, 2019 10:37 pm

Re: Resident Evil 4 .fen reimport (Nintendo Switch)

Post by ramzes911 »

Aluigi, answer please!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Resident Evil 4 .fen reimport (Nintendo Switch)

Post by aluigi »

Use this script for creating the fen file:

Code: Select all

comtype zlib_compress
get NAME filename
string NAME + ".fen"

get SIZE asize

log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
log NAME 0 4 MEMORY_FILE
append
clog NAME 0 SIZE SIZE
append
ramzes911
Posts: 5
Joined: Tue May 21, 2019 10:37 pm

Re: Resident Evil 4 .fen reimport (Nintendo Switch)

Post by ramzes911 »

No it does not work. This creates the same file as the reimport mode with this script but without the zeros in the tail. The game does not start with such a file.
ramzes911
Posts: 5
Joined: Tue May 21, 2019 10:37 pm

Re: Resident Evil 4 .fen reimport (Nintendo Switch)

Post by ramzes911 »

I'm stupid. I used YZ2tool.exe to insert .dds in .paсk. Therefore, the game did not start. After I insert .dds in .pack and then .pack in .fen with your script the game started. Both your scripts work well. Sorry, my fault.