Odd problem loading.


(IGoreI) #1

I get this wierd error when trying to load my map " script_parse…line 166 unknown event codes" I have looked over my script and don’t see anything wrong.I went back and rebuilt the whole entity from scratch. changed the name and all , and I still get the error, it worked before, then all I did was add a spawn point and added setautospawn “barracks” to the script at the death of the rocket, and a wm_announce to the death of the docs. Here’s my script, like I said it worked until I added the spawn and a couple of lines to the script.Please someone help, this is very frustrating.there’s more to the script, a neutral command post, but I didn’t see a point in posting all that.

game_manager
{
spawn
{
accum 0 set 0 //fort spawn
accum 1 set 0 // State of objectives number one and two

	globalaccum 1 set 0
	globalaccum 3 set 0

	// Game rules
	wm_axis_respawntime	30
	wm_allied_respawntime	20
	wm_number_of_objectives 4
	wm_set_round_timelimit	30


	// Stopwatch mode defending team (0=Axis, 1=Allies)
	wm_set_defending_team	0

	// If the round timer expires, the Axis have won, so set the current winning team
	// Set the round winner:  0 == AXIS, 1 == ALLIED
	wm_setwinner 0

	// Set autospawn markers <team (0 = axis, 1 = allies)> <message key of marker>
	wait 150
	setautospawn	"Fort"	1
	setautospawn	"Fort"	0
}

trigger objective_counter

{
	accum 1 inc 1				// Increase game counter
	accum 1 abort_if_not_equal 3

	// Call function to check if the round has been won

	trigger game_manager checkgame

}

trigger checkgame

{
	accum 1 abort_if_not_equal 3

	// Set the round winner:  0 == AXIS, 1 == ALLIED
	wm_setwinner 1

	// End the round
	wm_endround

	wait 500

}

}

fort_spawn
{
spawn
{
accum 0 set 0 // Who has the flag: 0-Axis, 1-Allied
}

trigger axis_capture	// Flag has been touched by an Axis player
{
	accum 0 abort_if_equal 0 // do Axis own flag?

	accum 0 set 0 // Axis own the pole
	wm_announce "Axis reclaim the Fort"

	alertentity fort_wobj
	setautospawn "Fort" 0
	setautospawn "Lake" 1	

}

trigger allied_capture	// Flag has been touched by an allied player
{
	accum 0 abort_if_equal 1 // do Allies own flag?

	accum 0 set 1 // Allied own the flag
	wm_announce "Allies capture the Fort"

	alertentity fort_wobj
	alertentity Caves_wobj
	setautospawn "Caves" 0
	setautospawn "Fort" 1
}


trigger check_obj
{
	accum 0 abort_if_equal 1 // Do Allied own the flag?
}
}

// ================================================
// ========== CONSTRUCTIBLE STUFF =================
// ================================================
ladder
{
spawn
{
wait 200
constructible_class 2
constructible_constructxpbonus 10
constructible_destructxpbonus 10
}
death
{
wm_announce “Axis destroyed the ladder”
}
}

// ================================================
// ========== DESTRUCTIBLE STUFF ==================
// ================================================

// Radio Tower
radio
{
spawn
{
wait 200
constructible_class 3
constructible_constructxpbonus 10
constructible_destructxpbonus 10
}

death
{
	wm_announce "Allies have destroyed the Radio Tower!"

	// Update game manager counter for objectives
	trigger game_manager objective_counter
}

}

// Rocket
v2
{
spawn
{
wait 200

	constructible_class 3
}
death
{
	wm_announce "Allied team has destroyed the Rocket!"
	trigger game_manager objective_counter
	setautospawn "Barracks" 0
}

}

// ================================================
// ======== END DESTRUCTIBLE STUFF ================
// ================================================
// ================================================
// ======== Documents Objective ===================
// ================================================

codes
{
spawn
{
}
death
{
trigger game_manager objective_counter
wm_announce “Allies have captured the codes!”
}
}


(IGoreI) #2

Dam, i’m a noob,lol. All I had to do was add wait 200 after spawn for the docs. Well the soloution is here for anyone else to see.The error really threw me for a loop.