[Tutorial] Adv. Modding - Part 01 - Material Swapping
- UncleFestor
- Grand Master
- Posts: 620
- Joined: Wed Aug 21, 2013 11:56 pm
- Side: Darkness
- Contact:
[Tutorial] Adv. Modding - Part 01 - Material Swapping
MKX (PC) Tutorial - Advanced Modding Techniques - Part 01 - Material Swapping {By UncleFestor}
This is the First in a series of advanced Modding Video Tutorials I'll be releasing.
Enjoy the Video & I hope to see more robust Mods from the Community
This is the First in a series of advanced Modding Video Tutorials I'll be releasing.
Enjoy the Video & I hope to see more robust Mods from the Community
Check out my Youtube Channel : https://www.youtube.com/user/unclefestorable
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
When I drop the decompressed .xxx file on the self created .bat file. I see a .txt file. When I open it then I see Warning file not found or loading. I dont have the following numbers an letters on the left side.
Did I just do something wrong?
Did I just do something wrong?
- UncleFestor
- Grand Master
- Posts: 620
- Joined: Wed Aug 21, 2013 11:56 pm
- Side: Darkness
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
You must've written the .bat file incorrectly, or there' some type of Privilege restriction on your OS.
Make sure your batch file is written exactly like this :
@echo off
@echo FILENAME IS %1
umodel.exe -list>%1.txt %1
The Line : @echo FILENAME IS %1 -- gets the Name of the Package that you've dropped on the Batch, so it need to be written as @echo FILENAME IS %1
Alternatively you can run it directly from a command Line as follows :
1. Open cmd prompt
2. Navigate to Dir that contains umodel.exe & your Decompressed Package
3. Type : umodel.exe -list>Char_Name.xxx.txt Char_Name.xxx
Where Char_Name.xxx is the Name of the xxx package you're using i.E. Char_Jax.xxx or BGND_Jungle_Mapassets.xxx Etc...
You MUST include -list>
Make sure your batch file is written exactly like this :
@echo off
@echo FILENAME IS %1
umodel.exe -list>%1.txt %1
The Line : @echo FILENAME IS %1 -- gets the Name of the Package that you've dropped on the Batch, so it need to be written as @echo FILENAME IS %1
Alternatively you can run it directly from a command Line as follows :
1. Open cmd prompt
2. Navigate to Dir that contains umodel.exe & your Decompressed Package
3. Type : umodel.exe -list>Char_Name.xxx.txt Char_Name.xxx
Where Char_Name.xxx is the Name of the xxx package you're using i.E. Char_Jax.xxx or BGND_Jungle_Mapassets.xxx Etc...
You MUST include -list>
Check out my Youtube Channel : https://www.youtube.com/user/unclefestorable
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
Ow so I must replace filename with the name of the package.UncleFestor wrote:You must've written the .bat file incorrectly, or there' some type of Privilege restriction on your OS.
Make sure your batch file is written exactly like this :
@echo off
@echo FILENAME IS %1
umodel.exe -list>%1.txt %1
The Line : @echo FILENAME IS %1 -- gets the Name of the Package that you've dropped on the Batch, so it need to be written as @echo FILENAME IS %1
Alternatively you can run it directly from a command Line as follows :
1. Open cmd prompt
2. Navigate to Dir that contains umodel.exe & your Decompressed Package
3. Type : umodel.exe -list>Char_Name.xxx.txt Char_Name.xxx
Where Char_Name.xxx is the Name of the xxx package you're using i.E. Char_Jax.xxx or BGND_Jungle_Mapassets.xxx Etc...
You MUST include -list>
Maybe Idid that wrong. I will try it again.
Thanks bro
- UncleFestor
- Grand Master
- Posts: 620
- Joined: Wed Aug 21, 2013 11:56 pm
- Side: Darkness
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
So, you're the second person I've heard of, where the batch file is Launching Umodel's front-end. It shouldn't be doing that & I can only assume its either cause there's an issue with the Batch file running in the Language set on your PC OR (What's more Likely), it's in too far/long of a folder structure. Or Running from the system drive is causing an issue because of privileges.
So the easiest solution would be to have your Modding tools in 1 Folder, on a different drive
I.E. D:\Modding Tools
If you don't have a 2nd Drive, then create a new Folder in your C:\ Drive
So like : C:\Modding Tools
You might have to then set User Privilege for that Folder & all subfolders to allow Full Control (I wouldn't really recommend that on any system Drive folder Unless you know what you're doing)
Your final option would be to run it Via CMD Line as I explained above (This option will always work as you're launching umodel manually through the cmd line)
So the easiest solution would be to have your Modding tools in 1 Folder, on a different drive
I.E. D:\Modding Tools
If you don't have a 2nd Drive, then create a new Folder in your C:\ Drive
So like : C:\Modding Tools
You might have to then set User Privilege for that Folder & all subfolders to allow Full Control (I wouldn't really recommend that on any system Drive folder Unless you know what you're doing)
Your final option would be to run it Via CMD Line as I explained above (This option will always work as you're launching umodel manually through the cmd line)
Check out my Youtube Channel : https://www.youtube.com/user/unclefestorable
- thethiny
- Immortal
- Posts: 2258
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
Use this, UncleFestor's command needs special Windows configuration for it to work:
Save this as mesh.bat
Or this:
Code: Select all
@echo off
set /p name="Enter the name of the file: "
umodel -list %name% > %name%.txt
pause
Or this:
Code: Select all
@echo off
echo.FILENAME IS %1
umodel -list %1 > %1.txt
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
Thanks bros the first command worked for me well.thethiny wrote:Use this, UncleFestor's command needs special Windows configuration for it to work:Save this as mesh.batCode: Select all
@echo off set /p name="Enter the name of the file: " umodel -list %name% > %name%.txt pause
Or this:Code: Select all
@echo off echo.FILENAME IS %1 umodel -list %1 > %1.txt
I wanted to swap materials, leather with skin.
For example when I paint cage jr endurance pants in skin color you still see ribbles of the pants.
Even after editing the alpha, pmsk and nor files
Thanks teachers
- thethiny
- Immortal
- Posts: 2258
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
Use the 2nd command for Drag And Drop, the first one for Typing the name.
Thank UncleFestor though and the tool makers.
Thank UncleFestor though and the tool makers.
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
I thank both of uthethiny wrote:Use the 2nd command for Drag And Drop, the first one for Typing the name.
Thank UncleFestor though and the tool makers.
- thethiny
- Immortal
- Posts: 2258
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
You're welcome ^_^
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
I tried to find the strings in hex editor.thethiny wrote:You're welcome ^_^
In uncle festors tutorial says that you have to convert the big endian to little endian bu when I do that the string is not found in hex editor
I have put some screenshots
- thethiny
- Immortal
- Posts: 2258
- Joined: Fri Jan 17, 2014 12:08 pm
- Side: Light
- PSN: thethiny
- XBox Live: thethiny
- Location: Earthrealm
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
105CE84 A64 is actually
01 05 CE 84 00 00 0A 64
So in Little Endian it is:
64 0A 00 00 84 CE 05 01
not 04 8E C5
01 05 CE 84 00 00 0A 64
So in Little Endian it is:
64 0A 00 00 84 CE 05 01
not 04 8E C5
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
2nd variable is offset (4 byte !0!1 05 CE 84)Amari1976 wrote: I tried to find the strings in hex editor.
In uncle festors tutorial says that you have to convert the big endian to little endian but when I do that the string is not found in hex editor
I have put some screenshots
3rd variable is size (4 byte 00 00 0A 64)
so your is 64 0A 00 00 84 CE 05 01
- UncleFestor
- Grand Master
- Posts: 620
- Joined: Wed Aug 21, 2013 11:56 pm
- Side: Darkness
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
It's an easy mistake to make.
So quick tip :
Each set of Numbers is actually 4 Bytes.
So in your Example :
105CE84 A64 -----> Make that into 8-Bytes adding Zeros where necessary. To do that, split it into 1 Byte sections, starting from Right to left for each.
1 05 CE 84 A 64 -----> Now Add your Zeros to make it an 8-Byte String :
01 05 CE 84 00 00 0A 64 ----> Now Convert to Little Endian :
64 0A 00 00 84 CE 05 01 ----> This is what you'll search for
So quick tip :
Each set of Numbers is actually 4 Bytes.
So in your Example :
105CE84 A64 -----> Make that into 8-Bytes adding Zeros where necessary. To do that, split it into 1 Byte sections, starting from Right to left for each.
1 05 CE 84 A 64 -----> Now Add your Zeros to make it an 8-Byte String :
01 05 CE 84 00 00 0A 64 ----> Now Convert to Little Endian :
64 0A 00 00 84 CE 05 01 ----> This is what you'll search for
Check out my Youtube Channel : https://www.youtube.com/user/unclefestorable
- UncleFestor
- Grand Master
- Posts: 620
- Joined: Wed Aug 21, 2013 11:56 pm
- Side: Darkness
- Contact:
Re: [Tutorial] Adv. Modding - Part 01 - Material Swapping
LOL everyone, replied pretty quickly Nice to see people being helpful
Check out my Youtube Channel : https://www.youtube.com/user/unclefestorable