Videos
- edit
- /
- history
- /
- upload files
Dynamic Mapvote
Author | Cubemath |
Date of release | January 13, 2018 |
.bsp filename | dynamic_mapvote |
Description
Stand on the Floor infront of a Screen to vote a Map.
Additional info
Instructions
Modify the File to add/delete maps:
/scripts/maps/store/mapvote_maps.txt
The first line should contain the timelimit in seconds.
Example:
Time: 20
The other lines should contains the map-data.
Example:
Half-Life Campaign|hl_c00
The character '|' splits the text.
The text infront of the Pipe-Character it the title that appears on the Vote-Screen.
The text after the Pipe-Character is the name of the map.
You can also add a breakline in the title by adding "\n".
Example:
Half-Life\nCampaign|hl_c00
It is possible to add a second map to the map-data.
Example:
Half-Life Campaign|hl_c00|hl_c02_a1
If people decided to vote for a campaign,
a Vote-Window will appear that allows the people to skip the intro (goto 2nd map).
If you want to add a Pipe-Character to the title, then use "\|".
Vote-Screen doesn't support Unicode-Characters.
If you want to change the music for the lobby, go to the directory: /sound/dynamic_mapvote/, add your own music file then edit the file dynamic_mapvote.gsr.
You will see the lines:
"dynamic_mapvote/dynamic_mapvote.ogg" "dynamic_mapvote/dynamic_mapvote.ogg"
Simply change the path of the second line of code to your desired music.
Example:
"dynamic_mapvote/dynamic_mapvote.ogg" "dynamic_mapvote/mymusic.mp3"
You are allowed to use mp3, wav and ogg formats.
After finishing you must add this custom sound to the dynamic_mapvote.res file.
Design
A picture is worth a thousand words.
Add a path to a sprite to the line like this:
sprites/dynamic_mapvote/half-life.spr|Half-Life Campaign|hl_c00
Then this sprite will appear on the votescreen.
Be sure that everybody can see the sprite (Add sprite-path into dynamic_mapvote.res as it is a custom sprite).
Be sure that the resolution of the sprite is 352x160 or else it wont fit into the Vote-Screen.
Here's for Example (you can download ex.)
Note: use the HL/CS Sprite editor tool (.spr file) you can edit it and to make your own vote-screen.
The map will be built automatically using the text file.
If the Text-File is missing or contains invalid data, then the error will be shown as title on the Vote-Screen and Half-Life Campaign will be started after the vote.
If an invalid map gets voted, an Error-Message appears on your Screen and the Vote-Timer will reset,so the people can vote for a different map.
Special Event modes
This map features a Halloween and Christmas mode, which will allow you to use a special mapvote file to host theme-related maps, which will automatically load during Halloween or Christmas.
mapvote_maps_halloween.txt
mapvote_maps_xmas.txt
You can edit these to customise the maps just as you would for the default mapvote_maps.txt file.
If you want to just use the default mapvote file for the events, just simply remove one or all the above files.
Known Issues
- Possible Softlock: If people vote for an invalid map, then people will be stuck on this map!
- Bug: Disappearing Map-Parts, because there are too many entities on the map. (Keep in Mind, that each Character on the Vote-Screen is an entity)
Changelog
Tags
Rate this map
4.3 / 5 (11 votes)
Reviews
Comments & discussion
Rules:
- Feedback should be constructive.
- For discussion not related to this map, post in the forum.
- If you need help installing maps, please read the installation guide.
During halloween your lobby will use a special mapvote selection featuring spooky maps (preset ones, or maps of your choosing)
Currently featured maps are:
You can of course edit the file mapvote_maps_halloween.txt to customise your special halloween lobby and change what maps you want available to be voted on.
If you don't want to use the special mapvote file, just simply remove it and the lobby will use the normal mapvote_maps file.
Happy Halloween!
Updated script: the decal tiling bug (where if a person used a spray it would repeat across the whole map) has been fixed
Can someone help me with blueshift maps?
A small update was added to the map: the map has been updated using subdivision 528, reducing the number of wpolys on the map. This will greatly increase performance for server owners using a very large amount of slots.
The buggy music/votetime settings have been fixed: the vote times should now be set correctly. The lobby music must now be changed by editing the gsr file in the sound/dynamic_mapvote directory (read the page for detailed instructions).
Special thanks to AlexCorruptor for making the optimizations.
The what i said about that i cant change the music, i managed to change it somehow.
However, i still left the time in 15 and time is still 30.
Time appears to not be setting correctly because probably because conflicts with custom music setting in the mapvote txt file and scripts.
The mappack has been updated with a fix that removes all that stuff out and hardcoded music in the bsp so it works fine now. The music is now no longer set in the mapvote_map txt file, you must now edit the gsr file in sound/dynamic_mapvote folder to customize the music (instructions are provided in the page). You must also have to add a res entry for the sound file so that players can download it, unlike before where the script precached the sound automatically.
I tried to change the music + leave it unmodified, doesn't work.
The time was set to 15 by default but it's always 30 ingame.
Fixed in latest download
-Issue: dynamic_mapvote.as was in the wrong dir- was located in scripts/ not scripts/maps
The script couldn't be executed for the settings in the config file to be set
Music is now playing, however, when i change the music, it always keeps playing the dynamic_mapvote.mp3 so it doesnt change.
I tried both a mp3 file and a wav file.
I also changed the voting time but it's still in 30 seconds.
Edit: Music worked this time.
Updated the map script to include music that can be played in the lobby