Page 1 of 1
This is wierd...
Posted: Thu Dec 25, 2008 9:09 am
by YaNkFaN
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...?
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:15 am
by Master_Ben
That's... Not... Possible...
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:19 am
by YaNkFaN
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
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:23 am
by Master_Ben
Oh, well then:
That's... Just...
Awesome...
I will try it out just to make sure your PC isn't haywire.

Re: this is wierd...
Posted: Thu Dec 25, 2008 11:28 am
by YaNkFaN
try it with an odf too
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:29 am
by Master_Ben
Wait.. Did you put in an odf file? 'cause I read that as I hit munge..

Re: this is wierd...
Posted: Thu Dec 25, 2008 11:31 am
by YaNkFaN
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
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:33 am
by Master_Ben
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?
Re: this is wierd...
Posted: Thu Dec 25, 2008 11:37 am
by YaNkFaN
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
Re: this is wierd...
Posted: Thu Dec 25, 2008 12:51 pm
by Master_Ben
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)
Re: this is wierd...
Posted: Thu Dec 25, 2008 4:02 pm
by Teancum
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.
Re: This is wierd...
Posted: Thu Dec 25, 2008 9:03 pm
by vampire_lord
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...
Re: This is wierd...
Posted: Thu Dec 25, 2008 9:44 pm
by YaNkFaN
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?
Re: This is wierd...
Posted: Thu Dec 25, 2008 9:49 pm
by trainmaster611
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?
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.
Also, did you do the whole dc: thing in your lua?
Re: This is wierd...
Posted: Thu Dec 25, 2008 9:51 pm
by YaNkFaN
yea but it is still reading from the worlds folder for some reason
Re: This is wierd...
Posted: Thu Dec 25, 2008 9:53 pm
by trainmaster611
YaNkFaN wrote:yea but it is still reading from the worlds folder for some reason
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.
Re: This is wierd...
Posted: Thu Dec 25, 2008 10:00 pm
by YaNkFaN
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
Re: This is wierd...
Posted: Thu Dec 25, 2008 10:32 pm
by Maveritchell
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.