Page 1 of 1

Problem with skins (Solved, wrong Common folder :))

Posted: Sat Sep 30, 2006 1:25 am
by Captain_Mazda
Well, being an expert at Photoshop, I decided to skin each faction for Mos Venur. I began with the Republic and followed the steps written in the modding Wiki for skinning. I re-textured many units and vehicles for the Republic. One part is however baffling me.
4. Now, go into: data_***/common/script/***/

and open the LUA file named ***c_con.lua (for me that was BS1c_con.lua ).

5. Now if you look down the LUA file you will see:

ReadDataFile("SIDE\\rep.lvl" change this to ReadDataFile("dc:SIDE\\rep.lvl"
Welll, this is what my LUA looked like:

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",

However, when I was done with the textures and ran the game after munging (Yes, I checked "rep" in the pull down menu and selected Common as well), the game crashes halfway through the loading buttons.

I went back and re-edited the LUA and took out the "dc:" part and the map loaded fine, but without my edited skins.

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",

I saved the TGAs as 24-bit without RLE compression. Any ideas as to why the LUA is causing this?

RE: Problem with skins

Posted: Sat Sep 30, 2006 2:29 am
by Koolaid7g
You need to create a new custom side for your skins. By adding the dc: to the rep.lvl, you're drawing the game away from your skins ( which I assume you put into the shipped Rep side) to a side that does not exist. By creating the new side, you can add new skins, weapons, etc without the hassle you're experiencing now.

Posted: Sat Sep 30, 2006 3:05 am
by Captain_Mazda
So what would you have me do at this point and time? I love it when it works for the mass and I'm left with unsolvable problems :roll:

Posted: Sat Sep 30, 2006 3:49 am
by General_Grievous_4
The easiest thing to do would be to copy the whole side from assets into the sides folder of your map. But that causes massive file sizes, so instead you should create your own side in the sides folder. Make sure you have all the needed files for the unit including all the weapons.

Posted: Sat Sep 30, 2006 3:53 am
by Captain_Mazda
Well, haha. A quick glance to the BF2 Jedi Creation document and I noticed I had copied the wrong "common" folder into my data_MVR\Sides folder :D

It's just the sleep-deprivation, but I sure am glad I've solved these two big problems ;)