Can't get ATTE or Jedi Starfighter to spawn [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
sithlord501
Recruit Womprat Killer
Posts: 7
Joined: Tue Jul 10, 2012 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: yes
xbox live or psn: No gamertag set

Can't get ATTE or Jedi Starfighter to spawn [Solved]

Post by sithlord501 »

hey, I was making a mpa and i cant get either the atte or the jedi starfighter to spawn, i could get other vehicle but not those. Any ideas? I am pretty sure my lua is correct.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: cant get atte or jedi starfighter to spawn

Post by willinator »

You're problem is in your LUA, at this section right here:
Hidden/Spoiler:
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
This part is underneath the team setup. You need to increase the memory pool for EntityFlyer, and you need to change AddWalkerType(3, 0) to (3, however many ATTE's you want to spawn). That should fix it.
sithlord501
Recruit Womprat Killer
Posts: 7
Joined: Tue Jul 10, 2012 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: yes
xbox live or psn: No gamertag set

Re: cant get atte or jedi starfighter to spawn

Post by sithlord501 »

is this in my maps lua?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: cant get atte or jedi starfighter to spawn

Post by Bob »

Don't forget to set up a memory pool for CommandWalkers.

Code: Select all

    SetMemoryPoolSize("CommandWalker", *)
Insert for * the number of ATTEs on the map.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: cant get atte or jedi starfighter to spawn

Post by willinator »

sithlord501 wrote:is this in my maps lua?
In the LUA for whichever mode these vehicles are in (ABC#_whatevergamemode).
sithlord501
Recruit Womprat Killer
Posts: 7
Joined: Tue Jul 10, 2012 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: yes
xbox live or psn: No gamertag set

Re: cant get atte or jedi starfighter to spawn

Post by sithlord501 »

ok thanks, then what about the jedistarfighter, i cant get that to spawn either
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: cant get atte or jedi starfighter to spawn

Post by Bob »

Code: Select all

    SetMemoryPoolSize("EntityFlyer", *)
would it be to set the memory pool.
Don't forget to get a model for it since the rep_fly_jedifighter_sc.odf calls for a geometry that isn't included in the stock assets. I think there was one released, just search Gametoast and/or Filefront.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: cant get atte or jedi starfighter to spawn

Post by AQT »

willinator wrote:You need to increase the memory pool for EntityFlyer
sithlord501 wrote:ok thanks, then what about the jedistarfighter, i cant get that to spawn either
Willinator specifically wrote that in his very first response to you. The Jedi Starfighter is a type of flyer.
Post Reply