Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Map Voter and Auto wipe 1.1.3

$45.00 $39.00

   (0 reviews)

5 Screenshots

  • 500
  • 5
  • 43.14 kB

About Map Voter and Auto wipe

This plugin makes the admin’s life easier by automatically generating maps, initiating a vote that lets users choose which map they would like to play in during the next wipe and auto wiping the server.

Requirements

Rust Server(s) setup in a standard way on a Windows or Linux dedicated server (you can use Map Voter plugin only if you don't have dedicated server or VPS but you won't be able to automatically wipe the server).

Administrator privileges on said dedicated server.

All of your server settings in \server\my_server_identity\cfg \server.cfg except rcon.port ,rcon.web rcon.password which will be added to batch script later.

Features:

Automatically restart and update the server every first Thursday of the month.

Automatically generate maps on wipe day using https://rustmaps.com/ & wipe-info-api and start the vote.

Allows players to vote on maps through an in-game UI or Discord (if you use any plugin that links a player and a Discord user, enable “only authenticated users can vote” in the config file to avoid duplicate votes).

Automatically checks if it’s wipe day using wipe-info-api and the plugin’s config.

Automatically update Oxide and the server and wipes it on forced wipe.

Configure the plugin through a GUI (not all settings are available on the GUI).

Select maps from rustmaps.com through a GUI via a RustMaps share code.

Video

 

Permissions:

MapVoter.use only allows an admin to generate maps and start a vote.

MapVoter.Manager allows an admin to use all the features.

Commands

/mvote : Opens the plugin’s main GUI.

/startvote After selecting which maps will appear on the vote, starts the vote.

MapVoter.generate <Number of maps to generate> <seed> <voting duration in minutes>.

voteresult : Shows which map had won the vote.

Mapvoter.reload reload the plugin.

MapVoter.mapwipe <delay in seconds> <Map size > will generate a map and change startup parameters in server.cfg.

MapVoter.mapwipe <delay in seconds> <Custom map url > will wipe the server with a given custom map url and change startup parameters in server.cfg

MapVoter.bpwipe <delay in seconds> <Map size > will generate map and delete *.db, *.db-journal and *.sav files and changes startup parameters in server.cfg

MapVoter.bpwipe <delay in seconds> <Custom map url > will delete *.db, *.db-journal and *.sav files and change startup parameters

MapVoter.cancelwipe : cancels ongoing wipe.

MapVoter.stopvoting : stops ongoing voting.

MapVoter.update <Delay in seconds> initiates restart and updates the server & oxide.

Mapvoter.CancelUpdate : Cancels restart and update.

Discord commands

!vote

!generate <Number of maps to generate> <seed> <voting duration in minutes>.

!mapwipe <delay in seconds> <Map size >

!bpwipe <delay in seconds> <Map size >

bpwipe <delay in seconds> <Custom map url >

!cancelwipe

!stopvoting

!update <Delay in seconds>

!cancelupdate

Configuration

