Posts: 24
|
Post by Sandro002 on Oct 26, 2021 20:30:06 GMT 10
This is my first try at modding so please bear with me. I was using Son of Persia's toolset and following his tutorial to import an VP70 mod from RE4 2007 to RE4 UHD. Everything was going pretty decent (at least for a first try XD). But when I started the game I saw that the handgun has a model (I can shoot,reload etc...) but the pistol is completely black. imgur.com/eMAY8DO Here is a pic so you can see what I am talking about I messed up the textures didn't I???
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 27, 2021 5:01:49 GMT 10
probably a tPL issue. Its hard to tell because the photo link you sent is broken. Make sure your MTL file has the correct texture pack file. You could always post the contents of your MTL file here.
|
|
Posts: 24
|
Post by Sandro002 on Oct 27, 2021 5:31:27 GMT 10
probably a tPL issue. Its hard to tell because the photo link you sent is broken. Make sure your MTL file has the correct texture pack file. You could always post the contents of your MTL file here. Hmmm... weird it doesn't open the link when I click it, but it opens it when I copy and paste it into the search bar. Does this one work??? postimg.cc/sQzvzbhR
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 27, 2021 7:53:42 GMT 10
I can see that your texture is black. This is likely due to not assigning the right material, or not assigning any material. If you would like help on this, please explain the steps you took during the process.
|
|
Posts: 24
|
Post by Sandro002 on Oct 27, 2021 21:44:25 GMT 10
I can see that your texture is black. This is likely due to not assigning the right material, or not assigning any material. If you would like help on this, please explain the steps you took during the process. I would like some help if possible. I thought it is the problem in the TCS file, these are the steps I did for it: 1)I didn't completely understand this line "The third output is a TCS file that contains the name and actual number/index of model textures in texture pack.You must change the name of model textures to the numbers given in front of their names.For example if output TCS file contains such a statement "file 26 = pl00Harnes_BM.dds" Then you have to change the name of pl00Harnes_BM.dds texture to 0026.dds and so on." Do I have to open it in HxD? 2)Because I didn't understand that line, this is what I did. I opened the TCS file and in the TCS file there were those numbers and on the right side of the numbers it said the following "file 4 = 0004.dds file 5 = 0005.dds" .So I made two copies of TCS and named one of them 0004.dds and the other one 0005.dds. After that I extracted the 07000000.pack and copied the two TCS files, repacked the 07000000.pack and put it back in the ImagePackHD folder. This is the only thing that gave me problems, maybe I screwed up somewhere else? But if it isn't the problem in TCS file I will try to explain everything from the beginning: 1)I downloaded the mod that I wanted to Convert which is Heckler and Koch VP70.I found the files in em folder called wep0200.pmd and after that I found the file in RE4 UHD called wep02.udas.lfs. 2)I put the wep0200.pmd in the pmd extractor folder, then I put the wep02.udas.lfs file in LFS extractor in which I got the UDAS file.After getting the UDAS file I put it in the UDAS folder and extracted it.I got 1 file with .idx extension and 1 folder which had BIN files (the files were called wep02_02, 02_03, 02_04, 02_06) and TPL files (the files were called wep02_01, 02_05), I used the wep02_02 BIN file and wep02_01 TPL file. 3)I then extracted the BIN and TPL file with BIN extract I edited (BIN_extract and added the -o) and I got these files wep02_02.smd, wep02_02.mtl and wep02_02.obj. 4)After getting those files I used the BIN_generator (I edited it with the following wep02_02.smd wep02_02.mtl 01000008 20 (I used these number because I didn't understand what these numbers are for and I found them on one of the replies of Son of Persia)) 5)I got these files wep02_02.bin, wep02_02.tpl and wep02_02.tcs.I replaced wep02_02.bin wep02_02.tpl in the already extracted wep02 UDAS folder (I renamed the wep02_02.tpl to wep02_01.tpl because wep02_02 was a BIN file) and repacked it.I got the new wep02.udas that I put in the Em folder. 6)As for the TCS file I already wrote that at the beginning. Sorry if I made some stupid mistakes as I already said it is my first time doing any of this.
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 28, 2021 6:01:22 GMT 10
TCS don't ever need to be edited, as it is just a file that is generated to show you if your materials are in the right order.
I will ask again, can you post the contents of your MTL file please?
|
|
Posts: 24
|
Post by Sandro002 on Oct 28, 2021 6:14:13 GMT 10
TCS don't ever need to be edited, as it is just a file that is generated to show you if your materials are in the right order. I will ask again, can you post the contents of your MTL file please? I just edited the name of the TCS file nothing else just like Son of Persia said "The third output is a TCS file that contains the name and actual number/index of model textures in texture pack.You must change the name of model textures to the numbers given in front of their names.For example if output TCS file contains such a statement "file 26 = pl00Harnes_BM.dds" Then you have to change the name of pl00Harnes_BM.dds texture to 0026.dds and so on." Here is the screenshot I took of the contents of the MTL file: postimg.cc/8FmZCfpX
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 28, 2021 12:02:19 GMT 10
please post the MTL file in txt format in this thread. No HEX Maybe you should read my BIN file tutorial to understand how this works a little better.
|
|
Posts: 24
|
Post by Sandro002 on Oct 28, 2021 18:58:14 GMT 10
please post the MTL file in txt format in this thread. No HEX Maybe you should read my BIN file tutorial to understand how this works a little better. Ohh after reading the BIN file tutorial it makes it a lot easier to understand. Here is the MTL file after I opened it with Notepad: #*********************************************************************************************** # PERSIANS are an ANCIENT and PEACE LOVING CIVILIZATION * # PERSIA's southern GULF has been, is and FOREVER will be THE PERSIAN GULF * #*********************************************************************************************** # Resident Evil 4 Ultimate HD Model Extractor # By Son of Persia # August 2014 newmtl material_0 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000 Ns 0.000000 map_Kd 0004.dds newmtl material_1 Ka 1.000000 1.000000 1.000000 Kd 0.800000 0.800000 0.800000 Ks 0.000000 0.000000 0.000000 Ke 0.000000 0.000000 0.000000 Ns 0.000000 map_Kd 0005.dds
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 29, 2021 2:34:58 GMT 10
Your problem is that your pistol is set to start at texture 0020.dds, whereas your MTL starts at 0004.dds:
"I edited it with the following wep02_02.smd wep02_02.mtl 01000008 20"
Also, your pack file is set to 01000008, which is Leon's pack file. It should be set to the texture pack file that is used by the weapon. In this case for you I think it is 20000002.pack.
Right now your weapon is trying to use textures 0004.dds, and 0005.dds from Leon's pack file.
|
|
will soon be away from this community
Posts: 326
|
Post by JustModModel on Oct 29, 2021 6:53:26 GMT 10
maybe this will help a little ? for steps .
1-open the original model on milkshape, if it's a handgun maybe wep01. once opened now open your MOD model and of course it must be rigging when finished. Minimaze your Milkshape/hide
2-open the texture handgun folder and see how many textures there are , for example ? if there are 4 there ( 0000,0001,0002,0003 ) please change the name of your texture model to number 4, and so on, if you have. move it to the Bin folder. ( Mean 0004 and so on )
3-open the milkshape again and install the texture , renamed . once done. save with two types 1.smd and 1.obj and if you have opened the MTL file and match whether there are your texture numbers, if you have. you just repack. and move the texture file to the texture handgun folder.
And test .
And have a nice day
|
|
Posts: 24
|
Post by Sandro002 on Oct 29, 2021 20:04:10 GMT 10
Your problem is that your pistol is set to start at texture 0020.dds, whereas your MTL starts at 0004.dds: "I edited it with the following wep02_02.smd wep02_02.mtl 01000008 20"Also, your pack file is set to 01000008, which is Leon's pack file. It should be set to the texture pack file that is used by the weapon. In this case for you I think it is 20000002.pack.Right now your weapon is trying to use textures 0004.dds, and 0005.dds from Leon's pack file. Sorry for the late reply I came home late from work last night, I was exhausted so I went to sleep earlier. So if I understood you correctly. When I extracted the 20000002.pack. I got 2 files (0000, 0001.tga). The 0000.tga is the handgun clip (the clip that falls out when you reload), at least it looks like that? The 0001.tga is the original handgun texture. So should I just replace the 0001.tga with the .tga file that I got with the mod, and just repack the 20000002.pack and put it back in the ImageHD folder? Since there are only 2 files in the 20000002.pack. should I edit it in the Bin.generate like this: wep02_02.smd wep02_02.mtl 20000002 01 (or should I use 00)? EDIT: And if you don't mind me asking in mod folder there is a pec023 file (I can't find any pec files in UHD folder) what am I supposed to do with it.I mean with what file were pec files replaced in UHD version???
|
|
✫Advanced Coder✫
gridning hard working on a fan game - Resident Evil Remix
Posts: 2,995
|
Post by Mr.Curious on Oct 29, 2021 21:58:51 GMT 10
YOu can remove all the textures in the original and name your files, 0000, 0001, however many you need.
use wep02_02.smd wep02_02.mtl 20000002 0
|
|