December 03, 2021, 09:46:14 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2 3 4

Author Topic: Map Voting: Redux 2020 Edition! [serverplugin]  (Read 6843 times)

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Map Voting: Redux 2020 Edition! [serverplugin]
« on: July 30, 2012, 06:33:45 pm »


2020 update

 :curly: Huge update! :quote:

Massive new features:
:x11: Metrics tracking for your server's map votes! See the maps your players voted for and against and learn, with data, the maps that excite and bore your users!
:x12: The random map option now has hints, so you can see the game mode in advance and you don't random into dkoth or gen unexpectedly!
:x13: Want to write your own custom hints or make your own categories, besides the default mode? The plugin lets you easily write your own personalized map hints for your server!
:x14: Hugely configurable! A config file at the top of the plugin makes it trivially easy to change almost everything.
:x15: Customize your voting maps! The plugin will intelligently recognize any 3CP map which contains "map_voting" as a valid map to hold votes on!
:x16: The plugin now comes with 18 different sample voting maps from prominent GG2 locations to enjoy while you vote!
:x17: Too small a server player count to justify voting? Turn off map voting for small player counts of your choosing with a one-line config alteration.
:x18: Lots of bugs fixed, including much more effective randomization.
:x19: The plugin comes with intelligent default settings, so if you don't care about configuring anything it will just work.

Head to the bottom and download now.



How to host this Plugin on your server:

Install guide:
  • Download the zip file. It will contain a README, the plugin's GML file, a sample map rotation, a sample category file of random map hints, and 18 maps.
  • Put the plugin in your plugins folder.
  • Put the map_voting maps in your maps folder
  • Update your map rotation to include map_voting and three or more other maps, or copy and paste your map rotation into the sample and make THAT your rotation.
Then, simply load up your server, you're done!

For a guide to more interesting customizations you can do with the plugin to make your server unique, read the README file.,

How the map will play:

Once map_voting loads, players will be notified of the two maps they can vote on, and that they are also allowed to vote on an unnamed third random map. They exit the spawn area and head to the box representing the map they want to play. All map choices are equidistant, encouraging voting based on majority preference rather than distance. The area is grief proofed, with bullet walls preventing combat and all players being ubered at all times to reinforce the point, so that players can focus on the voting.

The game server handles the capturing, so that any players on one team can capture their own team's colored point and can capture together. As players stand in the area they want, votes accumulate towards that map, which are periodically displayed for the players on the server. Once one map has generated the necessary number of votes, players are taken to the map they voted for.

Once that map is complete, you will be taken back to map_voting, with a new set of random maps chosen, ready to vote again.

If you run into any glitches or have ideas to improve the plugin, please post or message me.

Version: 2.9.2 and later but requires testing after each update that alters control point logic, which this heavily overrides.
Conflicts: None Known

Code:
Code was too big to fit into a single post, head to https://www.ganggarrison.com/forums/index.php?topic=32455.msg1297602#msg1297602 to see the two parts of the code if for some reason an issue arises with the downloads below!
« Last Edit: August 13, 2020, 01:26:50 am by Machidro »
Logged
A CHALLENGER HAS ARRIVED.

Humble Master

  • 2012 Haxxy Award Winner
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1262
  • Maker of Drakora
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #1 on: July 30, 2012, 06:41:15 pm »

In a pub game this might elongate things but other than that it looks good.
Logged
Finally returned

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #2 on: July 30, 2012, 09:17:40 pm »

I did some testing.

I'm trying to find a way to prevent spys from creating issues with stabbing. I could make the map scout, demo, and soldier only, but are there any other intuitive solutions?
Logged
A CHALLENGER HAS ARRIVED.

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #3 on: July 31, 2012, 05:08:18 am »

prevent characters from dying
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

trog

  • member of intel's squad of garbagemen against the yakuza
  • Veteran Member
  • ******
  • Karma: 27
  • Offline Offline
  • Posts: 10080
  • i am uberdeath
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #4 on: July 31, 2012, 10:42:03 pm »

How are the 2 maps chosen? And 2 maps isnt that great of a selection...
Logged

PM me your apps for my clan

92% of people who see this will not
have the guts to repost it. When Goku
died in the explosion Cell tied to destroy Earth with, he did it for you and me. If you're not ashamed to love Goku, post this as your status and show everyone. Thank you, Goku. I lifted up my arms for the spirit bomb every time you asked for my energy.

