Menu

#12 server crash on bad map

0.27
open-accepted
deurk
None
7
2007-08-14
2006-11-08
Anonymous
No

mvdsv 0.20-0.25 tested
ktpro 1.67
WinXP, FreeBSD

If I try to switch server to "bad" map (i.e. that is
damaged or incomplete) server crashes.

Here ( http://yurik.on.ufanet.ru/qwcrash.rar ) is a
generic ktpro config and map xxx.bsp (I simply renamed non-
map file to bsp).

Whould be great to remove the crash.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Ummm... This topic should go to Bugs

     
  • disconnect

    disconnect - 2006-11-10

    Logged In: YES
    user_id=1116902

    Okay i got 4on4 on your URL reupload this file to rapidshara.ru, slil.ru, etc

     
  • Nobody/Anonymous

    Logged In: NO

    The new URL is http://yurik.on.ufanet.ru/qwcrash.zip Sorry for inconvenience.

     
  • disconnect

    disconnect - 2007-03-17

    Logged In: YES
    user_id=1116902
    Originator: NO

    seems to be fixed in CVS. need testing...

     
  • disconnect

    disconnect - 2007-03-17
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • disconnect

    disconnect - 2007-04-09

    Logged In: YES
    user_id=1116902
    Originator: NO

    This 'bug' is present in last release (0.26), so it's open again.
    We have to decide what should we do if the map is broken. SV_Error is most simple and user unfriendly solution.

     
  • disconnect

    disconnect - 2007-04-09
    • status: closed --> open
     
  • deurk

    deurk - 2007-07-20

    Logged In: YES
    user_id=1524845
    Originator: NO

    Anyone has a definitive idea on the subject?

     
  • deurk

    deurk - 2007-08-07

    Logged In: YES
    user_id=1524845
    Originator: NO

    2 solutions:

    1)
    If server crashes at first map, then load start.bsp, if that crashes too, then stop server.
    If server crashes at other map than first, then load previous loaded map, if that crashes too, then stop server.

    2)
    If a map craches, load first map in maps directory, if that crashes, try second one, and so on. If all are done, then stop server.

    What do you think?

     
  • deurk

    deurk - 2007-08-07
    • milestone: --> 0.27
    • priority: 5 --> 7
     
  • deurk

    deurk - 2007-08-10
    • assigned_to: nobody --> d3urk
     
  • catastrophe

    catastrophe - 2007-08-10

    Logged In: YES
    user_id=1864525
    Originator: NO

    D3urk wrote: "If server crashes at other map than first, then load previous loaded map,
    if that crashes too, then stop server."

    I say if the server crashes at a map other than the first map, then load the next map. If that map also fails, continue loading maps to the end of the rotation. If all maps in the rotation fail, then stop the server. This will keep FFA rotations going and stop the server bouncing between a bad map and the last good map.

    What thinketh you all?

     
  • disconnect

    disconnect - 2007-08-10

    Logged In: YES
    user_id=1116902
    Originator: NO

    Server do not know which map is next. "Next map" is a mod-side thingie, not a server-side. The most just sendds to the server commands like "map dm4", "map dm6", "map blah".

    Anyway the mod can be hacked to jump over bad map.
    If we have cycle dm4-->dm6-->badmap-->dm2, then on changing map "dm6-->badmap" mod should detect cycle breakage and after timelmit switch to dm2. It will cause to play dm6 two times, but it's better to play it infinity times =:-)

     
  • deurk

    deurk - 2007-08-14
    • status: open --> open-accepted
     
  • deurk

    deurk - 2007-08-14

    Logged In: YES
    user_id=1524845
    Originator: NO

    Ok, here is what I'll try to implement:

    load map
    if map is broken then
    brokenmap = true
    if lastvalidmap exists then
    load lastvalidmap
    else
    stop with error
    else
    lastvalidmap = loadedmap

    Of course, a GPLed version of start.bsp that we can include in MVDSV pack would be nice and would help prevent first map from being bad (server ALWAYS load start.bsp when starting, even before default map).

     

Log in to post a comment.