(Formerly VotingTrackPlugin)
Plugin to let players vote for a server track at a specified interval.
Most commands have multiple alias
/currenttrack/presetshow/currentpreset
Server will ask users to vote for new map as per configured timeframe.
/votetrack <number>/vt <number>/votepreset <number>/vp <number>/presetvote <number>/pv <number>
/presetlist/presetget/presets
Exact usage is shown by track list
/presetset/presetchange/presetuse/presetupdate
/presetstartvote/presetvotestart
/presetrandom
Requires AS-Restarter.exe from nvrlift.AssettoServer.HostExtension
Enable the plugin in extra_cfg.yml
EnablePlugins:
- CyclePresetPluginExample configuration (add to bottom of extra_cfg.yml)
---
!CyclePresetConfiguration
# Reconnect clients instead of kicking when restart is initiated.
# Please disable reconnect with varying entry lists in the presets
ReconnectEnabled: true
# Type of restart client used
Restart: File # Creates a file, which is used by AS-Restarter to change preset
# yet to implement -> Docker
# Enable Voting
VoteEnabled: true
# Number of choices players can choose from at each voting interval
VoteChoices: 3
# Will track change randomly if no vote has been counted
ChangeTrackWithoutVotes: true
# Whether the current preset/track should be part of the next vote.
IncludeStayOnTrackVote: true
# How long the vote stays open
# Minimum 30, Default 300
VotingDurationSeconds: 300
# How often a cycle/vote takes place
# Minimum 5, Default 90
CycleIntervalMinutes: 90
# How long it takes to change the preset/track after warning about it
# Minimum 1, Default 5
TransitionDurationMinutes: 10Create a folder presets in the directory of AssettoServer.exe.
Create copies of the cfg folder within the presets folder.
Rename the copies of the cfg folder to something that represents the preset you are creating.
Something like Shutoko_low_bhp or LA_Canyon_hypercars... You get the Idea.
Within each of those folders you now have to change the server_cfg.ini to feature the correct TRACK and TRACK_LAYOUT.
You can also just use the cfg folder of newly created presets from ContentManager.
Add the following file to each presets folder and change the values accordingly: preset_cfg.yml
Add this file into cfg as well.
# The name of the Track; You will see this when voting
Name: Shutoko Cut Up
# Settings for Plugin features.
# Set Enabled to false, to exclude the Preset from Plugin Track lists
RandomTrack:
Weight: 1.0
Enabled: false
VotingTrack:
Enabled: true