Page 1 of 1

Can't get my skin to work

Posted: Thu Oct 11, 2007 5:36 pm
by Silas
sigh..i'm new to modding and i'm trying to make my own skins. not a fun combination. anyway, i've made a new skin for the Rep sniper, using the GIMP thing. When i munge my level though, it says there's an error; the game was expecting a bracket around the sniper's name and such, but i have no idea where to put it. plz help

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:37 pm
by Thunder
did you go to the c_con LUA and put
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_sniper")

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:38 pm
by Silas
yeah, i did.

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:39 pm
by Thunder
ok and you copyed the REP folder from the assests folder?
then you made the LUA say it as costom
did you make sure you spelt it right?

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:40 pm
by Caleb1117
Please post the related lua for us.

Also, when you saved the skin, did you turn off RLE compression?
If you didn't, you need to resave it.

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:41 pm
by Silas
yeah, i have. hold on ill get it. RLE compression? what's that?

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:44 pm
by Thunder
when you click save as in GIMP
and save as TGA it will open a box and uncheck RLE Compression box then save

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:45 pm
by Silas
ReadDataFile("sound\\geo.lvl;geo1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
--"rep_bldg_forwardcenter",
"rep_fly_assault_dome",
--"rep_fly_gunship",
"rep_fly_gunship_dome",
"rep_fly_jedifighter_dome",
"rep_inf_ep3_marine",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_jettrooper",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_engineer",
"rep_hero_macewindu",
"rep_walk_atte")

ReadDataFile("dc:SIDE\\cis.lvl",
"cis_fly_droidfighter_dome",
--"cis_fly_geofighter",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_engineer",
"cis_hero_countdooku",
"cis_inf_droideka",
"cis_tread_hailfire",
--"cis_hover_stap",
"cis_walk_spider")
ReadDataFile("SIDE\\geo.lvl",
"gen_inf_geonosian")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_geoturret")

-- Level Stats

ClearWalkers()
SetMemoryPoolSize("EntityWalker", -1)
AddWalkerType(0, 3) -- 8 droidekas (special case: 0 leg pairs)
AddWalkerType(2, 3) -- 2 spider walkers with 2 leg pairs each
AddWalkerType(3, 0) -- 2 attes with 3 leg pairs each
local weaponcnt = 240
SetMemoryPoolSize("Aimer", 50)
SetMemoryPoolSize("AmmoCounter", weaponcnt)
SetMemoryPoolSize("BaseHint", 100)
SetMemoryPoolSize("CommandWalker", 1)
SetMemoryPoolSize("EnergyBar", weaponcnt)
SetMemoryPoolSize("EntityFlyer", 6)
SetMemoryPoolSize("EntityHover", 9)
SetMemoryPoolSize("EntityLight", 50)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("MountedTurret", 10)
SetMemoryPoolSize("Navigator", 50)
SetMemoryPoolSize("Obstacle", 450)
SetMemoryPoolSize("PathFollower", 50)
SetMemoryPoolSize("PathNode", 100)
SetMemoryPoolSize("TreeGridStack", 300)
SetMemoryPoolSize("UnitAgent", 50)
SetMemoryPoolSize("UnitController", 50)
SetMemoryPoolSize("Weapon", weaponcnt)

SetSpawnDelay(10.0, 0.25)

SetupTeams{

rep = {
team = REP,
units = 28,
reinforcements = 150,
soldier = { "rep_inf_ep2_rifleman",10, 25},
assault = { "rep_inf_ep3_marine",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep2_jettrooper",1, 4},

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:45 pm
by Silas
lol alright ill uncheck RLE thing

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 5:51 pm
by Silas
Thanks guys my skin actaully worked in the game. Ive been working on a new skin for almost two weeks, so thanks

Re: Can't get my skin to work

Posted: Thu Oct 11, 2007 6:50 pm
by Caleb1117
No problem, we're glad to help.
Just a friendly reminder, try not to post more then once. (in a row)
Use the edit botton, much better for all concerned.