Garry's Mod

Garry's Mod

MapVote - Prop Hunt edition!
21 Comments
concrete shoes 13 Apr, 2024 @ 8:29pm 
I get this error:

[MapVote - Prop Hunt edition!] lua/mapvote/cl_mapvote.lua:47: attempt to call method 'SetMaps' (a nil value)
1. func - lua/mapvote/cl_mapvote.lua:47
2. unknown - lua/includes/extensions/net.lua:38
Brumble  [author] 12 May, 2023 @ 12:36pm 
I hope everyone is enjoying this plugin.

I intend to update soon for all current versions.
麻辣香锅 1 Nov, 2020 @ 3:55am 
ok thanks:)
Brumble  [author] 1 Nov, 2020 @ 3:28am 
You'll have to change the config file and re-edit all the code in the lua files to work with the game mode :) but yes, it's possible.
麻辣香锅 31 Oct, 2020 @ 9:15pm 
Can MapVote be used in Homicide:)
Brumble  [author] 9 Sep, 2020 @ 7:01am 
Add me on steam, it'll be easier if you just send me the files so i can go through them for you :)
Bill 8 Sep, 2020 @ 11:56am 
When i type !mapvote into the console it says that i've initiated a map vote and the screen comes up like it's gonna let me, but it says the countdown is zero and no maps show up. The weirdest thing is that after maybe thirty seconds it does switch to another prop hunt map. it just doesn't give me the option to choose which map. Also my config.txt looks like how you recommended to set it up in the description, although i can double check to make sure i didn't mess anything up.
Brumble  [author] 7 Sep, 2020 @ 11:23pm 
Okay.

It's not actually the SetMaps thats causing the issue as that's literally just a function that's asking the addon to display a list of the maps.

"
MapVote.Panel = vgui.Create("VoteScreen")
MapVote.Panel:SetMaps(MapVote.CurrentMaps)
end)
"

Does the mapvote screen come up when you end round or activate it?
Did you change any of the lua files?
What does your config.txt look like?

Bill 7 Sep, 2020 @ 6:55pm 
Sure thing:

[MapVote - Prop Hunt edition!] lua/mapvote/cl_mapvote.lua:47: attempt to call method 'SetMaps' (a nil value)
1. func - lua/mapvote/cl_mapvote.lua:47
2. unknown - lua/includes/extensions/net.lua:32

Brumble  [author] 7 Sep, 2020 @ 6:27am 
Could you paste the entire error here please?
Bill 6 Sep, 2020 @ 10:07am 
So i went into config and switched all that stuff, and it still doesn't work. Upon consulting the error that it creates in my console, it says that the program is trying to use something called "SetMaps", which is determined to be a nil value. Any thoughts?
Brumble  [author] 6 Sep, 2020 @ 8:03am 
So open the config.txt file and paste this
"{"RTVPlayerCount":1,"MapLimit":100,"TimeLimit":30,"AllowCurrentMap":true,"MapPrefixes":["ph_"],"MapsBeforeRevote":0,"EnableCooldown":false}"
Brumble  [author] 6 Sep, 2020 @ 8:03am 
Also bill - Don't forget if its just single player you're using, you'll need to create a listen server to be able to install any edits you've done to the addon - If its just single player, it'll just load the file from your /addons/ folder.
Brumble  [author] 6 Sep, 2020 @ 8:01am 
Hi Bill,

You need to edit the config.txt with the correct map format i.e. {"ph_"} if you're using prop hunt.
It should activate with just 1 person in the server.

The lua files have been setup to work for prop hunt and should work providing the config is edited to what you want, at the moment it's specifically setup for prop hunt maps only
Bill 5 Sep, 2020 @ 8:57am 
Does this addon require multiple people in-game to work? I've been playing prop hunt with friends recently and so I've been trying to set this up on my own time in single player so that when we all play together it works. However, i'm able to actually initiate a mapvote, but no maps show up on the list when i do this. Any suggestions?
Amphy 16 Jun, 2020 @ 8:42pm 
Hi, I'm currently trying to host a server on a Dedicated Linux environment that has multiple gamemodes (PropHunt, TTT, Murder, etc). Been trying for hours to figure out how to automatically change gamemodes when the map changes, based on the map's prefix. Can your addon do this? I wanted to ask before I spent hours trying to configure this too. Sent a friend request if you're alright helping me out in PMs!
Brumble  [author] 16 Jun, 2020 @ 7:19am 
Run gmad to decompile the addon and put the entire folder into your gmod/addons/ folder on the FTP.

Make sure to edit the config.txt with teh config i provided
TheDoctor 15 Jun, 2020 @ 9:17pm 
Where are the exact file locations for this add-on? I am trying to add it to a server and but no idea what files to actually move over.
Brumble  [author] 10 May, 2020 @ 8:05am 
Hi, What you'll have to do is get the original config and copy and paste my custom config into it for it to run on both, also make sure you have gametype set to PH and TTT
TacticalNerd 9 May, 2020 @ 4:38am 
Is there any way to run this and the original map vote on the same server in the case I switch from TTT to PH? Like specifying a specific ph_config.txt and using the 'ph_' prefix in there, while specifying 'ttt_' prefix in the original config?
Brumble  [author] 3 Apr, 2020 @ 12:52pm 
Don't forget to click the thumbs up!

There's more prop hunt content coming soon.