"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 23, 2020 2:13:02 GMT 10
Hello folks, I know it's been a while and I'm itching to learn how RE4UHD's modding works. It seems somewhat different from what I remember, especially with Son of Persia's awesome tools. However, I've hit a bit of a snag. I'm trying to load a repacked UDAS file. I originally thought I modified the files incorrectly, but upon repacking a freshly unpacked file, the game still refuses to load it. Basically, I get a hang and a "not responding" issue. The game doesn't outright close.
For reference, I am attempting to load Stage 1 of the Mercenaries (the town, r400) Here is what my process looks like: Unpack r400.udas.lfs (which becomes r400.udas) Unpack r400.udas (which becomes a folder with r400 and r400.idx) Immediately repack r400 into r400.udas Remove r400.udas.lfs from St4 folder in the installation folder (have a backup, don't worry ) Place r400.udas in St4 folder Boot game and attempt to load Village in Mercenaries w/ Leon I've attempted this with both the base install and the 4GB patch, as well as attemtping to use the 1.0.6 .exe. So, is there an issue with my process?
As a note, simply extracting the lfs file and placing the resulting udas file (with the lfs removed) properly boots the game. I think I am missing a single step somewhere. Hopefully I'm not being stupid and just missing a tutorial somewhere.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 23, 2020 10:38:02 GMT 10
I have reviewed all the steps you have taken and I can say that you have done nothing wrong. I suggest that you look at the difference in hex editor after the Udas is repacked (compared with the file before extraction) If you see some differences there than you know something isn’t right…
May I ask where you downloaded the tools from? Was it from the recent release I posted or from the original download from Son of Persia ?
Cheers
|
|
"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 23, 2020 10:53:57 GMT 10
Hi Mr. Curious! I did notice there is a difference when viewed under a hex editor. It is definitely possible that I have outdated tools, so I will grab the tools from your post and give that a whirl. I will post here after testing.
|
|
"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 23, 2020 11:03:05 GMT 10
EDIT: For reference, here is an image of the two files, shown from the header. Top is the original UDAS before repacking, and bottom is the repacked one.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 23, 2020 12:19:55 GMT 10
Weird. Looks like their Endian order is different. Can you down load the tools from my thread and try them out and post results here ?
Cheers
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 23, 2020 12:22:31 GMT 10
Oh it looks like you might have already grabbed the one I released. I am not at home (on vacation) so I can’t test the tools. I hope there is no issue with them being compressed in 7.zip. Seems odd that both udas tools would do the same thing.
|
|
"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 23, 2020 14:43:21 GMT 10
You wouldn't happen to have an older version of the UDAS tool somewhere zipped differently, would you?
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 23, 2020 17:07:24 GMT 10
I do but I won’t have access to that file until I get back from vacation. Is there a way you can test it on another machine ? It’s strange that BOTH won’t work for you.
Cheers
|
|
"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 24, 2020 6:10:30 GMT 10
|
|
"Pro" Modder from the RE4 PC Days
Posts: 5,892
Original Join Date: Aug 28 2008
|
Post by LeonMeKennedy on Feb 24, 2020 11:06:52 GMT 10
So I figured out what I believe to be a working solution: As Mr. Curious pointed out, the endian order on the header was reversed. I scrolled through the rest of the file and noticed that it was *just* the header that was reversed. I took the highlighted segment from the original UDAS and pasted it over top of the repackaged UDAS.
However, this was not enough. It didn't load in this case for me. But I also noticed something else...
At the same offset points of both files, the data of the repackaged data (right) was higher up. It looks like some data was missing. So I just added 32 bytes of empty data (2 rows shown below consisting entirely of 00s) The finalized file (on the right) works properly after making both of these changes! In addition, I also tested this by modifying an ITA file and then repacking. This worked properly. I'll need to do more testing to verify but this method seems to work for now.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 24, 2020 11:17:30 GMT 10
ok ill make sure to test the tools when I return.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Feb 29, 2020 15:58:57 GMT 10
ok so to test this I downloaded the current 2018 Son of Persia Tools here
TO start testing I took the original LFS version, removed it with the BMS script and then unpacked the UDAS with the downloaded tools. I then looked in HEX. Repacked and then look at it again in HEX. Nothing changes. File maintains same data. I compared this with an unaltered version (a copy of the udas that hadn't been unpacked or repacked), and compared it to the first one above. The result was that there were no differences in files which leads me to conclude that the UDAS tool included in the current download for the Son of Persia toolset is working perfectly. I don't know how this works. Perhaps your HEX viewer is off, maybe one of your windows components is off. I don't know. Best of Luck.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Mar 14, 2020 15:59:33 GMT 10
Its seems that another user hexmoddin has had the same issue. I can not explain why this is happening, but perhaps you could both compare scenarios. Perhaps it is an OS issue? Or Java, or Runtime Environment issue? I don't know why the same tool on my machine, tested with the same files, would produce different results.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 1, 2023 12:19:46 GMT 10
Sorry to necro an old thread, but I think its important here to understand that if we unpack 1.10 version UDAS files with SoP something goes wrong with the files. Its important to base your mods off of the 1.0.6 version of the game files. kTeo should have a link to the 1.06 game files.
|
|
dale home
Posts: 288
|
Post by kTeo on May 5, 2023 19:19:12 GMT 10
Sorry to necro an old thread, but I think its important here to understand that if we unpack 1.10 version UDAS files with SoP something goes wrong with the files. Its important to base your mods off of the 1.0.6 version of the game files. kTeo should have a link to the 1.06 game files. I do. i made a personal backup for all .udas files from 1.06, you can download it HERE
|
|