Page 1 of 1

<eof> expected

Posted: Tue Mar 27, 2007 9:38 am
by Abiter_b
C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\TTM\TTMc_1flag.lua:138: <eof> expected near `end'
ERROR[scriptmunge scripts\TTM\TTMc_1flag.lua]:Could not read input file.ERROR[scriptmunge scripts\TTM\TTMc_1flag.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings



dose any1 know what this error meens?

RE: <eof> expected

Posted: Tue Mar 27, 2007 10:59 am
by DarthD.U.C.K.
yes, open TTMc_1flag.lua, goto line 44 and look whats wrong, if you dont find a fault, goto assets/scripts open a _1flag script, browse to line 44 and the delete differents between the lines, so that line 44 of your lua is exactly like line 44 of the shipped lua.

RE: <eof> expected

Posted: Tue Mar 27, 2007 2:58 pm
by RC-1290
EOF means End of file... I had this a few weeks ago while mission scripting. Somehow he wanted me to add end, somewhere...

Posted: Wed Mar 28, 2007 2:55 am
by Abiter_b
this is my lua up to line 138

--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
Conquest = ScriptCB_DoFile("ObjectiveOneFlagCTF")
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()

SoundEvent_SetupTeams( REP, 'rep', CIS, 'cis' )

ctf = ObjectiveOneFlagCTF:New{teamATT = REP, teamDEF = CIS,
textATT = "game.modes.1flag", textDEF = "game.modes.1flag2",
captureLimit = 5, flag = "flag", flagIcon = "flag_icon",
flagIconScale = 3.0, homeRegion = "homeregion",
captureRegionATT = "team1_capture", captureRegionDEF = "team2_capture",
capRegionMarkerATT = "hud_objective_icon_circle", capRegionMarkerDEF = "hud_objective_icon_circle",
capRegionMarkerScaleATT = 3.0, capRegionMarkerScaleDEF = 3.0, multiplayerRules = true}

ctf:Start()

EnableSPHeroRules()

DisableSmallMapMiniMap()

--Gate Stuff --
BlockPlanningGraphArcs("seawall1")
BlockPlanningGraphArcs("woodl")
BlockPlanningGraphArcs("woodc")
BlockPlanningGraphArcs("woodr")
DisableBarriers("disableme");

SetProperty("woodl", "MaxHealth", 15000)
SetProperty("woodl", "CurHealth", 15000)
SetProperty("woodr", "MaxHealth", 15000)
SetProperty("woodr", "CurHealth", 15000)
SetProperty("woodc", "MaxHealth", 15000)
SetProperty("woodc", "CurHealth", 15000)
SetProperty("sys", "MaxHealth", 1000)
SetProperty("sys", "CurHealth", 1000)


OnObjectKillName(PlayAnimDown, "sys");
OnObjectRespawnName(PlayAnimUp, "sys");
OnObjectKillName(woodl, "woodl");
OnObjectKillName(woodc, "woodc");
OnObjectKillName(woodr, "woodr");
OnObjectRespawnName(woodlr, "woodl");
OnObjectRespawnName(woodcr, "woodc");
OnObjectRespawnName(woodrr, "woodr");
end

function PlayAnimDown()
PauseAnimation("thegateup");
RewindAnimation("thegatedown");
PlayAnimation("thegatedown");
SetProperty("sys", "MaxHealth", 2200)
-- SetProperty("sys", "CurHealth", 50000)
-- PlayAnimation("gatepanel");
--SetProperty("sys", "MaxHealth", 1e+37)
--SetProperty("sys", "CurHealth", 1e+37)


-- Allowing AI to run under gate
UnblockPlanningGraphArcs("seawall1");
DisableBarriers("seawalldoor1");
DisableBarriers("vehicleblocker");

end

function PlayAnimUp()
PauseAnimation("thegatedown");
RewindAnimation("thegateup");
PlayAnimation("thegateup");


-- Allowing AI to run under gate
BlockPlanningGraphArcs("seawall1");
EnableBarriers("seawalldoor1");
EnableBarriers("vehicleblocker");
SetProperty("sys", "MaxHealth", 1000)
SetProperty("sys", "CurHealth", 1000)

end

function woodl()
UnblockPlanningGraphArcs("woodl");
DisableBarriers("woodl");
SetProperty("woodl", "MaxHealth", 1800)
-- SetProperty("woodl", "CurHealth", 15)
end

function woodc()
UnblockPlanningGraphArcs("woodc");
DisableBarriers("woodc");
SetProperty("woodc", "MaxHealth", 1800)
-- SetProperty("woodc", "CurHealth", 15)
end

function woodr()
UnblockPlanningGraphArcs("woodr");
DisableBarriers("woodr");
SetProperty("woodr", "MaxHealth", 1800)
-- SetProperty("woodr", "CurHealth", 15)
end

function woodlr()
BlockPlanningGraphArcs("woodl")
EnableBarriers("woodl")
SetProperty("woodl", "MaxHealth", 15000)
SetProperty("woodl", "CurHealth", 15000)
end

function woodcr()
BlockPlanningGraphArcs("woodc")
EnableBarriers("woodc")
SetProperty("woodc", "MaxHealth", 15000)
SetProperty("woodc", "CurHealth", 15000)
end

function woodrr()
BlockPlanningGraphArcs("woodr")
EnableBarriers("woodr")
SetProperty("woodr", "MaxHealth", 15000)
SetProperty("woodr", "CurHealth", 15000)
end

end

i cant see anything rong and cause im tryin to put the anim stuff in its not same as any other luas(kas dosnt have 1flag)

also

ActivateBonus(team, "MEDICAL_SUPPLIES")


at team do i put CIS, DEF or 2?