i guess i will resign from modding bf2, all i wanted to do was create a faction..with jango, jaster, myles, and a few more.

Moderator: Moderators
Code: Select all
AddUnitClass(ALL,"all_hero_chewbacca", 1, 2)
Code: Select all
ReadDataFile("SIDE\\all.lvl",
"all_inf_wookiee",
"all_hero_chewbacca")
Code: Select all
rep = {
team = REP,
units = 100,
reinforcements = 600,
soldier = { "kas_inf_ep3_kashyyyk_trooper1",70, 110},
assault = { "kas_inf_ep3_kashyyyk_engineer1",10, 18},
engineer = { "kas_inf_ep3_kashyyyk_rocketeer1",10, 18},
sniper = { "kas_inf_ep3_kashyyyk_sniper1",10, 18},
officer = {"kas_inf_ep3_gree1",10, 18},
special = { "all_inf_wookiee",10, 18},
},
}
AddUnitClass(ALL,"all_hero_chewbacca", 1, 2)
Code: Select all
officer = {"all_hero_chewbacca",10, 18},
Could it possibly be to do with the fact that there might be too much gap between the "," and the "1"Dragonum wrote:i tryed to add another unit to my new side with this line
but the map crash.Code: Select all
AddUnitClass(ALL,"all_hero_chewbacca", 1, 2)
here is a part of my mission.lua, i hope anyone can help. i made it like the tatooine assault mission.lua
i load the side.lvl and the units here.
i add the unit this way, but the map crash.Code: Select all
ReadDataFile("SIDE\\all.lvl", "all_inf_wookiee", "all_hero_chewbacca")
Code: Select all
rep = { team = REP, units = 100, reinforcements = 600, soldier = { "kas_inf_ep3_kashyyyk_trooper1",70, 110}, assault = { "kas_inf_ep3_kashyyyk_engineer1",10, 18}, engineer = { "kas_inf_ep3_kashyyyk_rocketeer1",10, 18}, sniper = { "kas_inf_ep3_kashyyyk_sniper1",10, 18}, officer = {"kas_inf_ep3_gree1",10, 18}, special = { "all_inf_wookiee",10, 18}, }, } AddUnitClass(ALL,"all_hero_chewbacca", 1, 2)
when i add the unit this way.everything works wellCode: Select all
officer = {"all_hero_chewbacca",10, 18},
dragonum
Code: Select all
AddUnitClass(ALL,"all_hero_chewbacca", 1, 2)
Code: Select all
AddUnitClass(ALL,"all_hero_chewbacca",1, 2)
Please help!ERROR[levelpack req\imp_inf_marine.req]:Expecting bracket, but none was found.
File : munged\pc\imp_inf_trooper.texture.req(1)...
ucft <--
ERROR[levelpack req\imp_inf_marine.req]:Expecting bracket, but none was found.
File : munged\pc\imp_inf_trooper.texture.req(1)...
ucft <--
2 Errors 0 Warnings
ERROR[levelpack impshell.req]:Expecting bracket, but none was found.
File : munged\pc\imp_inf_trooper.texture.req(1)...
ucft <--
ERROR[levelpack impshell.req]:Expecting bracket, but none was found.
File : munged\pc\imp_inf_trooper.texture.req(1)...
ucft <--
2 Errors 0 Warnings