1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

UT2Vote: Game and Map Recovery

Discussion in 'General Discussion' started by Gioggiolo, Aug 14, 2008.

  1. Gioggiolo

    Gioggiolo New Member

    Joined:
    Jun 21, 2008
    Messages:
    11
    Likes Received:
    0
    hello again :)
    my linux server sometimes crashes, i think because of utcomp... but i need it :(
    So, please I would like to know if it's possible to recover the last state of the server before the crash(i mean the game and the map were running before the crash). I found nothing about and atm, after the crash, UT2Vote starts the server with the DefaultGameName and the DefaultMap of that DefaultGameName.

    Pls, is that possible?
     
  2. tdw-socke

    tdw-socke New Member

    Joined:
    Nov 21, 2003
    Messages:
    990
    Likes Received:
    0
    as far as i know, it will always start with the defaults.
     
  3. Gioggiolo

    Gioggiolo New Member

    Joined:
    Jun 21, 2008
    Messages:
    11
    Likes Received:
    0
    i thought to make a linux script that replaces the DefaultGameName(and the map) with the last one used before the crash(by looking in the server log)... but so the DefaultGameName could become that i dont want :( because i have the autoswitch to DefaultGameName when the server is empty :(
     
    Last edited: Aug 15, 2008
  4. ProAsm

    ProAsm Active Member

    Joined:
    Mar 20, 2002
    Messages:
    2,106
    Likes Received:
    0
    Its just the way UT works, it only reads its ini files and scripts at server startup then caches them in memory.
    Saving only takes place you you exit the server in the normal manner.
    Therefore it will always start with the default map and game regardless.
     
  5. tdw-socke

    tdw-socke New Member

    Joined:
    Nov 21, 2003
    Messages:
    990
    Likes Received:
    0
    hmm, but making a linux-script in that way could work. You need to add some if/then/else requests, to check if the last gametype/map is on your blacklist ;)

    don't ask me how to do that, but shell-scripts can do a lot of things, as long as the ut-server is not started :)
     
  6. Gioggiolo

    Gioggiolo New Member

    Joined:
    Jun 21, 2008
    Messages:
    11
    Likes Received:
    0
    thank you
    yesterday i made the script. It catches from the server.log the last commandline excuted by the server and so it restarts the server from the last status(map and settings). :)

    Now I'm trying the Tickrate mutate, but can i use it through "Voting GameConfig"?
    I added it in the Mutators list of the GameProfile and then i added ?Tickrate=50 in the Options field, but the tickrate remains 35 :(
    This is my options line:
    PlayersBalanceTeams=False?BalanceTeams=False?AllowBehindView=True?AllowWeaponThrowing=True?MaxIdleTime=120?MaxPlayers=12?MaxSpectators=4?TimeLimit=999?AllowTaunts=True?Tickrate=50
     
  7. tdw-socke

    tdw-socke New Member

    Joined:
    Nov 21, 2003
    Messages:
    990
    Likes Received:
    0
    afaik it must be in the commands-section
     
  8. Gioggiolo

    Gioggiolo New Member

    Joined:
    Jun 21, 2008
    Messages:
    11
    Likes Received:
    0
    i don't know what,when and how happened, but it worked. Yesterday i tried the command "inject userflag 1" and the tickrate was 50.
    This is a mystery :D I will make some tests to understand what happened :)
     

Share This Page