Changing Skins for CUSTOM side classes
Moderator: Moderators
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Changing Skins for CUSTOM side classes
I am editing my sides by using a brand - new side, and I wish to add a custom texture to one of them. I tried placing the TGA file in the msh folder of my custom side, then took the msh files from a standard class, re - named them, put them into the msh folder as well, and then replaced the tga it refrenced to the one i added. Then I told my class' ODF to use that msh file I had just created/modified. I tested it, and it crashed the map. Parhaps I'm going about this the wrong way, but I don't want to replace anything - I want to make a brand - new skin to use.
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Did you add or delete datablocks/spaces/characters when you edited the msh? That in itself will crash the game. The character length not only has to remain the same for the tga name, but you have to actually overwrite the name itself. Just type over the name that's already there. You can also use the string replacement function in whatever editor you're using. (I'm using XVI.) Deleting or adding anything at all will screw up the file, thus the crashing.
-
jkempster
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
This is odd, now. I got a HEX Editor, then copied the ep3 rifleman's msh and low1 files to my side folder, renamed them all, told the ODF to look for that name, and changed the .tga refrences in the msh and the low1 files with my new texture. And guess what? It can't find the geometry. I can see the file right there, in the msh folder, with the exact same name as what my ODF is refrenceing. Stupid BFII, I'm staring right at it!!! Maybe you can't change msh files' names? Or you have to do that with a HEX Editor?
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
-
NegativeSmiley
well the ODF will call upon the units MSH. If you open up the units MSH it should have XXXXXXX.tga somewhere up in there. XXXXX being something. Just rename the .tga file and rename it in the Msh. You should leave your ODF alone because thats calling upon the units model (XXXX.msh) which in turn calls upon the units skin (XXXX.tga)
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
That's the thing! I don't want to use the origional MSH file, because that will change the default trooper throughout the game's base levels as well. That's why I copied the MSH file and pasted it over to my own side folder, then replaced the tga refrences with the new skin. Theoretically, it would still do everything the other file would have done (including load the model), and be completely seprate from the base game, but it doesn't seem to be cooperating - it still can't find the MSH file that I pasted and re - named.NegativeSmiley wrote:well the ODF will call upon the units MSH. If you open up the units MSH it should have XXXXXXX.tga somewhere up in there. XXXXX being something. Just rename the .tga file and rename it in the Msh. You should leave your ODF alone because thats calling upon the units model (XXXX.msh) which in turn calls upon the units skin (XXXX.tga)
Where, praytell, are these? This must be it - why does the program load every MSH file refrenced in the new side folder, but not this one?MercuryNoodles wrote:Also be sure you have the req files set up, and that the proper files are referenced by the shell.req/xxxshell.req files.
-
NegativeSmiley
I've never heard of this happening. If you Xfire me this will be alot more easier to work out. its NegativeSmiley.jangoisbaddest wrote: That's the thing! I don't want to use the origional MSH file, because that will change the default trooper throughout the game's base levels as well. That's why I copied the MSH file and pasted it over to my own side folder, then replaced the tga refrences with the new skin. Theoretically, it would still do everything the other file would have done (including load the model), and be completely seprate from the base game, but it doesn't seem to be cooperating - it still can't find the MSH file that I pasted and re - named.
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
-
NegativeSmiley
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Okay. That's where I've been working this whole time. I put my msh file in there, and it doesn't find it. And if I leave the name the same (rep_inf_ep3trooper), it doesn't do the changes - it gives me a plain - old default blue clonetrooper. I think it's not looking in this folder for some reason, and instead looking at some default side file somewhere.
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
I made an xxxshell.req file and put it in the right place (inside the side's folder), but where does the regualr shell file go? I'm pretty sure that this is the problem.MercuryNoodles wrote:Also be sure you have the req files set up, and that the proper files are referenced by the shell.req/xxxshell.req files.
- 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
-
Penguin
- Jedi Admin

- Posts: 2541
- Joined: Sun Mar 05, 2006 12:00 am
- Location: Australia
-
CarbineImpulse
Someone will un doubtably point you in the direction of BF2 Jedi Creation.doc that comes with the tools set up you custom side, this will in no way effect standard sides in any other part of the game. If you're having problems then start off simple. Don't rename anything just change the .tga (the image not the name). Once sorted and working you can ammend (if you want) the req,odf and msh names. The msh points at the tga and to change this you'll need to hex edit the name that the msh points at or looks for. I think it has to remain the same number of characters as the original tga reference. If you do decide to edit the msh file then you can rename the tga. Personally I find it a hassle and just don't edit the msh or tga name. If your new to it then just stick to the simple method initially.
- jangoisbaddest
- Lieutenant General

- Posts: 661
- Joined: Mon Feb 27, 2006 12:10 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: All Along The Watchtower
Right. Except that it doesn't work.Penguin wrote:all you need to do is has the msh, sides req, odf, req for the odf. and load if in your lua
I'm not exactly a newb - I know what has to be refrenced for a new entity in a custom side. But it's not working for this one.
I would also like to point out that I have read the Jedi Creation document, and there's nothing about editing/adding new msh files at all, and that I have a HEX editor and have edited the tga that it is supposed to refrence. But that isn't the problem - the problem is the program not using the new msh file that I put in the msh folder - renamed or not, I might add.
I would also like to point out that I have created at least 16 new entities for my new side, and they've all worked fine. It is only this one, because i'm trying to give this class a msh that doesn't exist in the base game.
That's why I looked in the assets folder for anything that might be missing for actual new msh files. I found it in the shell req for the republic side, and did the same for mine; and, since it was one of the two files that MercuryNoodles mentioned, I figured there was one more file that needed a refrence (especially since the BFront log kept telling me that the crashes were due to the inablility to find that very file, which just happens to be resting in my msh folder where it's supposed to be, including the new TGA it's refrencing and everything). So if anyone knows why it still can't find that Diet Dr. Pepper new msh file in its proper folder, or if there's any better way to get a new skin into a new unit, that's all I need. Thanks.
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Gah! Wrong information...sorry. (I don't know how I ended up mangling the names that badly.) I meant xxx.req and xxxshell.req files. They both go under "data_xxx/Sides/xxx/", and you'd need to add the names of the appropriate files for the new unit to both. If you're just replacing a unit, this shouldn't be necessary.
So, you should have a new msh, tga, odf, and req file, then add the info to those two files I listed above, and you should be set.
So, you should have a new msh, tga, odf, and req file, then add the info to those two files I listed above, and you should be set.
