No one Spawning - Updated 30/3/09

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

User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

No one Spawning - Updated 30/3/09

Post by sampip »

Ok, Here we go, this is slightly connected tp my previous question, I have now edited my map so it SHOULD have sides in it,
but no one is spawning, it's just me alone on the battlefield. I don't quite know what happened. Here is 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 = "local_cp"}


--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:Start()

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("SIDE\\wok.lvl",
"wok_inf_basic")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_marine",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


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

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_marine",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_rifleman",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}
SetTeamName (3, "wookies")
AddUnitClass (3, "wok_inf_basic", 8, 10)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)

SetTeamAsFriend(ATT,3)
SetTeamAsFriend(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")
Does anyone know what I can do to solve this?
Last edited by sampip on Mon Mar 30, 2009 12:08 pm, edited 2 times in total.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No one Spawning

Post by YaNkFaN »

you need to define a team in the setup teams part of the .lua add this line

WookieTeam= 3

under
ATT = 1
DEF = 2
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning

Post by sampip »

Ok, thanks. Would I need to put it in the bit underneath that looks like this aswell?

ATT = REP;
DEF = CIS;
--So would I put in something like:
Wookies = WookieTeam
--

I will try without it though!


EDIT
YaNkFaN wrote:you need to define a team in the setup teams part of the .lua add this line

WookieTeam= 3

under
ATT = 1
DEF = 2
There is no bit that says that. Do you mean REP = 1
CIS = 2 ?

EDIT2: OK, so now I have changed it, but now no wookies are spawning... :( Everyone else is though...
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No one Spawning - Update

Post by YaNkFaN »

try putting it under this whole block of lines also please post your error log made by the bf2 debug tool

--
-- 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;

WookieTeam= 3

also try putting this line

AddAIGoal(3, "Deathmatch", 100)

right under this line


function ScriptPostLoad()

that may work now
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

Ok, Tried that, still no wookies. My debug program has stopped working, so does anyone know where i could redownload it single...? I've tried re-installing Mod Tools....
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: No one Spawning - Update

Post by Teancum »

What's it doing? Does it give an error?
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

It says:
Hidden/Spoiler:
BF2_modtools.exe - Unable to Locate Component
The application has failed to start because binkw32.dll was not found. Re-installing the application may fix this problem.
But re-installing never did :(
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No one Spawning - Update

Post by YaNkFaN »

look in the everything you need to know thread to find out how to use the debug you need to put in in c://programfiles/lucasarts/starwarsbattelfront2/gamedata i believe
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

I did that. It is loading. It now has a new error (nothing new there) that says:

Please insert CD 1.

Any ideas? Or can I run it from ingame?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: No one Spawning - Update

Post by AQT »

sampip wrote:Any ideas?
Yeah, insert CD 1.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

I already had the Star Wars Battlefront II disk insterted. I even tryed taking it out and putting it back in again, but I got the same error. I don't have any other disks related to Star Wars Battlefront II.
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: No one Spawning - Update

Post by theultimat »

You mean you only had one disk at the beggining? If so you have the DVD version, as I do. You can download a version of that programme that works with the DVD version, look in the Everything You Need sticky for a link...
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

Oh right. Does anyone have a link to that?
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No one Spawning - Update

Post by YaNkFaN »

HERE

but it will be removed by monday so download quick
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

Ok, i entered "debug.", and the only thing that came up was Toggle(something I can't remember).

But when I entered the aigoals, I got this:
Team 1: Republic
100.0 Conquest (19)
Team 2: CIS
100.0 Conquest (20)
Team 3: [NULL]
100.0 Deathmatch (15)
__________________________
Anything interesting? Or am I using the wrong tool.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: No one Spawning - Update

Post by YaNkFaN »

wrong tool you should get something called a bfront2 log found here

C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

Well I have about 100 errors in there. Is there any error you might be looking for. I've got errors, because I haven't localized the Wookiees, that didnt work, but that shouldnt stop them spawning.
I've Also Got Godray errors, and memory pool errors. I will post an example of each error that appears.
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Godray.cpp(298)
GodrayManager: Exceeded maximum number of godrays (0)
- Godray Error
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 4

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 8

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 12

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 16

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 20

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 24

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 28
- And so on, you get the idea.... it goes up to 3 hundred and something.
Hidden/Spoiler:
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(884)
Missing a localized team name for this level, level.KF1.local

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(439)
level.KF1.locals not localized
- My localizing errors. But it shoudn't stop the Wookiees spawning ingame, should it?
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: No one Spawning - Update

Post by Teancum »

1-Fill the SoldierAnimation pool. Make it a practice to do that with every map and everything you do. These guys would be happy to show you how if you ask. They know I preach it a lot.

2-Go ahead a localize your wookies. When trying to pinpoint an error it's a good idea to knock out the other easy-to-fix errors if your stuck.

3-Once those are done, run the game again to get a fresh BFront2.log, and post the whole thing here.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: No one Spawning - Update

Post by sampip »

Will do. I haven't got time today :(, but I tried localizing wookies, more problems there.... Will explain on another thread.
Umm, I am going to ask, how do I fill SoldierAnimationPool?!
I have another load of annoying errors I will post on a new thread tomorrow.... Sky, ATTE and of course the localizing... Grrrr!

EDIT
Just out of asking, how do I fill soldier animation pool?!
ryukaji
Major
Major
Posts: 513
Joined: Mon Sep 17, 2007 7:46 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: No one Spawning - Update

Post by ryukaji »

http://www.gametoast.com/forums/viewtop ... 27&t=17860

Just do it in your maps .lua also not just in TEMPLATE
Post Reply