Jump to content

nextmap hangs server


Fnatic

Recommended Posts

hello

 

I have a server running on Silent (213.108.30.111), and have this repeatable issue:

 

setup:

g_gametype 6

mapvotecycle.cfg contains a correctly working cycle and working maps

 

 

issue:

nextmap cmd + nextmap voting works fine, until we try them on this map: te_valhalla.pk3

(this map is not part of the mapvotecycle.cfg, I have several other maps voteable on server, outside of the cycle, the issue seems only to occur for this 1 map)

 

 

doing nextmap on that map makes the server hang (after little while it reboots, but meanwhile the players experience the issue)

 

Solution?

I tried the solution proposed in another post here (by twiti):

create a te_valhalla.script (defining a mapwinner), load that in /silent/mapscripts/

with these contents:

 

game_manager
{
    spawn
    {
        // Set scenario information

        //wm_mapdescription        "valhalla."

        // Set the respawn times

        wm_allied_respawntime        1
        wm_axis_respawntime        1

        wm_set_round_timelimit        5

        // set map winner 0 - axis, 1 - allies

        wm_setwinner 0


    }
}
 

note - fyi:

also as advised in the other post I found, I check the nextmap contens. It contains vstr d4 (or another dx, ie the next nr in cycle).

this was the case already before, and after I tried the mapscript mentioned above.

 

Any idea on rootcause and how this can be solved?

 

TX!

 

 

 

Link to comment
Share on other sites

  • Management

The shrubbot !nextmap command is supposed to end the map in a tie and start the intermission for map voting. This is different from how it originally worked, which is, it just executed the nextmap cvar. From the description it sounds like the map script could indeed be missing something, which triggers some form of infinite loop in the server. Both of these things can be defined as bugs of course, one in the map and one in the mod. If you have other frag only maps that work correctly, I would compare the scripts to see what is possibly missing. That is the faster way to get it working.

 

Just a thought I got while writing this post, have you checked that the g_gametype is still 6 when the valhalla map is running and has not changed.

Link to comment
Share on other sites

  • 2 weeks later...

i tried including extra instructions in silent/mapconfigs/te_valhalla.cfg

 

 

1) not solving the issue:

set wm_setwinner 0set nextmap vstr d501set d501 "set g_gametype 6 ; map oasis ; set nextmap vstr d1"

2) not solving the issue (even worse, nextmap doesn't contain the previous vstr anymore but map-restart):

set wm_setwinner 0set nextmap vstr d501set d501 "set g_gametype 6 ; map oasis"

3) not solving the issue:

set wm_setwinner 0set nextmap vstr d501set d501 "exec server.cfg"

each time the result is that server seems to block, and after a while restarts mapvotecycle

 

 

Any ideas?

 

Thx!

Link to comment
Share on other sites

I was able to reproduce it.  Seems I have the same issue but never noticed.  

 

I have 48 map files in etmain.

Joined

Menu-voted te_valhalla

Waited 10s after warmup

Menu-voted next map

disconnect symbol flashes and server appears crashed

Watchdog did bring server back online

 

md5sum:  2654d2be84fe5a7d1ce7142d72e81953  te_valhalla.pk3

 

logs:

Vote Passed: Load Next Map
xpsave: wrote server rating: 2.600000
serverstats: wrote 36 mapstats
Exit: Nextmap vote passed.
score: 0  ping: 0  client: 0 sageone.
red:0  blue:0
xpsave: wrote server rating: 2.600000
serverstats: wrote 36 mapstats
Sending gameCompleteStatus to etmaster.idsoftware.com
********************
ERROR: Couldn't find a spawn point
********************
----- Server Shutdown -----
Sending heartbeat to etmaster.idsoftware.com
=== ShutdownGame -------------------------------------------
*=====CLOSING DATABASE
  Buffers cleaned.
  Big Memory Cache cleaned.
*=====DATABASE IS CLOSED
ShutdownGame: done. Closing log.
------------------------------------------------------------
---------------------------
WARNING: watchdog will trigger in 4 seconds
Idle Server with no map - triggering watchdog

 

 

I believe this is a map script issue with respect to gametypes (voting etc) but my mapping skills are not that savvy.

game_manager
{
        spawn
        {
                // Set scenario information
                //wm_mapdescription             "valhalla."
                // Set the respawn times
                wm_allied_respawntime           1
                wm_axis_respawntime             1
                wm_set_round_timelimit          5
        }
}
Link to comment
Share on other sites

The fix is a new .script file.  Place this inside silent/mapscripts/te_valhalla.script and restart server.

Tested and works.

game_manager
{
        spawn
        {
                // valhalla was missing an allied ipi, which causes a
                // fatal spawnpoint not found if the allies actaually win
                create
                {
                        classname "info_player_intermission"
                        origin "304 400 496"
                        target "inter1"
                        scriptname "ipi1"
                        // allies
                        spawnflags 2
                }
                // Set scenario information
                //wm_mapdescription             "valhalla."
                // Set the respawn times
                wm_allied_respawntime           1
                wm_axis_respawntime             1
                wm_set_round_timelimit          5
        }
}
// created entities seem to need a scriipt, just to make etpro happy
//ipi1
//{
//}
Edited by sageone
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...