a lot of units and vehicles on maps

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Locked
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

a lot of units and vehicles on maps

Post by Dragonum »

how did this work.
i make a map with ~50 vehicles and want 50 bots for each side.
when i test it with this 110 bots the map work.
when i put a few vehicles on the map it work too, but when i put all vehicles on the map the game crash.
when only 35 bots for each team spawn it works with all vehicles.

What can i do, to set all vehicles and the 55 bots for each team on the map?

here is my mission lua:
ReadDataFile("sound\\geo.lvl;geo1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_fly_jedifighter",
"rep_fly_gunship",
"rep_walk_atte",
"rep_inf_jet_trooper",
"rep_inf_macewindu")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic",
"cis_fly_droidfighter",
"cis_tread_hailfire",
"cis_walk_spider",
"cis_hover_aat",
"cis_inf_countdooku",
"cis_inf_droideka")

--ReadDataFile("dc:SIDE\\gam.lvl",
-- "gam_inf_gamorreanguard")

SetAttackingTeam(ATT);

-- Republic Stats
SetTeamName(REP, "Republic")
SetTeamIcon(REP, "rep_icon")
AddUnitClass(REP, "rep_inf_clone_trooper",25)
AddUnitClass(REP, "rep_inf_arc_trooper",0)
AddUnitClass(REP, "rep_inf_clone_pilot",0)
AddUnitClass(REP, "rep_inf_clone_sharpshooter",0)
AddUnitClass(REP, "rep_inf_jet_trooper",0)
SetHeroClass(REP, "rep_inf_macewindu")

-- CIS Stats
SetTeamName(CIS, "CIS")
SetTeamIcon(CIS, "cis_icon")
AddUnitClass(CIS, "cis_inf_battledroid",25)
AddUnitClass(CIS, "cis_inf_assault",0)
AddUnitClass(CIS, "cis_inf_pilotdroid",0)
AddUnitClass(CIS, "cis_inf_assassindroid",0)
AddUnitClass(CIS, "cis_inf_droideka",0)
SetHeroClass(CIS, "cis_inf_countdooku")

-- Attacker Stats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 350)
-- AddBleedThreshold(ATT, 31, 0.0)
-- AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 0.75)
AddBleedThreshold(ATT, 10, 1.5)
AddBleedThreshold(ATT, 1, 3.0)

-- Defender Stats
SetUnitCount(DEF, 25)
SetReinforcementCount(DEF, 350)
-- AddBleedThreshold(DEF, 31, 0.0)
-- AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 0.75)
AddBleedThreshold(DEF, 10, 1.5)
AddBleedThreshold(DEF, 1, 3.0)

-- Local Stats
-- SetTeamName(3, "locals")
-- AddUnitClass(3, "gam_inf_gamorreanguard",3)
-- SetUnitCount(3, 3)
-- SetTeamAsEnemy(3, ATT)
-- SetTeamAsEnemy(3, DEF)

-- Level Stats
ClearWalkers()
SetMemoryPoolSize("EntityWalker", 8)
AddWalkerType(0, 8) -- 8 droidekas (special case: 0 leg pairs)
AddWalkerType(2, 4) -- 2 spider walkers with 2 leg pairs each
AddWalkerType(3, 4) -- 2 attes with 3 leg pairs each
SetMemoryPoolSize("CommandWalker", 4)
SetMemoryPoolSize("EntityHover", 11)
SetMemoryPoolSize("EntityFlyer", 43)
SetMemoryPoolSize("FlyGotoHelper", 64)
SetMemoryPoolSize("EntityBuildingArmedDynamic", 16)
-- SetMemoryPoolSize("EntityTauntaun", 0)
SetMemoryPoolSize("MountedTurret", 100)
SetMemoryPoolSize("SoundSpaceRegion", 81)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize("Aimer", 400)
SetMemoryPoolSize("Obstacle", 725)
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:dra3\\dra3.lvl")
SetDenseEnvironment("true")
--AddDeathRegion("Sarlac01")
--SetMaxFlyHeight(90)
--SetMaxPlayerFlyHeight(90)
eddie
Gametoast Supporter
Gametoast Supporter
Posts: 366
Joined: Mon Oct 18, 2004 3:27 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by eddie »

It looks like you can not have a lot of vehicles and bots at the same time. Fred was saying something about this. I am not sure what is the limit, bit you should not go to the extrems since it might work for people with fast/strong PC but not with weak one. Maybe fred can say more about this...
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dragonum »

i have now, 12 jedifighters, 12 droidfighters, 4 atte`s, 4 gunships, 5 hailfire and 5 aat`s with 110 bots and it works, without problems.

thanks for the answer, so i can try this with 32 flyers on my next map, whre i need a lot of them.

thanks
dragonum
Gbcbsfnst

Post by Gbcbsfnst »

Can you send me it so i can use it or show me how to do it my self?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Wow... please don't resurrect ancient topics.

*locked*
Locked