• Simple Map Voting Addon
    235 replies, posted
in my ttt server i want all the maps to show again and the current map so i did this: [lua]{"RTVPlayerCount":3,"MapLimit":24,"TimeLimit":28,"AllowCurrentMap":true,"MapPrefixes":{"1":"ttt_"},"MapsBeforeRevote":3,"EnableCooldown":false[/lua] and it still takes away maps and the last one played. any help out there?
I'm using this for my prophunt but im curious, is there anyway to have it so when rtv is called, you vote for a desired gamemode then if that gamemode 'wins' as such, you then vote for your desired map?
I have a problem with adding zs_ and ze_ maps. Here my config.txt and some code: [lua] {"RTVPlayerCount":3,"MapLimit":32,"TimeLimit":60,"AllowCurrentMap":false,"MapPrefixes":{"1":"zs_","2":"ze_"},"MapsBeforeRevote":1,"EnableCooldown":true} [/lua] [lua] --Default Config MapVoteConfigDefault = { MapLimit = 32, TimeLimit = 60, AllowCurrentMap = false, EnableCooldown = true, MapsBeforeRevote = 1, RTVPlayerCount = 3, MapPrefixes = {"zs_", "ze_"} } --Default Config [/lua] [lua] MapVote.Start(60, false, 32, {"zs_", "ze_"}) [/lua] I see only one map or only zs_ maps, or ze_. They do not come together. What I am doing wrong?
[QUOTE=chaosnz;44131880]I'm using this for my prophunt but im curious, is there anyway to have it so when rtv is called, you vote for a desired gamemode then if that gamemode 'wins' as such, you then vote for your desired map?[/QUOTE] Isn't that just fretta Which comes with Prop Hunt anyway
The map vote stopped working on my server after the recent gmod update. Anyone else the same?
For me its also not working anymore!
Just tested it on my TTT server, and it is working ok for me.
If you've applied it by manually modifying your gamemode's init.lua file, it will be overwritten every update. Read [url=http://facepunch.com/showthread.php?t=1268353&p=43294681&viewfull=1#post43294681]this[/url] post for a better solution.
Thanks, but it still wont work for me. After all the maps rounds are complete, the server just idles on 0:00
[QUOTE=Eccid;40935142]I don't know if you saw my latest release for the rtv, but I put a ttt version out that called the mapvote from a hook. Most ttt players complain when a match is interrupted, so I called it on the TTTPrepareRound hook. There's a TTTDelayRoundStartForVote hook, but it doesn't seem to work properly. If you could work that in, I'm sure some people would be very happy.[/QUOTE] Been working on this addon tonight, and I like where it's sitting at for the most part, but I'm also having this above issue. Pre-round on my TTT server is 10 seconds, and I have the vote lasting 25 seconds, meaning that after an RTV, there is a new round that lasts 15 seconds before the map is changed. >< Is there a way I can set RTVs to happen when the regular map vote (after the map has been played through completely) happens? (At the start of "end of round") I would think it's a matter of changing the hook here: [code]hook.Add( "TTTDelayRoundStartForVote", "rtvvotemap", function() if RTV.ShouldChange() then MapVote.Start(20, allowCurrentMap, mapLimit, mapPrefix) end end)[/code] However I am totally noob when it comes to lua. Any help would be appreciated.
Stick with the original code and add hook.Run("TTTDelayRoundStartForVote") after the MapVote.Start line
When the gamemode voting appears i want two options. Prop Hunt and ( &#865;° &#860;&#662; &#865;°) (inside joke on the server). I want gamemode ( &#865;° &#860;&#662; &#865;°) to basically just be prophunt but two options will appear. How do i add the second one? [editline]20th April 2014[/editline] [QUOTE=pontehh;44599938]When the gamemode voting appears i want two options. Prop Hunt and ( &#865;° &#860;&#662; &#865;°) (inside joke on the server). I want gamemode ( &#865;° &#860;&#662; &#865;°) to basically just be prophunt but two options will appear. How do i add the second one?[/QUOTE] So: If i select gamemode Prop Hunt ----> Initiate Prop Hunt If i select gamemode "( &#865;° &#860;&#662; &#865;°)" -----> Initiate Prop Hunt I just want two viable options show at the game mode tab. People are commenting on how useless it is when there only is one game mode. Thought I could put this in there for the funsies.
And sometimes the icons are only smileys when you select maps.. aren't they supposed to be their steam profile pictures?
a) This is for map voting, not gamemode voting b) That means you are using the Fretta voting system rather than mine, which is better for your situation anywho
[QUOTE=Willox;43294681]The issue is that some shared hosts (and possibly any server depending on the startup parameters) will override default garry's mod content on start up. This includes TTT's init.lua. I'll post a solution here in a bit [editline]24th December 2013[/editline] [url]http://d.pr/f/qT41[/url] Chuck this in to garrysmod/lua/autorun/server/ and instead of modifying init.lua just modify this file. I've tested it this time ;)[/QUOTE] I'm getting a page not found for this link.
Looks like Droplr deleted all my stuff. It was probably something like: [url]http://pastebin.com/e4sDwkfW[/url]
For some reason i can't get the maps to show up on the menu. My server is running TTT and i loaded maps into the maps folder of the server and it's still blank. EDIT: Nevermind, got it to work :D
Guys how do I change the number of rounds before it makes a map vote? I want to change it from 6 rounds to 16 rounds I looked through the whole lua file yet didnt found this option Please help :(
[QUOTE=TheReaper784;45033779]Guys how do I change the number of rounds before it makes a map vote? I want to change it from 6 rounds to 16 rounds I looked through the whole lua file yet didnt found this option Please help :([/QUOTE] [url]http://ttt.badking.net/config-and-commands/convars#TOC-Map-switching-and-voting[/url]
Is there a line which includes the maps which can be listed? Nothing comes up when I test this in a whisper Hide and Seek server. I'm also using the SMVRtv addon. [editline]29th June 2014[/editline] [QUOTE=Screamie;44913498]For some reason i can't get the maps to show up on the menu. My server is running TTT and i loaded maps into the maps folder of the server and it's still blank. EDIT: Nevermind, got it to work :D[/QUOTE] How?! I'm using Hide and Seek!
ok so i get an error when trying to use the rtv command when trying to start a map vote this is the error i get: [URL=http://s1248.photobucket.com/user/DTM450/media/Gmod/4914afc7-2f98-4102-9b2f-af97dbc604b8_zps57afac24.png.html][IMG]http://i1248.photobucket.com/albums/hh490/DTM450/Gmod/4914afc7-2f98-4102-9b2f-af97dbc604b8_zps57afac24.png[/IMG][/URL] i have tried redownloading the addon i have browsed over the lua code and everything looks normal can anyone help
This is what im geting [AddCSLuaFile] Couldn't find 'mapvote/cl_mapvote.lua' (@lua/autorun/server/mapvote.lua (line 32)) Couldn't include file 'mapvote\sv_mapvote.lua' (File not found) (@lua/autorun/server/mapvote.lua (line 34)) [ERROR] lua/autorun/server/ttt_mapvote.lua:21: ')' expected near '.15' 1. unknown - lua/autorun/server/ttt_mapvote.lua:0
Hello, could someone tell me how to set this up with Murder? I have my own server and was wondering how I can change this to work with Murder.
Murder already checks for and calls a mapvote if it's installed. In order to get the correct maps to appear in Murder you need to open sv_rounds.lua and find where it says mapvote. Then where it says local prefix add this. [CODE]local prefix = {"mu_", "md_", "cs_italy", "cs_office", "de_chateau", "de_dust", "de_forest", "de_prodigy", "de_tides", "dm_lockdown", "gm_housewithgardenv2"}[/CODE] Those are the officially supported murder maps. This is good if you also run TTT or other gamemodes on your server and don't want it switching to those. You may also need to add mu_roundlimit to your server.cfg. I have mu_roundlimit 8
Could you play music in the background during the vote?
Hi i know this is an old thread just looking for some help. How can i make this work for an rtv mid map but only at the end of the round? and the command would be !rtv Thanks for the help -Matt
[QUOTE=MattTheEmp;45773880]Hi i know this is an old thread just looking for some help. How can i make this work for an rtv mid map but only at the end of the round? and the command would be !rtv Thanks for the help -Matt[/QUOTE] You're going to need to run the lua function provided in the OP [lua]MapVote.Start(voteLength, allowCurrentMap, mapLimit, mapPrefix)[/lua] and find your own !rtv code. Afterwards, you're going to want to run a check to see if GetRoundState() is ACTIVE or not, and if so, return true or false
-- removed
If you vote for the same map that the server is currently on then it stops end2prep and prevents the round from starting if the server has a slight de sync leaving players unable to do anything. [CODE] if rounds_left <= 0 or time_left <= 0 then LANG.Msg("limit_vote") timer.Stop("end2prep") timer.Simple(8, function()[/CODE]
Glad to see this thread being still alive. I was wondering if anyone here has found a way to only show maps that are associated with the current gamemode. So when playing Prop Hunt, only show maps starting with ph_. I have tried messing with the MapVote.Start() function by adding this: [lua] if GAMEMODE_NAME == "prop_hunt" then prefix = "ph_" end elseif GAMEMODE_NAME == "terrortown" then prefix = "ttt_" end [/lua] But to no avail. Any ideas?
Sorry, you need to Log In to post a reply to this thread.