Garry's Mod

Garry's Mod

26 ratings
Partly Adequate Mapvote
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun
File Size
Posted
Updated
25.553 KB
3 Jan, 2022 @ 4:47am
5 Feb, 2023 @ 12:08pm
9 Change Notes ( view )

Subscribe to download
Partly Adequate Mapvote

Description
Disclaimer
PAM doesn't come with any gui. Make sure to also subscribe to an addon that provides ui. (e.g.: Dark Votescreen or Mapvote-Like Map Voting)

Description
This Garry's Mod addon adds a comfortable way to democratically vote on maps. An older version is still available here.
This addon already works for terrortown. The PAM Compatibility Pack provides support for some more gamemodes. There is an easy to use api[github.com] to make this work for even more gamemodes as well.

The code is available here [github.com].
In case you encounter any problems, feel free to open a new issue here [github.com].

For more information please visit the wiki [github.com].

Easy to configure
PAM is configured via Pacoman.
Proper instructions and a list with examples can be found here[github.com].

Different Vote Types
  • Lottery Voting (All votes are equally important)
  • Plurality Voting (The option with the highest number of votes wins)

Extensions
Extensions are addons which can extend PAM's functionality.
E.g.:

Powerful Map filtering
It's possible to specify prefixes which maps must have at least one of. There is a whitelist and a blacklist to allow/remove specific maps.

Playcounts
PAM saves how often each map was played on a server.

Commands
  • The command "pam_toggle_menu" toggles visibility of the votescreen.

QOL
  • Adds ULX commands for starting/canceling a vote.
  • Supports the TTT2 bind system for all its console commands.

Shoutouts
54 Comments
plzendmylife 7 Mar @ 1:56pm 
Thanks for the quick reply. I'll look into it!
Reispfannenfresser  [author] 7 Mar @ 11:54am 
The skip_option is only intended to be used in combination with PAM's own round counter.
If you want to use the skip option, you should disable any limits your gamemode provide.

You can use rtv to restart the game loop when you're stuck.
plzendmylife 7 Mar @ 11:39am 
Hello, the "keep_playing" option breaks the gameloop. Instead of starting a new round on the same map, you get stuck with 00:00 on the timer. Dead people stay dead and no new round is started.
Tab shows "Map changes in 1 round or in 01:12:10" with the time still running down
⦓⡷⠂NEONSY⠐⢾⦔ 7 Mar @ 5:29am 
Yeah, I had both disabled due to an error in understanding. Thanks for the clarification.
Reispfannenfresser  [author] 6 Mar @ 11:32pm 
The symptoms you are describing lead me to believe it didn't know how to count the votes properly. If it doesn't know how to count the votes, it selects a random map from the available options.

Is it possible that you disabled both lottery_voting and plurality_voting? (These are the two server sided extensions that allow counting the votes)
If you want PAM to work you'll need to have one of these enabled and the other disabled.

Please let me know if this fixes it for you.
I intend to make configuration a bit more user friendly in a future update.
⦓⡷⠂NEONSY⠐⢾⦔ 6 Mar @ 12:53pm 
I had pacoman and ui, and while I don't mind using the map prefix setting, for some reason it chose a random map, regardless of the votes, including maps no one has voted.
Reispfannenfresser  [author] 6 Mar @ 8:53am 
This addon works with TTT2.

You will have to configure it to only allow ttt maps.
For that you will need pacoman and probably pacoman ui.

If you just want an addon that works out of the box, I can recommend the legacy version .
⦓⡷⠂NEONSY⠐⢾⦔ 3 Feb @ 3:40pm 
When using TTT2, it does not automatically filter the maps. Is that because TTT2 isn't supported along side TTT, or do I need to filter maps, regardless of the mode?
Reispfannenfresser  [author] 28 Mar, 2023 @ 12:59pm 
@Lamentis ッ
Can you open an issue for this on the github and provide screenshots of the values of the settings.
Please also mention any errors in the console there and also mention which collection you are using.

I don't have the time to fix it at the moment, but this way I won't lose track.
Reispfannenfresser  [author] 28 Mar, 2023 @ 12:55pm 
@dofaminovy
I have no idea what libk is.
None of the scripts in the error you are getting are pam scripts.

Can you open an issue for this on the github repository and provide all the requested information there?

This way I won't lose track and will know how to try fixing it when I have the time again.