Mapchooser4
2 Attachment(s)
About 2 years ago I posted at AMX forum a plugin for AMX called mapchooser4. Of-course - it wasn't 100% of my code, but it was based on the default maphooser with ideas of the people they were writting some remakes of mapchooser. I've merged these ideas, added some mines - and then mapchooser4 was released.
What are the biggest differences between mapchooser4 and the default mapchooser? 1. It supports extending maps on servers playing in maxround / winlimit systems. 2. It "remembers" the history of the last 0-15 played maps ("amx_map_history" cvar) to prevent get them to the map vote menu again. 3. You can define by a cvar if You want to use mapcycle.txt, maps.ini or maps folder for the list of maps they wiil be taken into maps vote menu. 4. It lets You rock the vote for the next map. Currently this plugin version posted here is based on code of AMX 2006.3 written/modified by KRoT@L with some my modifications they came from users requests. KRoT@L used some my ideas I've included in mapchooser4 but he also added few others - for example from Deagle's Map's map management plugin. So all credits of the plugin posted by me here belongs to KRoT@L and to the Deagle. If amx_mapchooser_type is set to 1, players can nominate maps for the vote. They have to type "nominate mapname" or "vote mapname" or "mapname" in the chat. They can type "nominations" in the chat to see the list of nominated maps. They can type "amx_listmaps2" in console to see the maps that can be nominated if amx_nominfromfile is set to 1. The plugin uses cvars listed below. If You want to change any of them, write them (with desired by You values) into amxx.cfg (at the bottom of that file). amx_mapchooser_type <0/1/2> (default is 0): 0: random maps from amx_mapchooser_mapsfile/mapcycle/maps folder 1: nominations 2: the nextmap is a random map chosen from amx_mapchooser_mapsloc (no vote) amx_mapchooser_mapsloc <0|1|2> (default is 0): 0: amx_mapchooser_mapsfile 1: mapcycle 2: maps folder amx_mapchooser_mapsfile - File used when amx_mapchooser_mapsloc is set to 0 (default filename is "maps.ini"). The file must be in amxmodx/configs/ folder. amx_mapchooser_mapsfile_s - File used when amx_mapchooser_mapsloc is set to 0 and there is less than 10 players on the server (default filename is "maps_small.ini"). The file must be in amxmodx/configs/ folder. If it's not existing there, the regular amx_mapchooser_mapsfile will be used also for smaller than 10 amount of players on the server. amx_nominfromfile <0/1> (default is 0): 0: players can nominate all the maps from the map folder 1: players can only nominate maps from amx_mapchooser_mapsfile/mapcycle amx_maxnominperplayer <num> - how many maps each player can nominate (default is 1). amx_map_history <num> - how many last played maps shouldn't go to the maps vote menu (default is 5). amx_extendmap_max <time in mins.> - max. time for overall extending the map if mp_timelimit is used (default is 90). amx_extendmap_step <time in mins.> - with what time the map will be extended if mp_timelimit is used (default is 15). amx_ext_round_max <number of possible polls for extend> - how many times the map can be extended if mp_maxrounds is used (default is 3). amx_ext_round_step <number of rounds> - with what rounds number the map will be extended if mp_maxrounds is used (default is 3). amx_ext_win_max <number of possible polls for extend> - how many times the map can be extended if mp_winlimit is used (default is 3). amx_ext_win_step <number of rounds> - with what rounds number the map will be extended if mp_winlimit is used (default is 3). amx_rtv <0/1> - enables/disables rockthevote option (deafult is 1). amx_rtv_percent <0.0-1.0> - rockthevote ratio (%/100 human-players they need to say rockthevote to start voting for the next map (default is 0.6). amx_rtv_min_time <time in mins.> - minimum time (in minutes) required to play the map before players can use rockthevote feature (default is 10). amx_rtv_map_time <time in sec.> - time to change to the new map after successful rtv and then successful voting for the new map, the map (instead waiting until round end). Default is 10 (increasing it to 300 will effect in waiting to the round end to change the map). These AMX X cvars - normally registered by admin.sma plugin but also checked by mapchooser4: amx_vote_time <time in mins.> - the time next vote can happen since last vote happened. Default is 10. amx_vote_delay <time in secs.> - the length of time the vote is active. Default is 10. amx_last_voting <time in mins> - the time last vote happend (internal use). amx_show_activity [0|1|2]: 0 - doesn't show what the admin is doing (starting any vote i.e.), 1 - shows to everybody the activity of admin, but without showing his name, 2 - shows the activity of the admin with his name. Higher than 2 values of this cvar aren't supported by mapchooser4 plugin. NOTE: 1. Nextmap plugin is required for proper working of this plugin (with amx_nextmap cvar). 2. Mapchooser4 plugin should be called from plugins.ini from the place the default mapchooser is called (just exactly instead of it - not from the place for other custom plugins). 3. mapchooser4_txt.zip contains translations only, but You need it to get correctly working the plugin!!! [EDIT] 26.09.2007 - updated to 3.1 version - fixed the bug with nominating maps out of maps.ini (from the "maps" folder). 21.09.2008 - updated to 3.3 version - added rock the vote option, map history is now a cvar (amx_map_history). 10.11.2008 - updated to 3.31 version - fixed the bug with freezing the server when there was low amount of maps in maps.ini/mapcycle.txt comparing to amx_map_history value. 03.03.2010 - updated to 3.41 version - added a new file for smaller amount of players on the server (defined by "amx_mapchooser_mapsfile_s" cvar), added the new cvar ("amx_rtv_map_time") to define the time between succesful map voting (after rtv) and map change, added help message for rtv, updated (ro, nl, bp) and extended translations file. 03.11.2012 - updated to 3.42 version - fixed bug with loaded other maps than they should be according settings (i.e. to be nominated from mapcycle file); added ru and sr translations. 11.11.2012 - updated to 3.42a - fixed some small problem with indentation which could do wrong things (compiler haven't see it) [/EDIT] |
Re: Mapchooser4
Nice plugin. Thanx
|
Re: Mapchooser4
nice plugin man
|
Re: Mapchooser4
I use csdm plugin and your plugin doesn't works :/ it only wrights maphist.ini but no map choose menu.
|
Re: Mapchooser4
can someone please help me?
is not workin' the script doesn't start voting ...! why? have any ideea? |
Re: Mapchooser4
Good job, i had this idea, but you beat me too it.
|
Re: Mapchooser4
Quote:
Another thing - CSDM gun/equip menus they overwrite all possible menus. I've asked about that BAILOPAN, but he told me since noone bothered him about that he is not going to add anything into code to prevent overlap menus. The same problem is with ATAC and CSDM. But seems except me noone noticed it... :( |
Re: Mapchooser4
Yes default is disabled. At the moment i'm useing deages map managment (don't like), but yours is simple, simple things are the best ;)
|
Re: Mapchooser4
What is the system on Your server to map rotating? It's depanding on mp_timelimit, mp_maxrounds or mp_winlimit?
If You are playing these last 2 - the rounds are never ending - so the plugin cannot start the vote, because the counter of rounds is not increasing. |
Re: Mapchooser4
This plugin is not working for me too...
|
Re: Mapchooser4
Please post me Your game.cfg (from cstrike folder) and plugins.ini (from amxmodx\configs folder).
|
Re: Mapchooser4
Srry i already uninstalled it. and am using a different one which I really dont like. This one sounds perfect for what i want. Please fix it. I did everything exactly as it says and checked it several times and still it did not bring up the vote.
=========EDIT=========== I have reinstalled it now, and still not workig. Code:
// Set the Host Name Code:
; AMX Mod X pluginsAnd what i want to do is have the "mp_winlimit 10" Then have your map vote on so it will allow people to choose extend map by 10 (or choose diff map) Please help. Thanks alot |
Re: Mapchooser4
Inside that zip file I posted in the first post there is a file mapchooser4.txt - make sure You have it copyied to amxmodx\data\lang folder.
I've been trying winlimit about 2 hours and it always shows the vote map menu for me. The only reason it's not working I can see it's not copyied lang translation file. |
Re: Mapchooser4
I have done that already. it is in the data\lang folder.
So.. What else could it be? I really want to get this plugin working. And it is "Running" when I type amx_plugins. please help. Could you post your 2 files here too? Then I could compare yours and mine and mabey see somthing we missed |
Re: Mapchooser4
Try to look into server's logs and amxmodx logs - if there are maybe some errors or missing translation message or something like that. What iare Your server and client language?
|
Re: Mapchooser4
Quote:
Please post your files so i can try your setup. |
Re: Mapchooser4
This below I have in amxx.cfg instead in server.cfg
Quote:
Quote:
BTW - what is the version of Your AMX X? |
Re: Mapchooser4
It just stared work now.. lol
Um i dont know version but it should be up to date. And no i hate max rounds. I like winlimit 10 but if extended it extends for another 10. Which ever team gets to 10 first wins. and when i was testing it b4 it was me and 1 other person and nothing happend.... but now i have like 5v5 and it works. 1 other question how can i change the % to win a vote? like show me the line i must edit in the .sma please. Thanks for all the help! And I love the plugin and its simplicity. the other plugin i was using was way to much, this one is perfect. All I really wanted was a extend map option and this plugin does it. |
Re: Mapchooser4
Quote:
|
Re: Mapchooser4
Quote:
|
Re: Mapchooser4
When I running 2 hlds (with different maplists) from one directory, will be both server's historys (maphist.ini) different? I read a code a little and i dont think so. If I wrong I apologize, if not I suggest
Code:
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)Code:
new hostname[63] |
Re: Mapchooser4
1 Attachment(s)
And here I post finnished CZ translation ;)
|
Re: Mapchooser4
Spanish complete translation...
[es] CHO_FIN_EXT_T = Seleccion finalizada. El mapa actual se ha extendido por %.0f minutos mas CHO_FIN_EXT_R = Seleccion finalizada. El mapa actual se ha extendido por %.0f rondas mas CHO_FIN_EXT_W = Seleccion finalizada. El mapa actual se ha extendido por %.0f victorias mas CHO_FIN_EXT_HMT = Seleccion: Mapa %s sera ejecutado en %.0f time CHO_FIN_NEXT = Seleccion finalizada. El siguiente mapa sera %s CHOSE_EXT = %s Seleccion prolongada. X_CHOSE_X = %s elegir %s CHOOSE_NEXTM = AMX Elegir Mapa EXTED_MAP = Extender mapa %s TIME_CHOOSE = Es hora de elegir el proximo mapa... ALEADY_VOTING = Votando mapa... VOT_NOT_ALLOWED = Votacion no permitida en este momento VOTING_STARTED = Comienza la votacion. esperar un momento... Only 1 KARMA please .., thx sorry my English |
Re: Mapchooser4
Thank You, guys, for help with translations. It will be included for the next version (I need to fix one bug it was in default mapchooser - it may affect also mpachooser4) and someone asked me to add some features from AMX ' default mapchooser. I hope during 3 weeks I'll find some time to work on it and finish.
About that thing with 2 or more hostnames - sometimes hostname contains some illegal characters (they cannot be placed in the filename or folder name), so You may need to look in my Record Demo plugin (somewhere in Approved) how it's solved the problem with some strange characters contained by user's name. If You do it so - and You will post the correct way to solve the problem - I can include that Your patch. |
Re: correct patch?
1 Attachment(s)
Patch for more HLDS's from one Directory (I hope this will be correct way ;) )
Search Code:
new Float:amx_ext_count = 0.0Code:
new hostname[64]Code:
get_configsdir(g_maphistFile,63)Code:
get_cvar_string("hostname",hostname,63)Code:
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)Code:
format(g_maphistFile, 63, "%s/mapchooser/%s",g_maphistFile,hostname) |
Re: Mapchooser4
Quote:
I use standart CVARS except amx_use_mapcycle, i set up amx_use_mapcycle 1. maps.ini is fine, played maps are written to file. But still if I play for example awp_shapa, then i play 2 other maps, and then awp_shapa is in the votemap menu :( Dont know where is the catch.. |
Re: Mapchooser4
The first item in the menu is the nextmap from Your mapcycle. Probably that's the reason why it appears sometimes for You. It may happen also if the mapcycle is too short (less than 10 maps).
|
Re: Mapchooser4
I have 23 maps in mapcycle, maybe it is the first thing.. I will watch if repeately map is 1st in map menu...
|
Slovak Translation
Slovak Translation:
[sk] CHO_FIN_EXT_T = = Volba ukoncena. Tato mapa zostane dalsich %.0f minut CHO_FIN_EXT_R = = Volba ukoncena. Tato mapa zostane dalsich %.0f kol CHO_FIN_EXT_W = = Volba ukoncena. Tato mapa zostane dalsich %.0f vyhier CHO_FIN_EXT_HMT = Vote: Map %s bude pokracovat dalsich %.0f minut CHO_FIN_NEXT = Volba ukoncena. Dalsia mapa bude %s CHOSE_EXT = %s volil predlzenie sucasnej mapy X_CHOSE_X = %s volil %s CHOOSE_NEXTM = Zvol si dalsi mapu EXTED_MAP = Predluzuje mapu %s TIME_CHOOSE = Je cas volit dalsiu mapy... ALEADY_VOTING = Uz prebieha ina volba... VOT_NOT_ALLOWED = Volba teraz nie je mozna VOTING_STARTED = Volba zacala. Cakajte prosim... |
Re: Mapchooser4
I've updated the plugin. The people at this forum asked me to include some functions the default AMX 2006.3 mapchooser had, so I've just translated it into AMX X. Because in that version there were some my ideas KRoT@L included into it, I think it's fair it's exactly me - I translated it for AMX X (I haven't had any chance to ask him personally about that - he stays offline since long time).
So - I believe also AMX users they migrated to AMX X they will like this version of mapchooser. Please try it and tell me about bugs You can find here. |
Re: Mapchooser4
I've tested and all seems to work fine.
But I'm testing again to be sure. |
Re: Mapchooser4
Can someone write/update the translations? Currently the only 100% supported languages are: en, pl, fr. 99% - de, bp the rest - sr, tr, sv, da, nl, es, cz, fi, ls, bg, sk - they are supported/translated about 50% only. Anyone wants to help with it? Also - if You are a migrating AMX user - You should like this plugin because it's from AMX2006.3 (translated into AMX X).
|
Re: Mapchooser4
Hello!
Could anyone modify this plugin, so that nextmap from mapcycle would not appear in vote at all (so that ALL maps in vote were randomly choosen)? thank You in advance. Regards Borys |
Re: Mapchooser4
Quote:
Also, read the cvars in first post. |
Re: Mapchooser4
ok. ignore my last post :D i have been using previos version of this plugin :D new version seems to be working fine :D
:D |
Re: Mapchooser4
could you add a "rockthevote" feature?
|
Re: Mapchooser4
Completed german translation. Also fixed one or two grammar mistakes
Code:
[de] |
Re: Mapchooser4
Quote:
|
Re: Mapchooser4
not sure that would do it? (correct if I'm wrong).
The rockthevote feature I'm looking to be added is something that allows clients to trigger the normal near end of map mapvote IF enough people rockit. |
Re: Mapchooser4
I think You need to try first ths what I told You...
|
| All times are GMT -4. The time now is 19:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.