TeamHypersomnia / Hypersomnia

Multiplayer top-down shooter made from scratch in C++. Play in your Browser! https://hypersomnia.io Made in 🇵🇱
https://hypersomnia.io/
GNU Affero General Public License v3.0
1.08k stars 47 forks source link

Is there a randomization of maps and modes on a dedicated server #275

Closed Timofei302 closed 8 months ago

Timofei302 commented 9 months ago

I'm going to run my dedicated server, and I'd like to have the modes and maps change independently at the end of the matches.

Lopix77 commented 9 months ago

not just yet, but it is in the pipeline

geneotech commented 8 months ago

Hey there, I have good news! I've implemented map cycling through the following vars in config.lua (see default_config.lua for reference):

    cycle = "REPEAT_CURRENT", -- | "LIST" | "ALL_ON_DISK"

    -- Just add "arena mode" or "arena" for the map-default mode.
    -- "mode" can be bomb_defusal, gun_game or quick_test.
    cycle_list = {
      "de_cyberaqua",
      "fy_minilab bomb_defusal",
      "de_silo"
    }, 

    -- Convenience var to override the game mode
    -- for all maps on the list or on the disk.
    cycle_always_game_mode = "",

    -- Applies when cycle is "LIST" or "ALL_ON_DISK".
    cycle_randomize_order = false,

You can also comfortably manage these from UI in RCON menu (under F8):

image Anything you set will be remembered across launches, the RCON settings are written out to config.lua whenever you apply them.

Hope you enjoy it! :smiley:

One more thing you'll like - I've now also implemented a --daily-autoupdate flag. From https://hypersomnia.xyz/servers:

"--daily-autoupdate" flag causes the server to update itself every 24 hours at 03:00 AM (your local time), if newer game version is available. This flag is highly recommended so you don't have to keep up with frequent game updates (the game is in active development). You can also set the flag in RCON settings (press F8 and go to Vars tab).

Thank you for hosting a community server :heart:

Timofei302 commented 8 months ago

Hey there, I have good news! I've implemented map cycling through the following vars in config.lua (see default_config.lua for reference):

    cycle = "REPEAT_CURRENT", -- | "LIST" | "ALL_ON_DISK"

    -- Just add "arena mode" or "arena" for the map-default mode.
    -- "mode" can be bomb_defusal, gun_game or quick_test.
    cycle_list = {
      "de_cyberaqua",
      "fy_minilab bomb_defusal",
      "de_silo"
    }, 

    -- Convenience var to override the game mode
    -- for all maps on the list or on the disk.
    cycle_always_game_mode = "",

    -- Applies when cycle is "LIST" or "ALL_ON_DISK".
    cycle_randomize_order = false,

You can also comfortably manage these from UI in RCON menu (under F8):

image Anything you set will be remembered across launches, the RCON settings are written out to config.lua whenever you apply them.

Hope you enjoy it! 😃

One more thing you'll like - I've now also implemented a --daily-autoupdate flag. From https://hypersomnia.xyz/servers:

"--daily-autoupdate" flag causes the server to update itself every 24 hours at 03:00 AM (your local time), if newer game version is available. This flag is highly recommended so you don't have to keep up with frequent game updates (the game is in active development). You can also set the flag in RCON settings (press F8 and go to Vars tab).

Thank you for hosting a community server ❤️

Cool! I will need to update the server configurations and Systemd service when I have free time))