Can't spawn as CIS, vehicles not spawning, locals help

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

Can't spawn as CIS, vehicles not spawning, locals help

Post by GolfBulb »

Ill just post all my questions rihgt now ;)

A. BIG PROBLEM!: I can not spawn as CIS i have to be republic no matter waht



1. 2 of my vehicle types aren't spawning. Its the Spider droid and the Hover GAT here is my lua,
Hidden/Spoiler:
-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 1) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("EntityWalker",3)
SetMemoryPoolSize("CommandWalker", 1)
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)
here is the req:
Hidden/Spoiler:
ucft
{
REQN
{
"lvl"
"all_fly_awing"
"all_fly_bwing"
"all_fly_kwing"
"all_fly_virago"
"all_fly_xwing"
"all_fly_ywing"
"all_hover_combatspeeder_bf1"
"all_hover_hovernaut"
"bes_fly_cloudcar"
"bes_fly_cloudcar_cw"
"cis_fly_droidfighter"
"cis_fly_droidgunship"
"cis_fly_fanblade"
"cis_fly_geofighter"
"cis_fly_greviousfighter"
"cis_fly_maf"
"cis_fly_scarab"
"cis_fly_tridroidfighter"
"cis_hover_gat"
"cis_hover_mtt"
"cis_hover_sith_speeder"
"cis_walk_dwarfspider"
"com_fly_r41"
"com_hover_light_attack_speeder"
"gun_walk_kaadu"
"imp_fly_tie_x1"
"imp_fly_tiebomber"
"imp_fly_tiedefender"
"imp_fly_tieinterceptor"
"imp_fly_tiefighter"
"imp_fly_tiephantom"
"imp_fly_trooptrans"
"rep_fly_anakinstarfighter"
"rep_fly_arc_gunship"
"rep_fly_arc170fighter"
"rep_fly_gunship"
"rep_fly_jedifighter"
"rep_fly_kitfistostarfighter"
"rep_fly_macestarfighter"
"rep_fly_obiwanstarfighter"
"rep_fly_plokoonstarfighter"
"rep_fly_saeseetinstarfighter"
"rep_fly_vwing"
"rep_fly_v19"
"rep_hover_swampspeeder"
"rep_hover_swampspeeder_2man"
"rep_walk_atxt"
"tat_hover_landspeeder"
"tat_hover_skiff"
}
REQN
{
"model"
"all_1st_cockpit_kwing"
"rep_1st_cockpit_jedistarfighter"
"all_1st_cockpit_awing"
"all_1st_cockpit_cloudcar"
"rep_1st_cockpit_ATXT"
}
}
and here is the other part of the lua:
Hidden/Spoiler:
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_officer",
"cis_inf_droideka",
"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")
And finaly, here is my munge log, and the dialog box log.. :
Hidden/Spoiler:
ERROR[localizemunge japanese.cfg]:Text file syntax error. (No matching bracket)ERROR[localizemunge japanese.cfg]:Text file syntax error. (No matching bracket) [continuing]
2 Errors 0 Warnings

ERROR[levelpack mission\DDWc_con.req]:Expecting bracket, but none was found.
File : munged\pc\ddwc_con.script.req(1)...

ucft <--
ERROR[levelpack mission\DDWc_con.req]:Expecting bracket, but none was found.
File : munged\pc\ddwc_con.script.req(1)...

ucft <--

2 Errors 0 Warnings

soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_DDW\Sound\shell\effects\whooshl3.wav - while munging C:\BF2_ModTools\data_DDW\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to open file C:\BF2_ModTools\data_DDW\Sound\shell\effects\whooshl3.wav, format may be invalid - while munging C:\BF2_ModTools\data_DDW\Sound\shell\shell.sfx
soundflmunge.exe : Error : Unable to read file list C:\BF2_ModTools\data_DDW\Sound\shell\shell.sfx - while munging C:\BF2_ModTools\data_DDW\Sound\shell\shell.sfx
Hidden/Spoiler:
Common\munge PC
Copying premunged files from MUNGED...
0 File(s) copied
Copying premunged files from MUNGED\PC...
Done
Munging bump_shader.xml
Munging decal_shader.xml
Munging detail_shader.xml
Munging filtercopy_shader.xml
Munging flare_shader.xml
Munging foliage_shader.xml
Munging hdr_shader.xml
Munging interface_shader.xml
Munging lightbeam_shader.xml
Munging normalmapadder_shader.xml
Munging normal_shader.xml
Munging normal_terrain_shader.xml
Munging ocean_shader.xml
Munging particle_shader.xml
Munging perpixeldiffuselighting_shader.xml
Munging pervertexdiffuselighting_shader.xml
Munging prereflection_shader.xml
Munging rain_shader.xml
Munging refraction_shader.xml
Munging sample_shader.xml
Munging scroll_shader.xml
Munging shadowquad_shader.xml
Munging shield_shader.xml
Munging skyfog_shader.xml
Munging specularlighting_shader.xml
Munging specular_shader.xml
Munging sprite_shader.xml
Munging stencilshadow_shader.xml
Munging terrain_shader.xml
Munging terrain_shader2.xml
Munging water_shader.xml
Munging zprepass_shader.xml
Merging ..\..\Common\Localize\PC\English.cfg...
Merging ..\..\Common\Localize\PC\French.cfg...
Merging ..\..\Common\Localize\PC\german.cfg...
Merging ..\..\Common\Localize\PC\Italian.cfg...
Merging ..\..\Common\Localize\PC\japanese.cfg...
Merging ..\..\Common\Localize\PC\spanish.cfg...
Merging ..\..\Common\Localize\PC\uk_english.cfg...
Merging ..\..\Common\Localize\Comments.cfg...
Merging ..\..\Common\Localize\english.cfg...
Merging ..\..\Common\Localize\french.cfg...
Merging ..\..\Common\Localize\german.cfg...
Merging ..\..\Common\Localize\italian.cfg...
Merging ..\..\Common\Localize\japanese.cfg...
Merging ..\..\Common\Localize\spanish.cfg...
Merging ..\..\Common\Localize\uk_english.cfg...

Munging Comments.cfg
Munging English.cfg
Munging French.cfg
Munging german.cfg
Uhoh, high ascii 0x1234
Munging Italian.cfg
Munging japanese.cfg
Munging spanish.cfg
Uhoh, high ascii 0x052B
Uhoh, high ascii 0x0935
Munging uk_english.cfg

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile core.req -writefiles MUNGED\PC\core.files -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir ..\..\_LVL_PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"
Munging core.req

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile common.req -writefiles MUNGED\PC\common.files -common MUNGED\PC\core.files -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir ..\..\_LVL_PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile ingame.req -writefiles MUNGED\PC\ingame.files -common MUNGED\PC\core.files MUNGED\PC\common.files -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir ..\..\_LVL_PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile inshell.req -writefiles MUNGED\PC\inshell.files -common MUNGED\PC\core.files MUNGED\PC\common.files -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir ..\..\_LVL_PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile MISSION\*.req -common MUNGED\PC\core.files MUNGED\PC\common.files MUNGED\PC\ingame.files -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir MUNGED\PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"

C:\BF2_ModTools\data_DDW\_BUILD\Common>levelpack -inputfile MISSION.req -checkdate -continue -platform PC -sourcedir ..\..\Common -inputdir MUNGED\PC -outputdir ..\..\_LVL_PC 2>>"C:\BF2_ModTools\data_DDW\_BUILD\PC_MungeLog.txt"
Sides\munge PC
Worlds\munge PC
'munge.bat' is not recognized as an internal or external command,
operable program or batch file.
munge_world Common PC
Done
Done
Done
munge_world DDW PC
Done
Done
Done
Munging DDW.PTH
Munging DDW_conquest.PTH
Munging DDW_Layer000.PTH
Munging DDW_Layer001.PTH
Munging DDW.req
The system cannot find the path specified.
Munging DDW.req
The system cannot find the path specified.
Sound\munge PC
File Not Found
File Not Found
Munging common.bnk, this could take a while...
Munging addme.lua...done.
Copying files to Battlefront II directory:
"C:\Program Files\LucasArts\Star Wars Battlefront II\GameData"
Addon dir exists, continuing...
Mod dir "DDW"exists, continuing...
Copying addme.script to mod dir...done
Copying "mission.lvl" to modDir\data\_LVL_PC\...done
Copying "core.lvl" to modDir\data\_LVL_PC\...done
Copying "DDW" to modDir\data\_LVL_PC\...done
Copying "SIDE" to modDir\data\_LVL_PC\...done
And yes i ahve made a Vehicles Side

2. i still need some help with the locals, which involves making a new CP, which i still dont know how to do either.

3. I want to know how to compress my Map, what files to delete, and waht to keep.

