SpunkyBot / spunkybot

Multi-platform administration and RCON tool for Urban Terror
https://spunkybot.de
MIT License
20 stars 24 forks source link

Feature Request: #138

Closed ge0rdie closed 2 years ago

ge0rdie commented 2 years ago

Summary OK, so this request could be a bit of a stretch.

I would like to be able to configure the parameters for a map that is not in the current map cycle.

This could possibly be achieved by adding a "meta-data" section to each map config in the mapcycle.txt file that could be interpreted by Spunkybot with the rest being passed through to the game server as actual config items.

ie: Spunky bot reads the mapcycle.txt file, grabs the meta data section, decides if the map should be in the rotation, if it is, passes the rest of the config on to the server, if not, skips to the next map.

Motivation

There would be two benefits:

1) being able to configure the parameters for a map that is not in the current map cycle 2) It would allow a shortcut name for a map to enable an easier for admins to select it\

Additional context

Current format of mapcycle.txt entry:

ut4_turnpike_bots
{
 g_motd "Turnpike TDM"
 sv_joinmessage "Kill as many of the enemy team as you can"
 g_gametype 3
 g_instagib 0
 timelimit 15
 g_gear "ZKQ"
 bot_nochat 1
 g_friendlyFire 0
 g_gravity 800
 g_knockback 1000
}

Possible solution:

Implement a "meta-data" section for each map in the mapcycle.txt, that is interpreted by spunkybot but is not passed onto the game server:

ut4_turnpike_bots
{
 meta-data
  {
    include_in_rotation 0
    short_name "turnpike"
    bigtext_intro  "Capture the enemies flag as many times as you can"
  } 
 g_motd "Turnpike TDM"
 sv_joinmessage "Capture the enemies flag as many times as you can"
 g_gametype 3
 g_instagib 0
 timelimit 15
 g_gear "ZKQ"
 bot_nochat 1
 g_friendlyFire 1
 g_gravity 800
 g_knockback 1000
}

I could then use the command: "!setnext map turnpike" and SB would interpret the metadata (short name etc), but then load the defined config and we would be playing the turnpike map in CTF mode with friendly fire switched on.

Not sure if this is doable, but I can only ask :-)

--ge0rdie

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for several days with no activity.