hello gametoast
I ran my map online (lan) it loads up ok and you can see my map for a single second and then it crashes to my desktop
please help
Re: Map Crashes Online (LAN) Help
Posted: Fri Aug 08, 2014 8:15 pm
by Noobasaurus
What does your lua look like? Does this happen with other maps? Are you using a modded exe?
Re: Map Crashes Online (LAN) Help
Posted: Tue Aug 12, 2014 3:55 pm
by Lorul1
no this dose not happen with other maps?
no I don't think you using a modded exe, i'm using my steam shortcut to the application ? the only modded things I have on my bf2 is my map and the free cam mod with the cheat options?
and this 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")
ScriptCB_DoFile("ambush")
---------------------------------------------------------------------------
-- 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.
---------------------------------------------------------------------------
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF, text = "level.geo1.objectives.conquest", 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:AddCommandPost(cp7)
conquest:AddCommandPost(cp8)
conquest:AddCommandPost(cp9)
conquest:AddCommandPost(cp10)
conquest:AddCommandPost(cp11)
Mom = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
PlayAnimation("final")
PlayAnimation("elecfix")
end
end
)
Dtime = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
StartTimer(Dafeet)
ShowTimer(Dafeet)
end
end
)
Time = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
PlayAnimation("fallfire")
end
end
)
De1 = OnEnterRegion(
function(region, player)
if IsCharacterInRegion(player,"dnow") then
RemoveRegion("deathregionk1")
RemoveRegion("deathregionk2")
end
end,
"dnow"
)
D2 = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character,"thend") then
ShowTimer(nil)
DestroyTimer(timer)
end
end,
"thend"
)
Itworks = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "gmelt") then
PlayAnimation("hitb")
end
end,
"gmelt"
)
Hope = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "Regionvic") then
SetReinforcementCount(2, 0)
end
end,
"Regionvic"
)
Fall = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "railblock") then
PlayAnimation("Railstuck")
end
end,
"railblock"
)
World = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "wor2") then
PlayAnimation("wow2")
end
end,
"wor2"
)
Falo = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "railwoo") then
PlayAnimation("Railfall")
end
end,
"railwoo"
)
Mustwork = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
ActivateRegion("Regirum")
end
end
)
Cfall = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
ActivateRegion("gmelt")
ActivateRegion("dnow")
ActivateRegion("Regionvic")
ActivateRegion("thend")
ActivateRegion("railblock")
ActivateRegion("railwoo")
end
end
)
Once = OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp3") == 1 then
SetProperty("cp3", "CaptureRegion", "xxx")
end
end
)
Taken = OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp1") == 1 then
RespawnObject("cp12")
RespawnObject("cp11")
RespawnObject("cp10")
PlayAnimation("wow1")
SetProperty("cp11","AISpawnWeight",10)
SetProperty("cp10","AISpawnWeight",7)
SetProperty("cp9", "CaptureRegion", "cp9_capture")
AddDeathRegion("deathregionk3")
end
end,
"wow1"
)
Bye = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
SetProperty("cp1","Team",0)
SetProperty("cp2","Team",0)
SetProperty("cp3","Team",0)
SetProperty("cp4","Team",0)
SetProperty("cp5","Team",0)
SetProperty("cp6","Team",0)
SetProperty("cp7","Team",0)
SetProperty("cp8","Team",0)
SetProperty("cp9","Team",0)
SetProperty("cp10","Team",0)
SetProperty("cp11","Team",1)
SetProperty("cp12","Team",0)
SetProperty("cp8", "CaptureRegion", "xxx")
SetProperty("cp3", "CaptureRegion", "xxx")
SetProperty("cp6", "CaptureRegion", "xxx")
SetProperty("cp7", "CaptureRegion", "xxx")
SetProperty("cp9", "CaptureRegion", "xxx")
end
end
)
by = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
AddDeathRegion("deathregionk1")
AddDeathRegion("deathregionk2")
SetReinforcementCount(2, -1)
SetReinforcementCount(1, -1)
end
end
)
thnks = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "geo_bldg_technounion_cp" then
SetProperty("cp1", "CaptureRegion", "cp1_capture")
end
end
)
Dad = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
Activateregion("wor")
Activateregion("wor2")
end
end
)
Bob = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "cis_fedcruiser_commandroom_SG_blender" then
PlayAnimation("sm2")
end
end
)
animateobja = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_console" then
PlayAnimation("sm1")
end
end
)
What = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "kas2_prop_door_mech" then
PlayAnimation("battletop")
Ambush("ambushpat2", 6, 5)
end
end
)
ani = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp11") == 1 then
Ambush("ambushpat3", 14, 5)
AddDeathRegion("deathregionk4")
end
end
)
Rumblbl = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
SetProperty ("change1","Team",1)
end
end
)
Jww = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_engine_tann" then
PlayAnimation("sm2")
end
end
)
Time = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp3") == 1 then
PlayAnimation("Abc")
KillObject("geo_bldg_technounion_cp2")
end
end
)
Gfun = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp4") == 1 then
ActivateRegion("fun1")
ActivateRegion("fun2")
SetProperty("cp9","AISpawnWeight",20)
end
end
)
Foe = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp10") == 1 then
SetProperty("cp10", "CaptureRegion", "xxx")
end
end
)
Foten = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp11") == 1 then
SetProperty("cp11", "CaptureRegion", "xxx")
end
end
)
Fonin = OnFinishCapture(
function(post,holding)
if GetCommandPostTeam("cp12") == 1 then
SetProperty("cp12", "CaptureRegion", "xxx")
end
end
)
good = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "fun1") then
PlayAnimation("group360")
end
end,
"fun1"
)
grace = OnEnterRegion(
function(region, character)
if IsCharacterHuman(character, "fun2") then
SetProperty("geo_bldg_technounion_cp","Team",2)
end
end,
"fun2"
)
Joe = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_engine_tank" then
PlayAnimation("sm3")
end
end
)
Itcvxzc = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_console" then
ShowMessageText("level.spa.hangar.shields.atk.one", REP)
end
end
)
Ann = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_engine_tann" then
ShowMessageText("level.spa.hangar.shields.atk.two", REP)
end
end
)
Nta = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "spa_prop_engine_tank" then
ShowMessageText("level.spa.hangar.shields.atk.three", REP)
end
end
)
OnEnterRegion(
function(regIn,character)
if not IsCharacterHuman(character) then
MoveEntityToNode(character,"TeleportNode11")
end
end,
"TeleportRegion11"
)
ActivateRegion("TeleportRegion11")
end
function ScriptInit()
StealArtistHeap(800*1024)
-- Designers, these two lines *MUST* be first.
SetPS2ModelMemory(3500000)
ReadDataFile("ingame.lvl")
-- REP Attacking (attacker is always #1)
local REP = 1
local CIS = 2
-- These variables do not change
local ATT = 1
local DEF = 2
AmbushTeam = 5
ATM = AmbushTeam
SetMemoryPoolSize ("Combo",64) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",256) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",256) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",256) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",150) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",4086) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",64) -- should be ~1x #combo
SetMemoryPoolSize ("Music", 540)
Wrcatcoon = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
AllowAISpawn(ATT,false)
end
end
)
Weshohtb = OnObjectKill(
function(object, killer)
if GetEntityName(object) == "myg1_bldg_energy_collector_core" then
AllowAISpawn(DEF,false)
end
end
)
function MoveEntityToNode(entIn,pathIn,nodeIn)
if not entIn then
print("Warning!: Entity not specified for move")
return false
elseif not pathIn then
print("Warning!: Path not specified for Entity " .. entIn .. " move")
return false
end
local node
if nodeIn then
node = nodeIn
else
node = 0
end
local locDest = GetPathPoint(pathIn,node)
local charUnit = GetCharacterUnit(entIn)
if charUnit then
SetEntityMatrix(charUnit,locDest)
return true
end
return false
end
I know my lua is a little ... much but I need this game to work with online play that's what its designed for
please help, and thanks in advanced