Unable to get unit class in game [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
Barny
Private
Posts: 37
Joined: Sun Dec 28, 2008 11:45 am

Unable to get unit class in game [Solved]

Post by Barny »

Alright im trying to get the jet droid iname, when i play ti isn't there, i added it into my lua (atleast i think so) heres my lua and bfront2log EDit: yes i did put the unit's odf name in cis.req


Hidden/Spoiler:
[code]Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk cis_inf_airdroid in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\BAH\Data\_lvl_pc\SIDE\cis.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk in dc:SIDE\cis.lvl

uf_updateClassIndex(): Added class: rep_inf_ep3_rifleman
uf_updateClassIndex(): Added class: rep_inf_ep3_sniper
uf_updateClassIndex(): Added class: rep_inf_ep3_rocketeer
uf_updateClassIndex(): Added class: rep_inf_ep3_engineer
uf_updateClassIndex(): Added class: maj_inf_clone_commando
uf_updateClassIndex(): Added class: rep_inf_clone_assassin
uf_updateClassIndex(): Added class: cis_inf_rocketeer
uf_updateClassIndex(): Added class: cis_inf_sniper
uf_updateClassIndex(): Added class: cis_inf_rifleman
uf_updateClassIndex(): Added class: cis_inf_engineer
uf_updateClassIndex(): Added class: cis_inf_officer
uf_updateClassIndex(): Added class: cis_inf_droideka
uf_updateClassIndex(): Added class: cis_inf_airdroid

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "cis_inf_airdroid" (check the side's .req file)
uf_updateClassIndex(): Added class: cis_hero_darthmaul
uf_updateClassIndex(): Added class: rep_hero_fisto[/code]

Hidden/Spoiler:
[code]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",
"cis_walk_spider",
"cis_walk_dwarfspider",
"cis_fly_droidfighter_sc",
"cis_inf_airdroid")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 52,
reinforcements = 500,
soldier = { "rep_inf_ep3_rifleman",9, 30},
assault = { "rep_inf_ep3_sniper",1, 5},
engineer = { "rep_inf_ep3_engineer",1, 5},
sniper = { "rep_inf_ep3_rocketeer",1, 5},
officer = {"maj_inf_clone_commando",1, 5},
special = { "rep_inf_clone_assassin",1, 2},

},
cis = {
team = CIS,
units = 58,
reinforcements = 575,
soldier = { "cis_inf_rocketeer",9, 30},
assault = { "cis_inf_sniper",1, 5},
engineer = { "cis_inf_engineer",1, 5},
sniper = { "cis_inf_rifleman",1, 5},
officer = {"cis_inf_officer",1, 5},
special = { "cis_inf_droideka",1, 4},
}
}
AddUnitClass(CIS, "cis_inf_airdroid",1, 4)
SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_fisto")[/code]
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: Unable to get unit class in game

Post by Aman/Pinguin »

Did you create a cis_inf_airdroid.req?
User avatar
Barny
Private
Posts: 37
Joined: Sun Dec 28, 2008 11:45 am

Re: Unable to get unit class in game

Post by Barny »

No, but i don't know how to create it. wasn't in the assets i got it from.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Unable to get unit class in game

Post by YaNkFaN »

.req's tell the game what files to load you must create one in order to get the unit in game

go to data_abc/sides/cis/req and create a file name cis_inf_airdroid.req

in it put this

ucft
{
REQN
{
"class"
"cis_inf_airdroid"
}
}


then go to data_abc/sides/cis and find the file cis.req there should be a long list of things in between one of them put this

"cis_inf_airdroid" make sure it has quotes.

then munge and play
User avatar
Barny
Private
Posts: 37
Joined: Sun Dec 28, 2008 11:45 am

Re: Unable to get unit class in game

Post by Barny »

allright, worked! thanks :music:
Post Reply