okay, well i got 2 problems :D

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
GolfBulb

okay, well i got 2 problems :D

Post by GolfBulb »

1: well i have gotten my CP to work finaly, but the locals are not spawning there here is my lua

SetTeamName (3, "Acklays")
AddUnitClass (3, "geo_inf_acklay", 10,15)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)

and 2: My vehicles are not spawning, here is the lua

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\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep2_jettrooper",
"rep_hover_fightertank",
"rep_hero_macewindu",
"rep_hover_barcspeeder",
"rep_walk_atte")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_bdroid",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_magnaguard",
"cis_inf_officer",
"cis_inf_droideka",
"cis_inf_marine",
"cis_inf_pilot",
"cis_hero_countdooku",
"cis_walk_dwarfspider",
"cis_hover_gat",
"cis_hover_aat")

ReadDataFile("SIDE\\geo.lvl",
"geo_inf_acklay",
"gen_inf_geonosian")

ReadDataFile("dc:SIDE\\vehicles.lvl",
"cis_hover_gat",
"cis_walk_dwarfspider")

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

SetupTeams{
rep = {
team = REP,
units = 400,
reinforcements = 700,
soldier = { "rep_inf_ep2_rifleman",60, 100},
assault = { "rep_inf_ep2_rocketeer",20, 25},
engineer = { "rep_inf_ep2_engineer",25, 30},
sniper = { "rep_inf_ep2_sniper",10, 16},
officer = {"rep_inf_ep3_officer",35, 40},
special = { "rep_inf_ep2_jettrooper",20, 25},

},
cis = {
team = CIS,
units = 400,
reinforcements = 650,
soldier = { "cis_inf_rifleman",40, 60},
assault = { "cis_inf_pilot",10, 20},
engineer = { "cis_inf_marine",15, 20},
sniper = { "cis_inf_sniper",15, 20},
officer = { "gen_inf_geonosian",4, 9},
special = { "cis_inf_droideka",5, 10},

}
}
SetTeamName (3, "Acklays")
AddUnitClass (3, "geo_inf_acklay", 10,15)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)


SetHeroClass(CIS, "cis_hero_countdooku")
SetHeroClass(REP, "rep_hero_macewindu")


-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 3) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 3) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("EntityWalker", 3)
SetMemoryPoolSize("CommandWalker", 4)
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 32)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)

SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:DDW\\DDW.lvl", "DDW_conquest")
ReadDataFile("dc:DDW\\DDW.lvl", "DDW_conquest")
SetDenseEnvironment("false")

Please tell me if something is wrong
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

1. Does you locals have spawn points?

2. Double check your vehicle spawns. And do you have regions?
GolfBulb

Post by GolfBulb »

EGG_GUTS wrote:1. Does you locals have spawn points?

2. Double check your vehicle spawns. And do you have regions?

1. My cp is workable, CIS have taken it, its the acklays that dotn spawn

2. you dont NEED regions, and if i need them here, I dont know how the work them wiht my spawn points, would it be like VEHICLE ID_capture??
Post Reply