Everytime wm_endround is called or the time’s out the server crashes! I don’t know why, I can play the map properly, but when the allies win, there is an error and the server crashes. There is no error message, it just crashes.
Have I forgotten anything???
-----------Files---------
bunkerfight.pk3/maps/bunkerfight.bsp
bunkerfight.pk3/maps/bunkerfight.script
bunkerfight.pk3/maps/bunkerfight.objdata
bunkerfight.pk3/scripts/bunkerfight.arena
bunkerfight.pk3/levelshots/…
--------mapdata--------
Brushes:379
Entities:138
2 spawnpoints/team
info_player_intermission available
5 objective_info’s
…
--------script (part)------
not the whole one because it’s about 6,5 kb (380 lines)
game_manager
{
spawn
{//mapdata wm_axis_respawntime 15 wm_allied_respawntime 15 wm_number_of_objectives 6 wm_set_round_timelimit 25 // objectives wm_set_main_objective 3 0 wm_set_main_objective 3 1 wm_objective_status 1 0 0 wm_objective_status 2 0 0 wm_objective_status 3 0 0 wm_objective_status 1 1 1 wm_objective_status 2 1 0 wm_objective_status 3 1 0 wm_set_defending_team 0 wm_setwinner 0 wait 500 }}
PC
{
spawn
{
wait 300
constructible_class 3
}
trigger setup
{
setstate PC invisible
setstate PCbuilder default
}buildstart final
{
setstate PC underconstruction
setstate PCbuilder default
}built final
{
setstate PC default
setstate PCbuilder invisiblewm_announce "The security computer has been built!!! Destroy it!!!" accum 0 set 0}
decayed final
{
trigger self setup
}death { accum 0 set 1 //pc is currently destroyes... trigger self setup wm_announce "Alarm! Security computer destroyed! Repair it!" wm_announce "System overheating! Time remaining: 1 minute" wait 1000 wm_announce "Repair the security computer!" wait 30000 accum 0 abort_if_equal 0 //is the pc repaired? wm_announce "Systems overheating! Time remaining: 30 seconds" wait 20000 accum 0 abort_if_equal 0 //is the pc repaired? wm_announce "System overheating! Time remaining: 10 seconds" wait 10000 accum 0 abort_if_equal 0 wm_announce "System overheated!" wait 2000 accum 0 abort_if_equal 0 alertentity blowup // just some graphical effects ;) wm_setwinner 1 wm_announce "System destroyed!" wait 3000 wm_announce "Allied won!" //that's shown in game wait 500 wm_endround //here the server crashes }}
It works properly, allies can destroy the computer
axis can build it again, if not, allies win(–>crash)
pk3 file makes no errors, all clients load down properly, clients see it so:
->Message"Systems destroyed!"
->Message “Allied won”
->“Connection interrupted”
why could this happen???
