Page 1 of 1

Skins

Posted: Thu Dec 13, 2007 9:26 pm
by Grev
I didnt understand the Skins tutorial, so obviously I went searching. I found a tutorial by Lordsaber on filefront.

It all started to work, but when I went to edit the lua, I got confused. Here:
"And then go were the infantry is described

Put dc: in this part. (this is for reading that there has been a modification)."
This is my script. Where do I put dc:?

Code: Select all

    SetMaxFlyHeight(30)
    SetMaxPlayerFlyHeight (30)
    
    SetMemoryPoolSize ("ClothData",20)
    SetMemoryPoolSize ("Combo",50)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",650)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",650)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",550)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",6000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",100)     -- should be ~1x #combo  
    
    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",
                             "rep_hover_barcspeeder")
    ReadDataFile("SIDE\\cis.lvl",
                             "cis_inf_rifleman",
                             "cis_inf_rocketeer",
                             "cis_inf_engineer",
                             "cis_inf_sniper",
                             "cis_inf_officer",
                             "cis_inf_droideka",
                             "cis_hero_darthmaul",
                             "cis_hover_aat")
                             
                             
    ReadDataFile("SIDE\\tur.lvl", 
    			"tur_bldg_laser",
    			"tur_bldg_tower")          
                             
	SetupTeams{
		rep = {
			team = REP,
			units = 20,
			reinforcements = 150,
			soldier  = { "rep_inf_ep3_rifleman",9, 25},
			assault  = { "rep_inf_ep3_rocketeer",1, 4},
			engineer = { "rep_inf_ep3_engineer",1, 4},
			sniper   = { "rep_inf_ep3_sniper",1, 4},
			officer = {"rep_inf_ep3_officer",1, 4},
			special = { "rep_inf_ep3_jettrooper",1, 4},
	        
		},
		cis = {
			team = CIS,
			units = 20,
			reinforcements = 150,
			soldier  = { "cis_inf_rifleman",9, 25},
			assault  = { "cis_inf_rocketeer",1, 4},
			engineer = { "cis_inf_engineer",1, 4},
			sniper   = { "cis_inf_sniper",1, 4},
			officer = {"cis_inf_officer",1, 4},
			special = { "cis_inf_droideka",1, 4},
		}
	}
     
    SetHeroClass(CIS, "cis_hero_darthmaul")
    SetHeroClass(REP, "rep_hero_anakin")
   
I thank whoever can answer my question.

Re: Skins

Posted: Thu Dec 13, 2007 9:35 pm
by Caleb1117
Like this:
ReadDataFile("dc:SIDE\\rep.lvl",

Code: Select all

    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",
                             "rep_hover_barcspeeder")

    ReadDataFile("dc:SIDE\\cis.lvl",
                             "cis_inf_rifleman",
                             "cis_inf_rocketeer",
                             "cis_inf_engineer",
                             "cis_inf_sniper",
                             "cis_inf_officer",
                             "cis_inf_droideka",
                             "cis_hero_darthmaul",
                             "cis_hover_aat")

Re: Skins

Posted: Thu Dec 13, 2007 9:59 pm
by Grev
Ill go see if it works
Edit: Do I have to change the name of the skin or anything on the code?
I renamed the skin as cloneremnantcommander.tga, and didnt get rid of the old clone commander skin. Anything to do?

Re: Skins

Posted: Fri Dec 14, 2007 12:34 am
by authraw
If you rename the skin, then the model (.msh file) that you are using won't know where to find it anymore. You can either hex-edit the model (TUTORIAL) and tell it where the new skin is or just rename the skin back to its old name.

Re: Skins

Posted: Fri Dec 14, 2007 8:42 am
by Grev
wouldnt renaming it force it to rewrite the same named skin in assets/sides?

Re: Skins

Posted: Fri Dec 14, 2007 10:43 pm
by authraw
Grev wrote:wouldnt renaming it force it to rewrite the same named skin in assets/sides?
Woah, where are you making your skins? You're not saving them in the BF2_Modtools/assets/sides/rep/msh folder, are you? You should make copies of all of the folders that you want to make changes to and put them in BF2_Modtools/Data_ABC/sides/

If you make a copy of the folder out of the assets folder, then you won't have to worry about changing the original assets. Plus, your map won't find the new skins and such unless they're in Data_ABC/sides/

Re: Skins

Posted: Sat Dec 15, 2007 12:20 am
by Grev
ya, I got it.. My first skin is on another topic. Its a green ep3 trooper.. Some reason my sinper skin wont work...