View Full Version : Nextmap Chooser
h0_noMan
09-17-2008, 08:00 PM
Hi all.
I ever wanted a nextmap chooser that works with a separate file (not with the maps.ini) and will always propose an equilibrated vote. (A vote with always 1 or 2 good maps)
This plugin use category in the maps file and you can choose the order and the place of the maps in the menu.
MAPS_EXT.INI : (just an example)
[BEST]
dod_lennon_b2
dod_harrington
dod_donner
dod_calais
[GOOD]
dod_aleutian
dod_avalanche
dod_anduze
[MID]
dod_belgium
dod_risk
[LOW]
dod_legoland
dod_sexy
With this maps file and the actual configuration of my plugin, you will ever have a BEST maps in the position 1 and 2 of the vote. Then a GOOD map in position 3, a MIDDLE map in position 4 and a LOW map in the last position.
The vote will be shown 3 minutes before the end of the map.
For testing my plugin, you must comment the original mapchooser plugin.
Thanks for helping me to improve it.
PS : I am french, so my comment are not well chosen.
I am also a beginer, it is my second AMXX plugin.
V1.10 Changes:
- Text can be changed in the #define
- The vote Order now contains categories name instead of numbers
- I added 2 CVARs (amx_extendmap_max + amx_extendmap_step)
- 2 New command ("say currentmap" + "say lastmap")
V1.11 Change:
- Fixed a bug (Menu was not shown after an extend)
V1.12 Change:
- Fixed a bug (lastmap was not working)
V1.20 Change:
- Added an in-game menu that allow admin to modify the future nextmap Vote
V1.21 Change:
- Fixed a bug in the Menu
V1.30 Change:
- Added a new option to the in-game menu to add the possibility to make a vote of Type 2
- Type 2 is a vote with a new vote Order
As I'm a beginner writing plugins as well I can only say good job. I would like to point out when you upload a plugin, you should upload the *.sma file, not the amxx. People can compile the plugin themselfs through local compiling method or using the online compiler.
The reason why you can't upload the *.amxx file is because people with bad intentions might place a redirect to their own server for example. Thats why dodplugins.net has a general rule that only *.sma files may be uploaded (the only exception I know of is dod block exploits but thats for a good reason).
I wish you good luck with this and other plugins in the future. Keep them coming I would say.
h0_noMan
09-17-2008, 09:58 PM
As I'm a beginner writing plugins as well I can only say good job. I would like to point out when you upload a plugin, you should upload the *.sma file, not the amxx. People can compile the plugin themselfs through local compiling method or using the online compiler.
It was a mistake.
I wanted to upload both of .sma and .amxx but only the .amxx was uploaded.
Thanks.
Im not sure if having an amxx file uploaded in your thread is according the rules, I believe not but you will have to wait for one of the admins/developers/other senior members to give the answer on that question.
But leaving an amxx file has no use these days. If you roam these forums you notice not everyone is using amxmodx 1.81, most of them are still using 1.80 and some of them even use 1.76 (or was it 1.67). So they will need to compile it for their own version anyways.
Just looked at the source, for being this your second plugin, hats off...half of the things I've never seen before. I guess it's time I started continueing learning scripting as well.
h0_noMan
09-18-2008, 10:48 AM
I made some quickly change.
- Text can be changed in the #define
- The vote Order now contains categories name instead of numbers
- I added 2 CVARs (amx_extendmap_max + amx_extendmap_step)
- 2 New command ("say currentmap" + "say lastmap")
Since your coding skill is way more evolved then mine is see this as a hint, nothing more, nothing less. Perhaps adding a version history would be a good advice to include in your plugin. People can then see plugins are being improved and what the improvements are.
Again, great job.
=|[76AD]|= TatsuSaisei
09-19-2008, 03:40 PM
the posting of an .amxx file is OPTIONAL, but NOT against the rules IF the source code is also provided.
Downloading a pre-compiled .amxx from ANYWHERE poses the risk of malicious behaviour and should be avoided ... technically according to the AMXX and GNU "rules" you must ALWAYS provide the source code, EXCEPT for "approved" plugins which fall into the criteria of "needing" to keep the source code hidden (contains code which someone should normally not be privvy) dod_exploits is a perfect example because it "detects" exploitable behavior and anyone who were to read that source code would then be aware of ways to negatively exploit the game ...
It is generally a "courtesy" when people provide the compiled version of the plugin in the form of an .amxx file, but the original issue still remains .. once a plugin is compiled you have no idea what code was used to compile it, even if the source code was posted right along side of it. You also do not necessarily know which "version" of the AMXX compiler was used if not specifically identified and this too can pose a problem as there are more then a handful of versions still in use today (some people fear "updating")
In the end, always download the source code and learn to compile the file yourself as that is the only way to trully avoid malicious code (though not reading the source and still compiling can still "compromise" your system)
There are plenty of documents and tutorials on how to compile the code, and online compilers are available as well for those who do not want to deal with doing it using command-line or an IDE
Ok, my apologies for falsely informing you. I guess I am the one who needs to do some reading prior to blurring out information which is not accurate.
Akula
10-16-2008, 09:25 AM
On the subjects of maps guys is there any way the size of the mapcycle.txt can be increased to hold more than 32 maps ??
Is there a command that limits this ??
Somewhat off topic and not related to this plugin...I never knew mapcycle.txt had a limit, you might want to try maps.ini in addons/amxmodx/configs/maps.ini and see what it's limit is.
Ba5ic
10-26-2008, 05:56 AM
I think its more to do with the server being able to cope with 32+ players, but i could be wrong - usually am :)
TigerMan4
05-16-2009, 12:18 AM
I just loaded this plugin on my server...i`m waiting for the map to change to see if it works.
I have had a fit with custom map plugins ( deags map manager ) and so on , they run fine , but everytime I load one of them , it changes my map time to 3 minutes and the map changes right after you get in the server, a vote is up and the map is changing.
so I hope this one works better , or works period.
I want to make sure I did this right.
map choose is commented out
; Map related
nextmap.amxx ; displays next map in mapcycle
;mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
mapchooser_ext.amxx is added to plugins.ini and the file is in the plugins folder.
MAPS_EXT I created this file and put it in my .configs folder in amxmox , with the maps in it like your sample.
and I added these 2 cvars to my server.cfg
amx_extendmap_max 15
amx_extendmap_step 5
now I`m just waiting to see what happens when the map changes.
TigerMan4
05-16-2009, 12:20 AM
Nextmap Chooser E 1.30 h0_noMan mapchooser_ext. running
and there is 35 minutes left to go on the new map !
SWEET !
now if the map choice comes up it will rock !
souismtwi
10-21-2009, 06:48 AM
Hope everyone is doing well. I'm going to read through a ton of old posts now so I can catch up on what's going on around here.
__________________
Sonnerie portable gratuit mp3 - (http://sonnerieportablegratuit.com)Sonneries portable pour mobile - (http://sonnerieportablegratuit.com)Telecharger sonneries portables gratuites (http://sonnerieportablegratuit.com/sonnerie-portable-gratuit/)
TigerMan4
10-21-2009, 09:21 AM
I cannot get a map chooser to work at all.
I did everything they say , everything , everyone has said , and the same thing happens every time.
it works , but as soon as I enable them , i have 3 minutes left on the map , the vote is done before you can get in the server or even to the next map , and it just keeps running 2 to 3 minute map times , with a vote enabled immediately at the start of the map...it sucks.
noddy
10-21-2009, 09:54 PM
I use galileo for map choice but from your comments this problem that you are having occurs no matter which plugin you use. This suggests that it is not the plugin at fault but something else. Have you looked through your amxx.cfg and your server.cfg for mp_timelimit or do you have individual map cfgs that might contain mp_timelimit of 3 ?
TigerMan4
10-21-2009, 10:06 PM
all individual map.cfgs are empty , server.cfg says mp_timelimit 35
server runs fine and dandy until I turn on the map chooser and then it acts up, as stated.
I dont know if I tried galileo , I tried all the ones made by deegs , and none of them worked.
the crazy thing is ,they worked great until my server died and gameservers had to reinstal my entire server ( their hd failed ) and I lost everything , I re-installed everything and all the plugins worked , except the map manager...
..... Have you looked through your amxx.cfg and your server.cfg for mp_timelimit ....
Tigerman check that amxx.cfg. If you dont find anything make a new thread about this i "Help" and attach server.cfg, amxx.cfg and the plugin you wanna use. This is not related to this plugin.
- Cheers
noddy
10-22-2009, 12:43 PM
LOL
I never thought to use a font that size ;)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.