Posts: 20
|
Post by neowill on Apr 12, 2020 2:43:36 GMT 10
Hi Everyone, help please if anyone have time. I have struggling for days without progress... I am trying to port a mod that replacing Leon mafia(pl19) to re4uhd by following three guides: 1. residentevilmodding.boards.net/thread/2491/re4-2007-model-converter-toolset2. residentevilmodding.boards.net/thread/2486/re4-model-importer-exporter-toolset3. residentevilmodding.boards.net/thread/7222/modding-importer-exporter-video-tutorial (video in this link is gone... ) following 2. residentevilmodding.boards.net/thread/2486/re4-model-importer-exporter-toolset, i copied pl19.udas.lfs and 01000019.pack.yz2.lfs to toolset folder. following "Exporting Models", i unzip pl19.udas.lfs and look for indices of model textures in both .bin and .tpl file, by looking at 0x24 for .bin and 0x04 for tpl. So i got the following map: pl19_000.BIN b'0b000000' pl19_002.BIN b'04000000' pl19_004.BIN b'04000000' pl19_005.BIN b'04000000' pl19_006.BIN b'0b000000' pl19_007.BIN b'05000000' pl19_008.BIN b'04000000' pl19_009.BIN b'0b000000' pl19_010.BIN b'02000000' pl19_012.BIN b'0b000000' pl19_014.BIN b'02000000' pl19_015.BIN b'01000000' pl19_016.BIN b'02000000' pl19_017.BIN b'02000000' pl19_018.BIN b'02000000' pl19_019.BIN b'02000000' pl19_020.BIN b'02000000' pl19_021.BIN b'02000000' pl19_102.BIN b'01000000' pl19_108.BIN b'01000000' pl19_110.BIN b'01000000' pl19_114.BIN b'01000000' pl19_115.BIN b'02000000' pl19_118.BIN b'01000000' pl19_121.BIN b'01000000' pl19_001.TPL b'0b000000' pl19_003.TPL b'04000000' pl19_011.TPL b'02000000' pl19_013.TPL b'01000000' pl19_103.TPL b'01000000' pl19_105.TPL b'01000000' pl19_107.TPL b'01000000' pl19_109.TPL b'01000000' pl19_111.TPL b'01000000' pl19_113.TPL b'01000000' pl19_116.TPL b'02000000' pl19_119.TPL b'01000000' pl19_122.TPL b'01000000' pl19_123.TPL b'01000000' pl19_124.TPL b'01000000' pl19_133.TPL b'04000000' my questions now are: 1. 0x24 in pl19_007.BIN is 05, but there is no .tpl has index 05... how to deal with this case? 2. both pl19_003.TPL and pl19_133.TPL have index 04, when extracting pl19_002.BIN, which .tpl file to use? any suggestions are appreciated.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 12, 2020 9:25:39 GMT 10
What bin file are you trying to mod?
|
|
Posts: 20
|
Post by neowill on Apr 12, 2020 17:43:52 GMT 10
hi Mr.Curious,
thank you so much for replying
I am tying to port mod to replace Leon mafia(pl19) in UHD. After UDAS_Extract, I got 25 bin files,
1. 0x24 in pl19_007.BIN is 05, but there is no .tpl has index 05? I wonder how to extract pl19_007.BIN if there is no tlp matched 2. both pl19_003.TPL and pl19_133.TPL have index 04, when using BIN_Extract.bat to extract pl19_002.BIN that has index 04, which tpl file to use? 3. in the mod I trying to port, there are 10 .pmd files: pl190a.pmd to pl190l.pmd, in UHD pl19, there are 25 .bin files from pl19_000.BIN to pl19_121.BIN, how to match from 10 .pmf files to 25 .bin files?
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2020 7:57:06 GMT 10
|
|
Posts: 20
|
Post by neowill on Apr 15, 2020 1:34:45 GMT 10
Hi Mr.Curious,
Thank you so much for point to the right direction.
Following your instruction, a tutorial from youtube and a re5 chris mod for re4UHD that works in re4UHD in both game and cutscene, I managed to port re4 model to re4UHD.
in the re5 chris mod that I do research on, the modder set the whole model in pl00_000.bin and texture index in pl00_001.tpl. So I follow exact the same steps replace only pl00_000.bin and pl00_001.tpl.
My mod works fine in game but in cutscene, Leon original head was shown behind my model's head!
Do you have any ideas on why it does that?
thank you again for your valuable time!
Br
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 15, 2020 7:55:11 GMT 10
My mod works fine in game but in cutscene, Leon original head was shown behind my model's head! Do you have any ideas on why it does that? That's because the head model is separate from the the main model that you replaced. To get Leon's original head to be gone you will need to do either 2 things: 1 - Replace the original head model with a 3d model of just 1 polygon (mapped to a blank transparent texture) and place it wayyy up or wayyy down from where ti should be (or inside Leon's body) so that there is no chance of it being seen in the game. Make sure this polygon is mapped to bone_0. I have used this method in the past on many of my models but be warned, with the way you have the head attached to main model now the decapitation effect in game not work properly. You will die the same, but the head will not be removed as it is still attached the main model. 2 - The other option (and better way) is to keep your main body model and head model separate (this method involves a little more work though). You would need to make your main model with no head, and then replace the original head model with the head you wish to use. This preserves the decapitation effect in game. With this method you may need to edit the decapitation model too (this is another separate model that is used to seal the gap between Leon's decapitated head and his headless body. Its a small model that is mapped to a flesh texture. If you wish to go with option 2 here is a list of Leon's Bin parts. The neck decapitation model is 007bin-003tpl---neck used when beheaded I'm glad you figured out the other stuff. I'm happy to help so if you have any other questions please feel free to ask. =) Happy Modding!
|
|
Posts: 20
|
Post by neowill on Apr 15, 2020 23:24:42 GMT 10
Hi Mr.Curious, Thank you again for your advice. you must be a excellent person with great logical mind in real life. and your link explains nicely what I could understand how re4udh separate head from body into different part. i kind of followed option 1, as you have done previously. i used Son of Perisa's residentevilmodding.boards.net/thread/2393/chris-plain (lets call it chris plain) as template to port my mod from re4 to re4UHD. His nicely made mod works fine in both main game and cutscene. 1. i unpack chris plain pl00.udas file, in the folder pl00 I can see he set from pl00_002.bin .... to pl00_012.bin to 1 polygon (file size is only 4kb and pointing to an nonexit tpl file) except pl00_009.bin which is the knife. both pl00_000.bin and pl00_009.bin using pl00_001.tpl. Main model is in pl00_000.bin with chris's head and body. 2. using RE4 UHD BIN Extractor, i managed to get pl00_000.mtl and pl00_009.mtl from pl00_000.bin, pl00_009.bin and pl00_001.tpl files 3. i make my mod into one single smd, export to mymod.obj and mymod.mtl files. 4. follow your nicely explain link residentevilmodding.boards.net/thread/7707/editing-models-shared-persias-tutorial?page=1. i copied content of both pl00_000.mtl and pl00_009.mtl and paste them into end of mymod.mtl 5. I genereate mymod.bin and mymod.tpl from mymod.smd and mymod.mtl, rename mymod.bin to pl00_000.bin and mymod.tpl to pl00_001.top 6. I regenerate pl00_009.bin and pl00_009.tpl by using pl00_009.smd from chris plain and mymod.mtl. I can see the new pl00_009.bin now has new value in 0x24 which point to same value as mymod.tpl in 0x04 7. I copied newly generated pl00_000.bin, pl00_001.tpl and pl00_009.bin back to pl00 folder in udas tool in step 1, repack everything into pl00.udas 8. did the texture part as tutorial said to generate new 01000000.pack.yz2 9. copy both pl00.udas and 01000000.pack.yz2 to em and ImagePackHD folder. start the game. my mod works fine in main game with all weapons in hand except a leon's head shown in cutscene.... i look into all smd files in my new pl00.udas file. and I am sure there is no leon's head in any of those smds... I wonder where leon's head coming from? when in cutscene, from which file it gets the model (both body and head) appologize for the long description. I know there must be a few steps I have done wrongly... but just cannot figure out which one i should do it differently... any suggestion are welcome. And thank you again for your time.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 16, 2020 20:06:11 GMT 10
Cutscenes use Chirs pl08 model for body and has its own head model in all of the EVD file (all other characters use only EVD models). Pain in the ass to mod manually as you would have to unpack every single EVD file that contains Chris and change the head model, which means you would also need to replace all the pack files with the new head textures for each modified EVD as well.. This process would take a very long time and lots of effrot to accomplish this..
The good news is that there is an easier way to replace all the heads for all cutscenes using Raz0rs DLL file simply using ONE MASTER HEAD MODEL that will load with each EVD (I have done for my Resident Evil REmix project). I helped Raz0r develop this part of the DLL (it was my idea actually) because I knew that modders would want to have custom models in their cutscenes and that by developing a way to use a master model would be most efficient and much easier to mod.
I will show you how to do it, but you have to have a legit copy of Steam game for it to work.
|
|
Posts: 20
|
Post by neowill on Apr 17, 2020 2:32:55 GMT 10
Hi Mr.Curious, Luckily I have a legit copy from steam. please show how to do that if you have time. btw, I am still curious on why Son of Perisa's chris plain mod (also bsaa mod that replace pl08) work fine in both main game and cutscene by only copying udas and yz2 files. And mine doesn't.... I try not to use any extra dll or trainer to avoid by mistake introducing virus due to downloading from unknown source. again thank you for your valuable time.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 17, 2020 4:17:18 GMT 10
he could have made the head bigger so that completely covers the original one? Thats the only explanation for the original EVD heads not being visible during cutscenes unless his mod comes with modded EVD files. Have you compared his head model to the size of yours or the original? You will need to download Raz0rs trainer and DLL hereIll make a video sometime this weekend sowing how to use it.
|
|
Posts: 20
|
Post by neowill on Apr 17, 2020 5:52:00 GMT 10
Hi Mr.Curious, you are so right that he used a head that exactly cover leon' head. It came to my mind after reading your suggestion on making a 1-polygon head and EVD doc you wrote in 2018... my mod has a little head... after replacing with chris head, it solved the problem... of course my mod looks very strange with chris head... anyway, so nice to read your reply though and thank you again for your time. and please no hurry in making the video. just take your time. i am very happy to learn something new.
|
|