Garry's Mod

Garry's Mod

Honest MapVote (fretta-style mapvote extension)
20 Comments
glarmer ⛟ 28 Mar @ 4:37am 
Would it be possible to add a rating system for maps like in Perfect Map Vote (https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2428251124)

(Basically at the end of a round players can rate the map, and this rating appears during voting in the future)
Pee Warmer 3 Jan @ 9:16am 
Nevermind, it still doesn't account the current map played.
Pee Warmer 3 Jan @ 9:06am 
Looks like your addon really doesn't support the clusterfuck that is Murder's map name formatting - mapname.%bsp$

After changing it to just the mapname it works flawlessly.
Pee Warmer 3 Jan @ 8:24am 
Original Fretta-like MapVote works just fine though.
Pee Warmer 3 Jan @ 8:23am 
uh, looks like Murder really doesn't like this addon - passing prefixes via
MapVote.Start(nil, nil, nil, prefix)
which prefix is a pointer containing all the map names - yields aboslutely nothing in the map pool.
Elfbarf 3 Jun, 2024 @ 1:52pm 
Would it be possible to add map minimum/maximum playercounts similar to EX3MP's plugin?
https://github.com/EX3MP/gmod-mapvote
wget  [author] 26 Apr, 2024 @ 5:17pm 
@Clifford yes
Clifford 24 Apr, 2024 @ 4:18am 
I ended up using AllowedMaps. Thanks for adding it.
Reziem 6 Apr, 2024 @ 9:54pm 
Is it possible for me to edit / move the entire map vote UI down a bit from the top of the screen?
wget  [author] 4 Apr, 2024 @ 7:26pm 
@Clifford oh since you mention you only need specific maps like cs_office, i added AllowedMaps which will bypass the prefix whitelist
wget  [author] 4 Apr, 2024 @ 6:50pm 
@Clifford added as config option: DisabledMaps
Clifford 4 Apr, 2024 @ 1:47pm 
Is it possible to blacklist maps? E.G I add the de_ & cs_ prefix to the config but don't want all the default css maps being on the map vote. Only ones I feel suit the player size aka cs_office or player made css maps such as the below:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=557585977
Clifford 1 Apr, 2024 @ 9:37pm 
Didn't even think about that lmao. It's now working, thanks!
wget  [author] 1 Apr, 2024 @ 9:15pm 
@Clifford the player.Iterator function is relatively new, make sure the server is up to date
Clifford 1 Apr, 2024 @ 7:56pm 
I haven't been able to replicate the issue on a fresh dedicated server, even introducing the same collection that is used on the problematic dedicated server.

I'll go with setting up a fresh server to replace current to see if there is changes I made along the way that contributed and see how I go with errors.
Maybe the error message is useful on its own to you.
Clifford 1 Apr, 2024 @ 6:23pm 
Thanks @wget.

Just with testing on a dedicated server I'm getting the following error:
Clifford: !mapvote
lua/mapvote/sv_honest.lua:373: attempt to call field 'Iterator' (a nil value)

The timer runs out and nothing will happen.

No issues when doing local hosting via Main Menu > Start New Game > X Players > Peer to Peer.

Have yet to try a fresh dedicated server to make sure no conflicts/minimal addons.
wget  [author] 1 Apr, 2024 @ 9:16am 
@Clifford option has been added, set RandomMapOption to true in config.txt
Clifford 29 Mar, 2024 @ 1:58pm 
Yep that works. Sweet!
wget  [author] 29 Mar, 2024 @ 6:10am 
@Clifford i can add a "Random Map" option that just randomly picks one of the rest of the options if it wins
Clifford 28 Mar, 2024 @ 9:22pm 
Any chance of one of the vote options being "Random map" that can also potentially reference "MapsBeforeRevote" value if desired?