Depending on where you put it, you might have to change prefix = "ph_" to prefix = {"ph_"} etc
I tried to extract the whole map but it didn't work. The server automatically changed to another map as usual, When I tried putting the single file in the map vote didn't appear and it didn't automatically change to another map, so the "round end" just kept going with everyone dead.
Do someone know what's wrong?
How would I go when I only want gamemode specific maps to show? I'm a really not good with programming and therefor need some assistance. For example, we play TTT and only TTT maps should show up. Next round we switch our gamemode to prophunt and then only ph_ maps should be shown.. How would I go about this?
When calling MapVote.Start() the fourth argument is "prefix". Here you can specify what the listed maps have to start with. So in TTT, call MapVote.Start(something, something, something, {"ttt_"}), or in prophunt call MapVote.Start(something, something, something, {"ph_"})
Guys, where did the RTV and ulx mapvote go?
Sorry for opening up an old post but...
I am using this map vote addon for my TTT server although when i add in the TTT.lua as instructed and try to add de_dolls to it de_dolls does not show up on the map vote screen. I then re installed the TTT.lua and left the cs_italy in there but that didnt show up either. I also changed some of the config options within it such as the allow current map and that didnt change in game either.
I have put the Lua file in my garrysmod/lua/autorun/server folder but i feel like its not affecting anything, have i placed it in the wrong spot or have past updates rendered it useless?
--edit
After further testing i found out the problem was that it wouldn't load the extra maps or further config because i was typing in !mapvote , i had to let the clock run all the way through to the final round in order for it to show the correct maps, sorry about that
--edit of and edit
new problem, ever since installing it my Server Crashes when we change maps, no idea what the probelm is there are no code erros that pop up it just seems to crash, people keep voting for minecraft but as soon as the voting ends and it goes to change levels the server chrashs. If anyone knows a quick fix or cause that would be greate other than that im gona do some sluething my self.
and again sorry for bringing back an old thread
Sorry to beat a dead horse but I am recently getting a stack overflow with this and other map addons.
Anyone have ideas to fix this?
Post the error
I'm having an issue right now where only about 3 of my maps appear in the vote list. I have 7 with the prefix "ttt_". I made sure that the mapvote limit was over 3. Every time it goes to vote the 3 maps in the vote list are different. Any help would be appreciated.
Does anyone know why is this map voting doing changelevel when the last player disconnects? No errors. Everything working fine.
Edit: I'm using [url=steamcommunity.com/sharedfiles/filedetails/?id=151583504]this[/url] one.
When the game ends, I don't get any maps in the your RTV menu to vote for, it's empty, my config file looks like this:
{"RTVPlayerCount":2,"MapLimit":10,"TimeLimit":28,"AllowCurrentMap":false,"MapPrefixes":{"1":"dr_","2":"deathrun_"},"MapsBeforeRevote":3,"EnableCooldown":true}
What'd I do wrong??
How do I remove the 'vote favour' feature?
I've always wanted a map voting system for single player...
I cannot get this to work with zombie survival. Whenever the round ends the mapvote does not start.
[QUOTE=ManyStrongWor;49731180]I cannot get this to work with zombie survival. Whenever the round ends the mapvote does not start.[/QUOTE]
That's because this addon is made for ttt...
[QUOTE=JasonMan34;49731808]That's because this addon is made for ttt...[/QUOTE]
Correct it is only drag and drop with ttt and deathrun, but I am having trouble getting it to run with MapVote.Start(voteLength, allowCurrentMap, mapLimit, mapPrefix) Lua. I am needing help in regards of where to insert this code as I am new at this.
It'#s easy to add this to new gamemodes, just use the mapvote start function in your gamemodes end round hook. This wokrs in ZS because if you check there's support in there for it.
Is there anything more than just having it in the addons folder required to make it work with ZS as that is what i have currently done, but it is not working?
I went ahead and started the server up as TTT with a unmodified ttt_mapvote.lua and it worked fine. If anyone can help me in modifying the ttt_mapvote.lua to work with zs that would be helpful. Thanks as i am really new to this.
[QUOTE=ManyStrongWor;49739743]I went ahead and started the server up as TTT with a unmodified ttt_mapvote.lua and it worked fine. If anyone can help me in modifying the ttt_mapvote.lua to work with zs that would be helpful. Thanks as i am really new to this.[/QUOTE]
Message me on Steam and i can help you
[url]http://www.steamcommunity.com/id/deltabread[/url]
The edited Version for Zombie Survival.
[url]https://github.com/Larry-Lizard/gmod-mapvote-zombie-survival[/url]
How would I go about adding map icons to be displayed next to the map name?
[QUOTE=Dan-;49779479]How would I go about adding map icons to be displayed next to the map name?[/QUOTE]
This is not possible in this Map Voting System.
I have this addon working for my Murder server however the only map that shows up at the end of my rounds is cs_office. Where do I put my map bsp files for them to be read by the addon? Or what do I need to change so the maps I want are shown when the vote appears. Thank you I know NOTHING of coding!
[QUOTE=WonderTwin01;49999875]I have this addon working for my Murder server however the only map that shows up at the end of my rounds is cs_office. Where do I put my map bsp files for them to be read by the addon? Or what do I need to change so the maps I want are shown when the vote appears. Thank you I know NOTHING of coding![/QUOTE]
Go to the addon, then to lua/autorun/ and there should be a lua file there. Edit it and search for [code]Prefix = {""},[/code]
change this to:
[code]Prefix = {"md_", "mu_"},[/code]
That should work.
Not sure if people will find this helpful, but I forked Tyrantelf's mapvote repository and changed it so that it reads the map prefixes from the 'gamemode'.txt file by default. You can also add maps to specific gamemodes through the config file.
More info on GitHub: [url]https://github.com/Xterminatorz/gmod-mapvote[/url]
Sorry, you need to Log In to post a reply to this thread.