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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post 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 !
Last edited by jvsw on Thu Jun 11, 2009 1:47 pm, edited 1 time in total.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

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

Post 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
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

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

Post 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?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post 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
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post 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")
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post 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?
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post 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!
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post 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")
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

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

Post 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")
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post 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.
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post by 501st_commander »

Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

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

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

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

Post 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.
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post 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
User avatar
jvsw
Private Recruit
Posts: 24
Joined: Tue Jun 09, 2009 6:52 am
Projects :: Rhen Var Desert de Glace v2
Games I'm Playing :: Skyrim JK2 KotOR
Location: Marseille, France.
Contact:

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

Post by jvsw »

It work !

Thank you so much 501st_commander !
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

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

Post by 501st_commander »

your welcome! :D
Post Reply