Garry's Mod

Garry's Mod

MapVote - Prop Hunt edition!
22 kommentarer
AmbitiousRam 21. aug. kl. 9:13 
Does this work for prophunters or just prophunt
concrete shoes 13. apr. 2024 kl. 20:29 
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
SimplyBrumble  [ophavsmand] 12. maj 2023 kl. 12:36 
I hope everyone is enjoying this plugin.

I intend to update soon for all current versions.
麻辣香锅 1. nov. 2020 kl. 3:55 
ok thanks:)
SimplyBrumble  [ophavsmand] 1. nov. 2020 kl. 3:28 
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. okt. 2020 kl. 21:15 
Can MapVote be used in Homicide:)
SimplyBrumble  [ophavsmand] 9. sep. 2020 kl. 7:01 
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 kl. 11:56 
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.
SimplyBrumble  [ophavsmand] 7. sep. 2020 kl. 23:23 
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 kl. 18:55 
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

SimplyBrumble  [ophavsmand] 7. sep. 2020 kl. 6:27 
Could you paste the entire error here please?
Bill 6. sep. 2020 kl. 10:07 
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?
SimplyBrumble  [ophavsmand] 6. sep. 2020 kl. 8:03 
So open the config.txt file and paste this
"{"RTVPlayerCount":1,"MapLimit":100,"TimeLimit":30,"AllowCurrentMap":true,"MapPrefixes":["ph_"],"MapsBeforeRevote":0,"EnableCooldown":false}"
SimplyBrumble  [ophavsmand] 6. sep. 2020 kl. 8:03 
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.
SimplyBrumble  [ophavsmand] 6. sep. 2020 kl. 8:01 
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 kl. 8:57 
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. juni 2020 kl. 20:42 
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!
SimplyBrumble  [ophavsmand] 16. juni 2020 kl. 7:19 
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. juni 2020 kl. 21:17 
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.
SimplyBrumble  [ophavsmand] 10. maj 2020 kl. 8:05 
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. maj 2020 kl. 4:38 
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?
SimplyBrumble  [ophavsmand] 3. apr. 2020 kl. 12:52 
Don't forget to click the thumbs up!

There's more prop hunt content coming soon.