Splatterman

  • Guest
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #5 on: August 01, 2012, 02:07:15 am »

awesome idea. Gets my vote.
Logged

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][vanilla compatible]
« Reply #6 on: August 01, 2012, 03:00:36 am »

The three maps (can't forget the alternative option) are chosen from your map rotation. The plugin rolls a random number and checks to see if the value of the map at that number's index in the map list isn't map voting or an already selected map. If so, that map becomes an option, otherwise, reroll.

And yeah, I'd agree that three options feels a bit light.The issue is the limits that come with making a plugin.

Making a vanilla plugin means that the only way to communicate information is through pop up messages, which don't really have a lot of room. Since without the messages, players wouldn't know the plugin is working, it probably wouldn't be a good idea to get rid of them; that means to add more options messages would either have to get longer, confusing players, causing them to miss important info), or I'd need to divide things into more individual messages, creating the same issue due to rapid flickering of messages to provide the info quickly.

I can't guarantee it'd look or play well, is my issue. However, if I can find time I'll try to make a 5 option version as well.

@Wareya: Done, in the now posted new version players are immortal while voting.
« Last Edit: August 01, 2012, 01:35:38 pm by Gardicolo »
Logged
A CHALLENGER HAS ARRIVED.

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #7 on: October 20, 2012, 01:04:00 pm »

Alright, big update time.

Changes:


-Multi stage maps are now loaded correctly

-Scouts no longer count for two people voting, player vote rate increased to compensate. It now takes a single person voting slightly less than one minute to run the timer

-Vote count pop ups appear every second instead of every 15, allowing people to see vote progress

-Vote counts are now displayed with a percentage instead of a raw number

-The option which wins is now announced

-No wait to see what the vote options are.
Logged
A CHALLENGER HAS ARRIVED.

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #8 on: February 01, 2013, 06:37:40 pm »

Hey, this looks like a good candidate for server-sent plugins. You could have a client-side plugin that displays totals and stuff.
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #9 on: February 01, 2013, 06:44:34 pm »

Well, I have had an update in the works for some time now, this could be a god time to whip it out. Problem is, if I could have server sent this, I probably wouldn't have made a map, it would've been done in map through the chat box or through a drawn GUI. That'd be my ultimate goal, but right now, that'd require a massive overhaul.
« Last Edit: February 01, 2013, 06:45:01 pm by Machidro »
Logged
A CHALLENGER HAS ARRIVED.

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #10 on: February 01, 2013, 06:49:25 pm »

Yeah, I figured. =/
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #11 on: February 01, 2013, 06:51:15 pm »

Hey, this uses NoticeOs, right? You could maybe stick some code in somewhere to make it display them differently if they're map voting related, if that's even possible.
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #12 on: February 01, 2013, 07:20:20 pm »

Not worth it. Each use of NoticeO takes me seven lines of code. It'd be cleaner and more efficient to just redo popups with a new interface.

Also, even though using the map as a voting proxy sucks, I've almost grown nostalgic for it already. The voting always allowed just enough shitheadedness to be kind of fun, and it made votes feel fairly deliberate.

Though, I suppose having the ability to have more than three maps to vote on, or even allowing players to choose what map they want to play Killing Floor style, to be something worth having.
Logged
A CHALLENGER HAS ARRIVED.

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #13 on: February 01, 2013, 07:23:52 pm »

Not worth it. Each use of NoticeO takes me seven lines of code. It'd be cleaner and more efficient to just redo popups with a new interface.
Stick the code for it in a var, and do execute_string(variable_name, argument0, argument1);

You can basically treat vars like scripts.

Also, even though using the map as a voting proxy sucks, I've almost grown nostalgic for it already. The voting always allowed just enough shitheadedness to be kind of fun, and it made votes feel fairly deliberate.

Though, I suppose having the ability to have more than three maps to vote on, or even allowing players to choose what map they want to play Killing Floor style, to be something worth having.
heh
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

Machidro

  • 2013 Haxxy Award Winner
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 1675
  • Gardicolo time is over.
Re: [Best Plugin] Map Voting! [serverplugin][UPDATED]
« Reply #14 on: February 01, 2013, 07:38:55 pm »

If I'm gonna update, I want it done right.
Logged
A CHALLENGER HAS ARRIVED.
Pages: [1] 2 3 4
 

Page created in 0.05 seconds with 37 queries.