Units not showing up ingame [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
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Units not showing up ingame [Solved]

Post by destos »

ok so i made 2 custom sides and they dont seem to be showing up in game. i did everything correctly as far as i know and the error log only says this which i dont fully understand because i have what its asking for
Hidden/Spoiler:
Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "imp_inf_dark_trooper" (check the side's .req file)
uf_updateClassIndex(): Added class: cis_inf_droideka
uf_updateClassIndex(): Added class: rep_inf_ep3_pilot

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "rep_inf_ep3_pilot" (check the side's .req file)
uf_updateClassIndex(): Already know class: rep_inf_ep3_pilot

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "rep_inf_ep3_pilot" (check the side's .req file)
uf_updateClassIndex(): Added class: rep_hero_Anakin
uf_updateClassIndex(): Added class: cis_hero_darthmaul
and heres my lua
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
cp7 = CommandPost:New{name = "cp7"}
cp8 = CommandPost:New{name = "cp8"}
cp9 = CommandPost:New{name = "cp9"}



--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:AddCommandPost(cp7)
conquest:AddCommandPost(cp8)
conquest:AddCommandPost(cp9)


conquest:Start()

SetUberMode(1);

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()

ReadDataFile("ingame.lvl")


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("dc:SIDE\\aas.lvl",
"rep_inf_ep3_pilot")
ReadDataFile("dc:SIDE\\afs.lvl",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_sniper",
"imp_inf_rifleman",
"gam_inf_gamorreanguard",
"imp_inf_dark_trooper",
"cis_hero_darthmaul")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_engineer",
"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_hover_aat")


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

SetupTeams{
rep = {
team = REP,
units = 100,
reinforcements = 200,
soldier = { "rep_inf_ep3_rifleman",9, 100},
assault = { "rep_inf_ep3_rocketeer",1, 10},
engineer = { "rep_inf_ep3_engineer",1, 10},
sniper = { "rep_inf_ep3_sniper",1, 10},
officer = {"rep_inf_ep3_officer",1, 10},
special = { "rep_inf_ep3_jettrooper",1, 10},

},
cis = {
team = CIS,
units = 100,
reinforcements = 200,
soldier = { "imp_inf_rifleman",9, 10},
assault = { "gam_inf_gamorreanguard",1, 100},
engineer = { "cis_inf_engineer",1, 10},
sniper = { "cis_inf_sniper",1, 10},
officer = {"imp_inf_dark_trooper",1, 10},
special = { "cis_inf_droideka",1, 10},

}
}

AddUnitClass(REP,"rep_inf_ep3_pilot",1, 10)
AddUnitClass(CIS,"rep_inf_ep3_pilot",1, 10)

SetHeroClass(CIS, "rep_hero_Anakin")
SetHeroClass(REP, "cis_hero_darthmaul")
also i did clean and remunge and i had no such luck.... tell me if you need anything else
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: units not showing up ingame

Post by fiddler_on_the_roof »

Not very experienced in this, but check your side req file(if you made one).
If you don't have one, look in assets/sides/imp/ for the req file there, copy it, and open, delete the other stuff, and add your units name like so.

Code: Select all

"imp_whatever"
whatever= the rest of the units name.

hope this helps
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Units not showing up ingame

Post by destos »

allready done that lol =P
i made sure the reqs where in the side.....
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Units not showing up ingame

Post by Master_Ben »

Did you add a class req as well (ie the req in the side's req folder)?
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Units not showing up ingame

Post by destos »

yea..... these are the only 2 units that dont work on my custom side.... my other 2 do... so i know its not a req error cause i checked that out..... typing and everything....
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Units not showing up ingame

Post by Master_Ben »

Ooh this might be the problem (although I think It might not be)

In the rep side there is a rep_inf_ep3_pilot already, You didn't mention it in the readdatafile so it probably isn't but its worth a try If you haven't already done so: remove the pilot from the rep req (not aas) :o
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Units not showing up ingame

Post by destos »

the pilot isnt in the rep req..... lol also the same issue is happening to the dark trooper...... this is the oddest error ever =P
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Crifton
Contact:

Re: Units not showing up ingame

Post by Tourny »

http://www.gametoast.com/forums/viewtop ... g+again...

I had this problem too. lol. I couldn't remember the second time but the first time I wrote "uctf" instead of "ucft" in the unit req. (AND the side req) I'm thinking that's probably what your doing (although there already appears to be evidence against it) so what I'm saying is that there's a 99/100 chance that you have a typo buried somewhere in there.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Units not showing up ingame

Post by Silas »

easiest thing to do to avoid misspellings like that is to just copy and existing req file and rename it, out your unit's name in the file itself, etc.

I suggest just starting from scratch, at least for the lua and req folders.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Units not showing up ingame

Post by Master_Ben »

Silas wrote:I suggest just starting from scratch, at least for the lua and req folders.


Yes, that seems very logical. :o
User avatar
destos
Chief Warrant Officer
Chief Warrant Officer
Posts: 349
Joined: Sat Sep 22, 2007 10:37 pm

Re: Units not showing up ingame

Post by destos »

thanks you guys lol i figured out what i did wrong...... i forgot to add the odf file for them XD i added the default but not the other odf file =P
Post Reply