{
  "Commands": {
    "Open MapVoter UI": "mvote",
    "Generate Mpas": "MapVoter.generate",
    "vote result": "voteresult"
  },
  "Options": {
    "Map size": 3500,
    "Disable UI": false,
    "RustMaps API key": "https://rustmaps.com/user/profile",
    "staging": false,
    "barren": false,
    "Stop voting after (minutes)": 60,
    "avatar url": "",
    "Discord footer": "",
    "filter Id": "Visit https://rustmaps.com/ and adjust your map requirements. In the red box above the settings hit the Share button,the string at the end of the URL is the filterId.Example URL: https://rustmaps.com/?share=gEU5W6BUuUG5FpPlyv2nhQ the string at the end in this case {gEU5W6BUuUG5FpPlyv2nhQ} is the filterId."
  },
  "Discord Settings": {
    "Discord Webhook": "https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
    "Discord Apikey": "BotToken",
    "Discord Command Prefix": "!",
    "Discord Channels": [
      {
        "Discord Channel ID": "",
        "Commands": [
          "generate",
          "vote",
          "mapwipe",
          "bpwipe",
          "cancelwipe",
          "stopvoting",
          "update",
          "cancelupdate"
        ]
      }
    ],
    "Discord Command Role Assignment (Empty = All roles can use command.)": {
      "generate": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "vote": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "mapwipe": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "bpwipe": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "cancelwipe": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "stopvoting": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "update": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ],
      "cancelupdate": [
        "DiscordRoleName",
        "DiscordRoleName2"
      ]
    }
  },
  "Auto Vote": {
    "Auto start vote": true,
    "Only Authenticated users can vote through discord": true,
    "Start voting at (HH:mm) 24-hour clock (UTC)": "17:00",
    "Number of maps to generate": 4
  },
  "Auto Wipe": {
    "Custom Map": {
      "Custom map": false,
      "Map URL": ""
    },
    "Map Wipe schedule": [
		7,
		14,
		21,
		28
	],
    "BP Wipe schedule": [
		0
	],
    "Enable Auto wipe": true,
    "Wipe BPs at forced wipe day": true,
    "Forced Wipe time (HH:mm) 24-hour clock (UTC)": "19:00",
    "Wipe time (HH:mm) 24-hour clock (UTC)": "19:00"
  }
}

 

Files

Batch & Powershell script which turns on/off your server, updates it and deletes your selected map/bp files.

AutoWipeconfig.txt

MapVoter.cs, which will handle wipe schedule and automatically generate maps, start voting and restart the server.

How to Install

Windows:

1-Download & load https://umod.org/plugins/wipe-info-api and edit WipeInfoApi configuration to fit with your wipe schedule.

2- Load MapVoter and edit MapVoter configuration.

3- Shutdown the server.

4- Copy AutoWipe.bat, TryParse.ps1 and AutoWipeconfig.txt to your server folder

5- download & install Unzip for Windows http://gnuwin32.sourceforge.net/packages/unzip.htm

6- open AutoWipe.bat   in NotePad++.

7- Find RustDedicated.exe -batchmode and change rcon.port ,rcon.web rcon.password if you use rcon.

8- Open AutoWipeconfig.txt in NotePad++.

9- Replace the example server config path with your own server.cfg location.

10- Replace the example SteamCmd path with your own SteamCmd.exe location.

11-Replace unzip path  with your own unzip.exe location if you install it to a different path.

11- Script will delete all maps *.sav* on map wipe and all   *.db  *.db-journal  on full wipe.

12-Run AutoWipe.bat.

Linux:

1-Download & load https://umod.org/plugins/wipe-info-api and edit WipeInfoApi configuration to fit with your wipe schedule.

2-Load MapVoter and edit MapVoter configuration.

3- Shutdown the server.

4- Copy AutoWipe.sh and AutoWipeconfig.txt to your server folder

5- download & install Unzip sudo apt-get install unzip

6- download & install jq JSON sudo apt-get install jq

7- open AutoWipe.sh   in NotePad++.

8- Find RustDedicated.exe -batchmode and change rcon.port ,rcon.web rcon.password if you use rcon.

9- Open AutoWipeconfig.txt in NotePad++.

10- Replace the example server config path with your own server.cfg location.

11- Replace the example SteamCmd path with your own SteamCmd.exe location.

12- Script will delete all maps *.sav* on map wipe and all   *.db  *.db-journal  on full wipe.

13- open terminal and do chmod +x AutoWipe.sh.

14- Run AutoWipe.sh ./AutoWipe.sh.

Perform a Dry-Run

Run the AutoWipe.bat to ensure that it is working as expected. if not please go through all of the steps again.

Whilst your server is online with no players, test some commands like Mapvote.bpwipe, check AutoWipeLogs.log as well as server.cfg, and make sure that server.seed and server.worldsize has changed and all your selected files have been deleted.

Contact
kaysharp#2008

 Share


kaysharp's Other Downloads


User Feedback

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

8,123 files sold to 714 customers and $118,390 of payments processed this year!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.