any help is appreciated
Last edited by GolfBulb on Wed Aug 01, 2007 5:56 pm, edited 2 times in total.
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

RE: Instead of myusual "forum Jacking"

Post by Teancum »

One word of advice. If you're only using the GAT and Dwarf Spider droid, delete all the other lines in the req, then re-munge the side. You'll find vehicles.lvl shrink down in size considerably. Big downloads make people less likely to download your map, so hopefully that'll help. Same thing with any custom sides you make. Only leave what you'll use in the req.
GolfBulb

Re: RE: Instead of myusual "forum Jacking"

Post by GolfBulb »

Teancum wrote:One word of advice. If you're only using the GAT and Dwarf Spider droid, delete all the other lines in the req, then re-munge the side. You'll find vehicles.lvl shrink down in size considerably. Big downloads make people less likely to download your map, so hopefully that'll help. Same thing with any custom sides you make. Only leave what you'll use in the req.

So should it look liek this

ucft
{
REQN
{
"lvl"
"cis_hover_gat"
"cis_walk_dwarfspider"
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Re: RE: Instead of myusual "forum Jacking"

Post by Penguin »

yes but with the close brackets
GolfBulb

Re: RE: Re: RE: Instead of myusual "forum Jacking"

Post by GolfBulb »

Penguin wrote:yes but with the close brackets
like a ( and )?
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

RE: Re: RE: Re: RE: Instead of myusual "forum Jacking&q

Post by RepSharpshooter »

Code: Select all

ucft
{
REQN
{
"lvl"
"cis_hover_gat"
"cis_walk_dwarfspider"
}
}
I think penguin meant like this, right?

Just in case:
Bracket = {} parentheses = ()
GolfBulb

Re: RE: Re: RE: Re: RE: Instead of myusual "forum Jacki

Post by GolfBulb »

WEll it still solves non of my problems :P
RepSharpshooter wrote:

Code: Select all

ucft
{
REQN
{
"lvl"
"cis_hover_gat"
"cis_walk_dwarfspider"
}
}
I think penguin meant like this, right?

Just in case:
Bracket = {} parentheses = ()
so it shuld look liek this

ucft
{
REQN
{
"lvl"
"cis_hover_gat"
"cis_walk_dwarfspider"
}
REQN
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

RE: Re: RE: Re: RE: Re: RE: Instead of myusual "forum J

Post by Caleb1117 »

No, just like this:

Code: Select all

ucft 
{ 
REQN 
{ 
"lvl" 
"cis_hover_gat" 
"cis_walk_dwarfspider" 
} 
}
GolfBulb

Re: RE: Re: RE: Re: RE: Re: RE: Instead of myusual "for

Post by GolfBulb »

Caleb1117 wrote:No, just like this:

Code: Select all

ucft 
{ 
REQN 
{ 
"lvl" 
"cis_hover_gat" 
"cis_walk_dwarfspider" 
} 
}
Okay, But i doubt if taht solved my Spawing problem, in ZE where it says CISDEF and stuff, tahts looking the CIS.req folder for the vehicle, so coul di add the CIS gat and dwarf spider droid to the .req file and copu over the meshs and everything to do with it? would it work then?
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

RE: Re: RE: Re: RE: Re: RE: Re: RE: Instead of myusual "

Post by Caleb1117 »

You mean... You don't have their msh's and odfs and stuff in your side?
GolfBulb

Re: RE: Re: RE: Re: RE: Re: RE: Re: RE: Instead of myusual &

Post by GolfBulb »

Caleb1117 wrote:You mean... You don't have their msh's and odfs and stuff in your side?
I do, i have them in a custom side, well egg guts put them in a custom side, but i still cant get em to work anyway...*sighs*


EDIT
GolfBulb wrote:
Caleb1117 wrote:You mean... You don't have their msh's and odfs and stuff in your side?
I do, i have them in a custom side, well egg guts put them in a custom side, but i still cant get em to work anyway...*sighs*

sry for the DP but just going to say that, I still need help wiht the Vehicles, and its very troubling, now none of myunits will apear
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Verbal warning to GolfBulb

Post by AceMastermind »

GolfBulb, please don't double post, edit your last post if you have more to add.
double post = bad
GolfBulb

Post by GolfBulb »

AceMastermind wrote:GolfBulb, please don't double post, edit your last post if you have more to add.
double post = bad
okay hten, Ill use it more often im sorry,

UPDATE: The CP is working but the acklays are not spawning as locals :( Her is the lua

Hidden/Spoiler:
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")
Post Reply