|
Post by leflashkoska on Apr 13, 2023 10:25:39 GMT 10
Hello Everyone, First time posting here, I just started getting into RE4UHD Modding. I struggled a lot but I was finally able to import a model as a test. I'm currently having issues with Models that share a .TPL file, especially pl08_003.tpl while changing models for pl08_002.bin (Head) and pl08_004.bin (Eyes). Here is a picture of the issue in-game + the two different models in Blender : imgur.com/N8j9FTcIt should be two different textures, I read the following post but nothing seems to work : residentevilmodding.boards.net/thread/7707/editing-models-shared-persias-tutorialHere is my .MTL file after adding both custom models .MTL exported results : imgur.com/0byLgFK# Blender 3.4.1 MTL File: 'None' # www.blender.orgnewmtl Eyes Ns 250.000000 Ka 1.000000 1.000000 1.000000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.450000 d 1.000000 illum 2 map_Kd 0013.tga newmtl Head Ns 250.000000 Ka 1.000000 1.000000 1.000000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.450000 d 1.000000 illum 2 map_Kd 0009.tga I tried selecting the 2 models + the .MTL file with a custom .BAT file with something like this but it only detects one model : RE4UHD_BIN_Tool_2018.exe -p chris.smd chris.mtl 01000008 RE4UHD_BIN_Tool_2018.exe -p head.smd chris.mtl 01000008 imgur.com/ab50shUI know I could simply make one texture for both models but I really wanna understand how it works. Could anybody please help me with the steps on how to apply two different textures ?
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2023 2:55:09 GMT 10
Ahhh yes, the struggle of a shared TPL. I understand your pain! First thing is first. I think you should first understand that editing the eyes model is really difficult, as they need to be in the exact same position of the original eyes, otherwise their position in game gets really weird. The only suggestions I can make for this is to: 1 - Assign the eye models to bone_4 (so they stay locked with the rest of the head), or: 2 - Keep the eyes part of the head model. If you choose this method then you will need make dmy models for the original eyes using a single polygon mapped to bone_4 and hidden inside the scull. Doing things either way is ok, and wont even be noticeable as we barely see the front of the player face anyways. As for the shared TPL stuff, there is an older tutorial is old and uses the old BIN tools, but the concept is the same. You can check that HERE. You can also check my more recent tutorial on this subject HEREHappy Modding!
|
|
Posts: 545
|
Post by kreed on Apr 14, 2023 4:36:35 GMT 10
I tried selecting the 2 models + the .MTL file with a custom .BAT file with something like this but it only detects one model : RE4UHD_BIN_Tool_2018.exe -p chris.smd chris.mtl 01000008 RE4UHD_BIN_Tool_2018.exe -p head.smd chris.mtl 01000008 imgur.com/ab50shUI know I could simply make one texture for both models but I really wanna understand how it works. Could anybody please help me with the steps on how to apply two different textures ? I think Curious already answered you but one thing to mention. This tool can only generate one bin/tpl at a time, you can't add two entries in the bat like you did. After running separately you will have 2 bin's and 2 tpl's, since you're using the same mtl for both bin's you will use only one tpl, the second is useless.
|
|
|
Post by leflashkoska on Apr 14, 2023 5:16:10 GMT 10
Thank you so much for the quick response.
I will mess around with it more when I get back home and probably end up making one texture for the whole head.
I've been watching old youtube tutorials and combining different tools and techniques since I'm still not sure how to assign models to bones directly into blender... I've been using Rig-o-matic up until now and the results are really hit or miss so far.
Assigning bones is the next thing I need to learn, up until now I've been joining the models together which is the only way I know how to copy the Vertex Group to the new model.
Some parts of the model are also moving when they shouldn't be (Especially the head pl08_002.bin which seems to be moving as if it was the wind in Leon's hair? Maybe I assigning the bone without really knowing it)
I will reply here when I succeed... IF I succeed.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2023 5:40:00 GMT 10
"I think Curious already answered you but one thing to mention. This tool can only generate one bin/tpl at a time, you can't add two entries in the bat like you did.
After running separately you will have 2 bin's and 2 tpl's, since you're using the same mtl for both bin's you will use only one tpl, the second is useless". Thanks for weighing in , but that is not true. The BIN Tool has always been able to process multiple .smd and .mtl files with one .bat file and produce several resulting BIN & TPL files. The .bat file above is similar to the way I do it, using the same .mtl file for all files. The important thing to remember is that .mtl needs to have ALL THE MATERIALS used in the shared TPL. Cheers!
|
|
Posts: 545
|
Post by kreed on Apr 14, 2023 5:57:09 GMT 10
"I think Curious already answered you but one thing to mention. This tool can only generate one bin/tpl at a time, you can't add two entries in the bat like you did.
After running separately you will have 2 bin's and 2 tpl's, since you're using the same mtl for both bin's you will use only one tpl, the second is useless". Thanks for weighing in , but that is not true. The BIN Tool has always been able to process multiple .smd and .mtl files with one .bat file and produce several resulting BIN & TPL files. The .bat file above is similar to the way I do it, using the same .mtl file for all files. The important thing to remember is that .mtl needs to have ALL THE MATERIALS used in the shared TPL. Cheers! Are you sure? I also use the same mtl for all files, but if i need to update the gloves for example, I can't put all the smd inside the bat, only one at a time. On this example i'm running hair1 and hair2 with one bat Only hair1 is generating by the tool, not both, the exactly problem the guy mentioned i.imgur.com/JaA3ksF.pngif theres a way like you said, please teach me, it will helps me too
|
|
|
Post by leflashkoska on Apr 14, 2023 6:21:45 GMT 10
This is strange because I've tried to process multiple .SMD/.MTL files. The Bin Tool recognizes both materials but does not seem to recognise more than 1 Model as seen on the picture I posted (imgur.com/ab50shU) and it seems to be the same exact result as the one that kreed posted. I've also made sure to use one .MTL file that included both textures that came out when exporting each model and that the .TPL file that comes out after repacking does contain the information for both texures when replacing pl08_003.tpl. No matter how many times I've tried it seems the be the results you can see on my first picture. So let me know if there is a way as well I will test I get home pretty soon.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2023 9:29:12 GMT 10
kreed . Be sure to press ENTER after each of the tasks is complete. Here is an example with the 2018 BIN tool: RE4_UHD_BIN_Tool-2018.exe -p em17_470.smd em17_468.mtl 00000017 RE4_UHD_BIN_Tool-2018.exe -p em17_472.smd em17_468.mtl 00000017
|
|
|
Post by leflashkoska on Apr 14, 2023 11:39:52 GMT 10
Ok so I created a single texture. Using Rig-O-Matic, I imported the model here's what it looks like in game : imgur.com/gallery/xPuilksTexture seems ok but the model is moving probably because of hair or eye bone that's moving when character is being idle or something. I used pl08_002.bin can anybody tell me which bone I need to remove ? Thank you.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2023 16:33:50 GMT 10
you can weight the head vertices the same way the original is weighted or simply set the entire thing to bone_4 while also making sure that the adjoining vertices around the neck match up to the edge of the body.
|
|
Posts: 545
|
Post by kreed on Apr 14, 2023 19:25:59 GMT 10
kreed . Be sure to press ENTER after each of the tasks is complete. Here is an example with the 2018 BIN tool: RE4_UHD_BIN_Tool-2018.exe -p em17_470.smd em17_468.mtl 00000017 RE4_UHD_BIN_Tool-2018.exe -p em17_472.smd em17_468.mtl 00000017 I didn't know that pressing enter the second file would load, i'm so stupid Thanks Curious! its never too late to learn
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Apr 14, 2023 19:31:59 GMT 10
kreed I know. I learned that if we don't press enter the tools don't always complete their task. If you want the tool to run without confirmation in the future simply use: RE4_UHD_BIN_Tool-2018.exe -p < nul em17_468.smd em17_468.mtl 00000017 (this applies to all SoP tools). I don't generally advise using this because if there are errors, we wont see them. But if you know your repack is solid, then it's a good way to avoid having to use input. Happy Modding!
|
|
|
Post by leflashkoska on Apr 20, 2023 8:07:51 GMT 10
Thank you for helping me everyone ! imgur.com/gallery/Vj56SYlNow I just need to fix some of the bones, Knife Holster Texture, maybe the Hands if I feel like it. Now as for the Katanas and strap imgur.com/gallery/KO319Au that are attached to the wrong bones, can I also simply assign them to Bone 4 ? I am not sure how to see which bone corresponds to which part in Blender.
|
|
Posts: 545
|
Post by kreed on Apr 20, 2023 8:51:05 GMT 10
Thank you for helping me everyone ! imgur.com/gallery/Vj56SYlNow I just need to fix some of the bones, Knife Holster Texture, maybe the Hands if I feel like it. Now as for the Katanas and strap imgur.com/gallery/KO319Au that are attached to the wrong bones, can I also simply assign them to Bone 4 ? I am not sure how to see which bone corresponds to which part in Blender. Bone 4 is just for the head, eyes and hair without physics. bone 3 usually for the neck and bone 2 most for the upper part of the body. this is just for you to have an idea because rigging is much more testing and testing. for this katana i recommend testing bone 17, which is used for hips/waist and leon's gears.
|
|
|
Post by leflashkoska on Apr 20, 2023 9:24:59 GMT 10
Thank you, just tried assigning to bone 17, it moves a little bit but not as bad. Is there a way to know which bones is which in the list ? imgur.com/gallery/0iQqVjgI know you guys probably use MilkShape but I'm trying to have a workflow using only blender.... of course I don't mind switching for touch up and other stuff.
|
|