Page 1 of 1

How to add units "snow" and edit the heroes ? [solved]

Posted: Tue Jun 09, 2009 7:00 am
by jvsw
Hi everybody!

I am a french modder so please excuse me if my English is not very good.

I just wanted to ask how to change the units (rebels and empire) to be dressed as on the skin because Hoth base does not suit me.

In the script file "Lua" from I change my map yet :
Hidden/Spoiler:
SetupTeams{
all = {
team = ALL,
units = 25,
reinforcements = 150,
soldier = { "all_inf_rifleman_snow",9, 25},
assault = { "all_inf_rocketeer_snow",1,4},
engineer = { "all_inf_engineer_snow",1,4},
sniper = { "all_inf_sniper_snow",1,4},
officer = { "all_inf_officer_snow",1,4},
special = { "all_inf_wookiee_snow",1,4},

},
imp = {
team = IMP,
units = 25,
reinforcements = 150,
soldier = { "imp_inf_rifleman_snow",9, 25},
assault = { "imp_inf_rocketeer_snow",1,4},
engineer = { "imp_inf_engineer_snow",1,4},
sniper = { "imp_inf_sniper_snow",1,4},
officer = { "imp_inf_officer_snow",1,4},
special = { "imp_inf_dark",1,4},
},
}

SetHeroClass(ALL, "all_hero_luke_jedi")
SetHeroClass(IMP, "imp_hero_darthvader")
ut nothing works because in-game deprive me that all units!

I also know how to edit the heroes because nothing works.

Thank you in advance for your answers !

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 8:46 am
by Deviss
well this no is your complete lua, if yoou change something for example the hero or officer soldier, you also need change more up where say:
readdatafile (xxxxxx)
all_inf_soldier
understand? :D

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 10:24 am
by B.I.G_Cookie
The snow units aren't the "standard units" so I guess you have to make custom sides for them, right?

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 10:27 am
by 501st_commander
B.I.G_Cookie wrote:The snow units aren't the "standard units" so I guess you have to make custom sides for them, right?
no,
for GCW they are included

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 11:21 am
by jvsw
Thank you! I'll try it now and if it does not work after I reposte.

EDIT
I will try with this: (hope it works at least for the infantry because the heroes I do not know if I make a new line)
Hidden/Spoiler:
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_laser")

