• Simple Map Voting Addon
    235 replies, posted
How did you make it work with a prop hunt server? I get this error when starting up: [CODE][ERROR] addons/gmod-mapvote-master/lua/mapvote/cl_mapvote.lua:13: '}' expected (to close '{' at line 9) near 'antialias' 1. unknown - addons/gmod-mapvote-master/lua/mapvote/cl_mapvote.lua:0[/CODE]
Will this work with Deathrun?
[QUOTE=DNDevOwner;42703021]Will this work with Deathrun?[/QUOTE] Yes, it will.
It doesn't work on mine help me please?
Is there a way to initialize a vote from console or command?
Do I need to remove the map voting system within ULX and replace it with this one?
It wont work. I got this to work before but instead in console I get this error? [ERROR] gamemodes/terrortown/gamemode/cl_init.lua:339: attempt to index global 'WSWITCH' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/cl_init.lua:339 I've tried deleting it. Didn't work. Any solution to fix this?
For some reason I can't get it to work on my TTT server. I put it in the addons or whatever. anyone care to help?
[QUOTE=AngelFrmAbove;43110367]For some reason I can't get it to work on my TTT server. I put it in the addons or whatever. anyone care to help?[/QUOTE] Here is a tip. "or whatever" does not make it seem like you are very sure. Tell me exactly where you put it and how you put it there and I'll lend a hand. [editline]19th December 2013[/editline] [QUOTE=DNDevOwner;42706702]It doesn't work on mine help me please?[/QUOTE] You need to edit a line of code. Reply just so I know you are still interested?
[QUOTE=matthew21164;43237766]Here is a tip. "or whatever" does not make it seem like you are very sure. Tell me exactly where you put it and how you put it there and I'll lend a hand. [editline]19th December 2013[/editline] You need to edit a line of code. Reply just so I know you are still interested?[/QUOTE] I have the same problem as of the latest GMod update and am interested :P
So, I tried to add this to my TTT server, and I could not get this to work. I asked Willox, and I give him credit for trying to help me, but he sort of stopped answering me after a bit. So, I was wondering if anyone else here knows of my issue. Added mapvote to the Addons folder, changed the code in init.lua exactly to the OP's specifications, and it didn't work. The round would end and just sit there doing nothing. Oh, and the menu that pops up saying TRAITORS WIN or INNOCENTS WIN wouldn't pop up anymore. Anyone have any idea?
Have you restarted the server? My round end panel stops popping up whenever there are lua errors when ive changed something.
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 ;)
Hi, I am having trouble with the addon. I have installed it into my addons folder, and I changed the code for TTT, then on the post above you said to change it back and put in the new file solution. So I did, however I am still having a problem as to where when I have 2+ people on (the required for a round to start) the round doesn't start and players stay in spectator mode. This wasn't happening until I changed the code in the init.lua file. Please help! Thanks!!! Here is the error from the console: [ERROR] gamemodes/terrortown/gamemode/init.lua:713: attempt to perform arithmetic on global 'time_left' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/init.lua:713 Couldn't Load Init Script: 'terrortown/gamemode/init.lua' [ERROR] gamemodes/terrortown/gamemode/init.lua:132: attempt to call global 'ShowVersion' (a nil value) 1. unknown - gamemodes/terrortown/gamemode/init.lua:132 [ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:27: attempt to index field 'crowbar_unlocks' (a nil value) 1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:27 [ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:20: attempt to index field 'crowbar_unlocks' (a nil value) 1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:20 [ERROR] gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:24: attempt to index field 'crowbar_unlocks' (a nil value) 1. unknown - gamemodes/terrortown/entities/entities/ttt_map_settings/init.lua:24 Nevermind! I got my problem solved. apparently my Init.lua was missing a comma in one of the codes. I just backed up the file and reinstalled the addon. Voting all works now.
Does anyone know how I can add and modify it, to make it work on a murder server?
i cant go in init.lua
i have been having errors with my server since i started using this plug in :/ this was what the error showed up as in the console [IMG]http://imgur.com/rFagpOj[/IMG] and this is what i put in the init.lua [IMG]http://imgur.com/CUrvHgO[/IMG]
Is there any way to apply this to the gamemode "Murder"?
[QUOTE=jason_rogue;43741860]Is there any way to apply this to the gamemode "Murder"?[/QUOTE] Should work fine.
[QUOTE=code_gs;43741922]Should work fine.[/QUOTE] Do I have to edit the murder init.lua? or just put the addon in the addons folder...
[QUOTE=jason_rogue;43741981]Do I have to edit the murder init.lua? or just put the addon in the addons folder...[/QUOTE] Just drop it in your addons.
I am running gmod, does anyone know how to disable fretta to get the RTV to work? At the end of the game of prop hunt the which gamemode will pop up no game modes will show up. I am trying to get so the one tyrantelf fixed up to work.
Just comment out the gamemode voting in the Fretta files.
[QUOTE=code_gs;43757162]Just comment out the gamemode voting in the Fretta files.[/QUOTE] What files tho?
[QUOTE=Storm18;43760651]What files tho?[/QUOTE] Most Fretta gamemodes have a separate folder for Fretta files.
[QUOTE=code_gs;43760654]Most Fretta gamemodes have a separate folder for Fretta files.[/QUOTE] I see them, but what file to edit? Also if I disable freatta via cfg the game will still end, but it will just freeze without doing fretta. Any way ti extend the gamemode so that rtv will start after 25 mins?
[quote]Any way ti extend the gamemode so that rtv will start after 25 mins?[/quote] If you're asking what I think you are, go into where Prop Hunt is located, go into gamemode, sh_config and then you can edit stuff there. You can also go into sh_init and directly change stuff like [code] GM.GameLength = GAME_TIME GM.RoundLimit = ROUNDS_PER_MAP GM.RoundLength = ROUND_TIME [/code] To stuff like gamelength = 25. Keep in mind, Fretta will either call a vote when the round limit is hit, or when you get to the number of minutes in game length, whatever comes first. Fretta will however wait til the round is over, as opposed to start right away.
[QUOTE=NiandraLades;43761256]If you're asking what I think you are, go into where Prop Hunt is located, go into gamemode, sh_config and then you can edit stuff there. You can also go into sh_init and directly change stuff like [code] GM.GameLength = GAME_TIME GM.RoundLimit = ROUNDS_PER_MAP GM.RoundLength = ROUND_TIME [/code] To stuff like gamelength = 25. Keep in mind, Fretta will either call a vote when the round limit is hit, or when you get to the number of minutes in game length, whatever comes first. Fretta will however wait til the round is over, as opposed to start right away.[/QUOTE] Ok, I found it out, set the rounds to 100. I am hoping that after 24 mins the RTV will being auto.
[QUOTE=Storm18;43761299]Ok, I found it out, set the rounds to 100.[/QUOTE] Make sure you've sorted out game length too.
ok so i just made a prop hunt/ttt server and trying to add this voting system to the server. so ive downloaded the voting tool and put it in the addons folder now when i put in the syntax in the mapvote.lua file and the init.lua file when it comes time to vote for gamemode u cant select anything or any maps. i tired what willox said but i cant get it to work. what i i doing wrong? this is what it looks like [url]https://www.dropbox.com/s/5x8w56c7teyo082/2014-02-05_00001.jpg[/url]
Sorry, you need to Log In to post a reply to this thread.