This is wierd...
Moderator: Moderators
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
This is wierd...
I put rep_inf_ep3trooper.tga into my data_abc/worlds/abc/msh folder and edited it and I munged it and the skin appeared in game...I haven't added a side or any other lines in the lua that would tell the game to look in the folder...would putting in the side override that because the rep_inf_ep3trooper.tga i edited is all bloody and zombie ish and i don't want that to be my normal trooper..and also can anyone explain why this happened...?
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: this is wierd...
That's... Not... Possible...
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: this is wierd...
sadly it is...i think this could be greatly used to bypass making a custom side i wonder if it works with .odf's too
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: this is wierd...
Oh, well then:
That's... Just... Awesome...
I will try it out just to make sure your PC isn't haywire.
That's... Just... Awesome...
I will try it out just to make sure your PC isn't haywire.
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: this is wierd...
try it with an odf too
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: this is wierd...
Wait.. Did you put in an odf file? 'cause I read that as I hit munge.. 
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: this is wierd...
no i just added rep_inf_ep3trooper to data_abc/worlds/abc/msh and i edited it and then munged i was saying to try it with an .odf to see if it works too
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: this is wierd...
OK will do right after checking if the tga works... Just a sec.
EDIT: No its not working what'd you check off in the munge list?
EDIT: No its not working what'd you check off in the munge list?
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: this is wierd...
i checked off common that's it, it was also changed right after the first munge...
EDIT: I also didn't have any sides just the normal .lua
EDIT: I also didn't have any sides just the normal .lua
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: this is wierd...
Hmm... Doesn't work for me. Try editing the skin again and see if it changes btw, lol I can imagine you don't want those guys as your skins (glamour)
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: this is wierd...
Textures are just loaded straight into memory, the game doesn't care what folder it came from. So if you have rep_inf_ep3trooper in a custom side then one in your world folder it will overwrite the original in memory with the other one.
- vampire_lord
- Rebel Sergeant

- Posts: 216
- Joined: Thu Mar 20, 2008 7:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mexico City
- Contact:
Re: This is wierd...
Exactly, that's why I suggest Hex editing all your msh files on your custom sides, I learned it the hard way the first time I installed unnoficial patch, my galactic marines on my beta map were gone and I had to uninstall, delete and clean up the mess...
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: This is wierd...
ok i know this is probably a stupid question or two questions but is hex editing changing the .msh so it recognizes another texture and also what program do I need and is there a tutorial on it?
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: This is wierd...
Hex editing is using a program that reads the hex code of any given file. You can use it to change the actual bytes versus putting the file back in an editable format. Modders sometimes use it to change the texture assigned to a msh so they don't have to put it back through XSI.YaNkFaN wrote:ok i know this is probably a stupid question or two questions but is hex editing changing the .msh so it recognizes another texture and also what program do I need and is there a tutorial on it?
Also, did you do the whole dc: thing in your lua?
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: This is wierd...
yea but it is still reading from the worlds folder for some reason
- trainmaster611
- Sith Lord

- Posts: 1779
- Joined: Thu Aug 24, 2006 5:22 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Building a railway to Coruscant
- Contact:
Re: This is wierd...
If thats the case, it doesn't matter where its reading the texture from. All that matters is that the texture its looking for is in ABC.YaNkFaN wrote:yea but it is still reading from the worlds folder for some reason
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: This is wierd...
h.o i just tried hex editing rep_inf_ep3trooper.msh, i'm gonna see if it fixed anything
EDIT: The hex edit was a success and sbf2 is now recognizing the .tga in the sides folder and not the "zombie" clone
thanks everyone for the help
EDIT: The hex edit was a success and sbf2 is now recognizing the .tga in the sides folder and not the "zombie" clone
thanks everyone for the help
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: This is wierd...
Your .lua loads whatever you tell it to load first. By default, the sides are loaded, and then the world. So if you duplicate anything you load in your sides in your world, it won't read the latter (only the first instance of a file is loaded).
However, you weren't telling it to load anything. Everything a .lvl file loads is defined in its .req file. Normally, side .req files only load "classes," i.e. unit .req files (the .req files from your REQ folder). These unit .reqs load unit .odfs, which load unit models, which load unit textures. It's all a big chain. You can't just put a texture in there and expect the game to read it, because the side .req doesn't call for it.
However, you can tell a .req to load whatever you want. You can tell a .req file to load just a texture (see your common/ingame .reqs for examples) or just a model, without having to load a unit class first. Most people just bypass this and find it easier to load a whole new unit (which is what you've done), but it's technically easier and more streamlined to just load what you need, which in this case would be a texture.
Just always remember that if you want something to overwrite something else, load it first.
However, you weren't telling it to load anything. Everything a .lvl file loads is defined in its .req file. Normally, side .req files only load "classes," i.e. unit .req files (the .req files from your REQ folder). These unit .reqs load unit .odfs, which load unit models, which load unit textures. It's all a big chain. You can't just put a texture in there and expect the game to read it, because the side .req doesn't call for it.
However, you can tell a .req to load whatever you want. You can tell a .req file to load just a texture (see your common/ingame .reqs for examples) or just a model, without having to load a unit class first. Most people just bypass this and find it easier to load a whole new unit (which is what you've done), but it's technically easier and more streamlined to just load what you need, which in this case would be a texture.
Just always remember that if you want something to overwrite something else, load it first.