ReadDataFile("SIDE\\all.lvl",
"all_inf_riffleman_snow",
"all_inf_rocketeer_snow"
"all_inf_engineer_snow"
"all_inf_sniper_snow"
"all_inf_officer_snow"
"all_inf_wookie_snow"

ReadDataFile("SIDE\\imp.lvl",
"all_inf_riffleman_snow",
"all_inf_rocketeer_snow"
"all_inf_engineer_snow"
"all_inf_sniper_snow"
"all_inf_officer_snow"
"all_inf_dark"
SetupTeams{
all = {
team = ALL,
units = 25,
reinforcements = 150,
soldier = { "all_inf_rifleman_snow",9, 25},
assault = { "all_inf_rocketeer_snow",1,4},
engineer = { "all_inf_engineer_snow",1,4},
sniper = { "all_inf_sniper_snow",1,4},
officer = { "all_inf_officer_snow",1,4},
special = { "all_inf_wookiee_snow",1,4},

},
imp = {
team = IMP,
units = 25,
reinforcements = 150,
soldier = { "imp_inf_rifleman_snow",9, 25},
assault = { "imp_inf_rocketeer_snow",1,4},
engineer = { "imp_inf_engineer_snow",1,4},
sniper = { "imp_inf_sniper_snow",1,4},
officer = { "imp_inf_officer_snow",1,4},
special = { "imp_inf_dark",1,4},
},
}

SetHeroClass(ALL, "all_hero_luke_jedi")
SetHeroClass(IMP, "imp_hero_darthvader")

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 11:53 am
by 501st_commander
look at this, and here you will have a sev 5,

Code: Select all

ReadDataFile("SIDE\\all.lvl",
"all_inf_riffleman_snow", 
"all_inf_rocketeer_snow"
"all_inf_engineer_snow"
"all_inf_sniper_snow"
"all_inf_officer_snow"
"all_inf_wookie_snow"

ReadDataFile("SIDE\\imp.lvl",
"all_inf_riffleman_snow", 
"all_inf_rocketeer_snow"
"all_inf_engineer_snow"
"all_inf_sniper_snow"
"all_inf_officer_snow"
"all_inf_dark"
you are missing tons of "," and two ")". this is how it should look:
ReadDataFile("SIDE\\all.lvl",
"all_inf_riffleman_snow",
"all_inf_rocketeer_snow",
"all_inf_engineer_snow",
"all_inf_sniper_snow",
"all_inf_officer_snow",
"all_inf_wookie_snow")

ReadDataFile("SIDE\\imp.lvl",
"all_inf_riffleman_snow",
"all_inf_rocketeer_snow",
"all_inf_engineer_snow",
"all_inf_sniper_snow",
"all_inf_officer_snow",
"all_inf_dark")
also your heroes arnt in there so this is how it should look:

Code: Select all

ReadDataFile("SIDE\\all.lvl",
"all_inf_riffleman_snow", 
"all_inf_rocketeer_snow",
"all_inf_engineer_snow",
"all_inf_sniper_snow",
"all_inf_officer_snow",
"all_inf_wookie_snow",
"all_hero_luke_snow")

ReadDataFile("SIDE\\imp.lvl",
"all_inf_riffleman_snow", 
"all_inf_rocketeer_snow",
"all_inf_engineer_snow",
"all_inf_sniper_snow",
"all_inf_officer_snow",
"all_inf_dark",
"imp_hero_darthvader")
And one last thing, why do you have all units in the imp.lvl area?

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:13 pm
by jvsw
I have these units because I thought he had to add because I saw a tutorial in french and french modders there was not much more often so there are things marked wrong. lol

Thank you ! I try it now !


EDIT
No. It does not, the game crashes immediately after loading. Well ... do not worry, I'll try to find a way to redo the work.

Thank you anyway!

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:15 pm
by 501st_commander
did you make all this imp?

Code: Select all

ReadDataFile("SIDE\\imp.lvl",
"all_inf_riffleman_snow", 
"all_inf_rocketeer_snow",
"all_inf_engineer_snow",
"all_inf_sniper_snow",
"all_inf_officer_snow",
"all_inf_dark",
"imp_hero_darthvader")

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:29 pm
by Jaspo
lol, sides don't work because you are trying to load rebels from the imp folder, rather than imperials. Also there is no unit called "imp_inf_dark", rather, it's imp_inf_dark_trooper".

instead of being all (which is short for rebel alliance) they should be:

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman_snow",
"imp_inf_rocketeer_snow",
"imp_inf_engineer_snow",
"imp_inf_sniper_snow",
"imp_inf_officer_snow",
"imp_inf_dark_trooper",
"imp_hero_darthvader")

Thirdly, this unit does not exist:

"all_hero_luke_snow"

instead use

"all_hero_luke_pilot"

and change

SetHeroClass(ALL, "all_hero_luke_jedi")

to

SetHeroClass(ALL, "all_hero_luke_pilot")

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:32 pm
by jvsw
I do not know because I just barely started to make maps and I ask for help because I have in the project to make a tutorial.

I understood how to make a "manual clean, TGAs to change the sky, add water ... all things "basic", but the heroes and classes I do not understand.

So if you could explain in detail if it does not disturb you ...

And once again sorry for my English because I translated word for word.

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:35 pm
by 501st_commander

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 1:59 pm
by Jaspo
If you just want snow units, then put the changes in that I indicated. For custom heros, you will need the link above. I will make my contribution easier for you, please copy and paste this over whatever you currently have:
Hidden/Spoiler:
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman_snow",
"all_inf_rocketeer_snow",
"all_inf_sniper_snow",
"all_inf_engineer_snow",
"all_inf_officer_snow",
"all_inf_wookiee_snow",
"all_hero_luke_pilot")

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman_snow",
"imp_inf_rocketeer_snow",
"imp_inf_engineer_snow",
"imp_inf_sniper_snow",
"imp_inf_officer_snow",
"imp_inf_dark_trooper",
"imp_hero_darthvader")

SetupTeams{
all = {
team = ALL,
units = 25,
reinforcements = 150,
soldier = { "all_inf_rifleman_snow",9, 25},
assault = { "all_inf_rocketeer_snow",1,4},
engineer = { "all_inf_engineer_snow",1,4},
sniper = { "all_inf_sniper_snow",1,4},
officer = { "all_inf_officer_snow",1,4},
special = { "all_inf_wookiee_snow",1,4},

},
imp = {
team = IMP,
units = 25,
reinforcements = 150,
soldier = { "imp_inf_rifleman_snow",9, 25},
assault = { "imp_inf_rocketeer_snow",1,4},
engineer = { "imp_inf_engineer_snow",1,4},
sniper = { "imp_inf_sniper_snow",1,4},
officer = { "imp_inf_officer_snow",1,4},
special = { "imp_inf_dark_trooper",1,4},
},
}

SetHeroClass(ALL, "all_hero_luke_pilot")
SetHeroClass(IMP, "imp_hero_darthvader")
I removed the turrets because I doubt you are using any.

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 2:34 pm
by Maveritchell
It would be worth your while to simply look at the stock Hoth .lua (g_con); because it loads the exact units you want to load. All the stock luas are located in BF2ModTools\assets\scripts.

Re: How to add units "snow" and edit the heroes ?

Posted: Tue Jun 09, 2009 2:47 pm
by jvsw
I'll try that. And I tell you if it works.

Edit: No. The game still crashes, I have really bad luck, I would start my map and I try again.

Anyway thank you guys, you are cool!

Edit: My map does even more and I do not know why. Before, only Galactic Civil War did not work. Now it's both.

Do not double-post. Please edit your old post if you would otherwise post twice in a row. -Staff

Re: How to add units "snow" and edit the heroes ?

Posted: Thu Jun 11, 2009 12:05 pm
by jvsw
It work !

Thank you so much 501st_commander !

Re: How to add units "snow" and edit the heroes ?

Posted: Thu Jun 11, 2009 12:08 pm
by 501st_commander
your welcome! :D