• Search
  • Register
  • Log in
  • Ace of Spades Game Forums » Gameplay
  • Note: This forum is merely an archive. It is no longer possible to login or register. - StackOverflow
    New Ace of Spades Forums: http://buildandshoot.com/
  • Server Launcher (Now with Map Rotation!)
  •  

    I thought this might be helpful to someone so I uploaded it. This is a rather simple tool that will help you to Launch a default server from a configuration file.

    Be Sure to Read the ReadMe for more Information. Or at least be sure to edit server.ini with your own information.

    Download
    ---
    http://umh.sandcrawler.net/index.php?page=downloads&command=view&id=232

    Open Source Information
    ---
    This software is provided 'as-is', without any express or implied
    warranty. In no event will the authors be held liable for any damages
    arising from the use of this software.

    Permission is granted to anyone to use this software for any purpose,
    including commercial applications, and to alter it and redistribute it
    freely, subject to the following restrictions:

    1. The origin of this software must not be misrepresented; you must not
    claim that you wrote the original software. If you use this software
    in a product, an acknowledgment in the product documentation would be
    appreciated but is not required.
    2. Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original software.
    3. This notice may not be removed or altered from any source distribution.

    The source is included inside the Source folder. You will need AutoIt3 to edit/view the source.

    Release Log
    ---

    Release 2 (8-18-2011)
    ---
    - Discarded the split versions, Now there is just ServerLauncher
    - New Feature, Map rotation. You must have at least 2 maps you want to rotate.
    - Changes to the ini file to accommodate multiple maps.

    Release 1 (8-17-2011)
    ---
    Initial release, a basic Server Launcher with configuration file, and Server Restarting feature.

    #80774
    Sandcrawler
    Member
    Posted 13 years ago
     

    In theory this could work with pyspades! It is an executable like the default server.

    Thanks for doing this for us. We really need a way to cycle maps.

    In yout thread title you might want to add : How to set up map cycling. or Server launcher +map cycle feature.

    i am sure the Admins would live to add this :)

    With your exe files you can have the windows scheduler automate a server :)

    I was going to do something with batch files like this.:

    #REM stop running server.
    taskkill /IM client.exe

    #REM delete old config.
    DEL config.txt

    #REM get new config file from pool.
    copy /configs/config.txt

    #REM launch server.

    C:\path\to\AOS\server.exe

    Then i would have seperate config files in a pool folder that load the various maps and settings for that map.
    To automate it I would use Cron in Linux or Schedule manager in windows to daisy chain the scripts together, and execute them whenever i wanted a map cycle or a game mode change.

    Pyspades provides us with a bunch of CLI commands, so we might be able to load the seperate map files without swapping the custom config files. like this:
    Server.exe -mapname -switch1 -switch 2

    that would be the easiest route, but i dont know if Pyspades does that or not.

    #81250
    JoJoeStinky
    Stinkious Maximus
    Posted 13 years ago
     

    That is a good idea to have a cycle maps feature. I built it into the program now.

    Just visit the link above and it has the newest version.

    In the new configuration file you set several maps (could set as many as you want) and it will rotate through them. When it restarts it will go back to the first one and thus start over.

    Before this new version it would only run the one map, and the only way you could rotate maps would be using the batch files and a cronjob. Now you just set the maps in sever.ini, and set the restart time in hours.

    If there is interest in it I can tweak this to work with PySpades (I haven't really used PySpades, so I don't know what all would need to change for it.)

    #81377
    Sandcrawler
    Member
    Posted 13 years ago
     

    How very very cool!! thank you very much :)

    pyspades loads the map from whatever is specified in the config.txt file.

    If you could somehow use GREP, or use your program to edit the text file, and change teh mapname.vtx, it should work out.

    Pyspades uses a feature called rollback that you can set up to refresh the map. It takes a long time sometimes, and lags the players.

    It would definitely be faster to just restart the server.

    What would be cool is if you could somehow echo to the players that the server is changing maps, and to log back in 1 minute.

    Thanks for doing this :)

    i am going to give it a test run tonight.

    #81591
    JoJoeStinky
    Stinkious Maximus
    Posted 13 years ago
    RSS feed for this topic  

    Reply

    You must log in to post.

  • Tags
  •  

  •  
    Ace of Spades Game Forums is proudly powered by bbPress.   //   Theme by Mike Lothar  
    [ Time : 0.033s | 13 Queries ]