Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Nextmap Chooser

by h0_noMan · 2008-09-17 · 18 replies · 14748 views · 122 downloads

Read the thread (19 posts)

From the first post

Hi all.
rn
rnI 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)
rn
rnThis plugin use category in the maps file and you can choose the order and the place of the maps in the menu.
rn
rnMAPS_EXT.INI : (just an example)
rn
[BEST]rndod_lennon_b2rndod_harringtonrndod_donnerrndod_calaisrnrn[GOOD]rndod_aleutianrndod_avalancherndod_anduzernrn[MID]rndod_belgiumrndod_riskrnrn[LOW]rndod_legolandrndod_sexy

rn
rnWith 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.
rn
rnThe vote will be shown 3 minutes before the end of the map.
rn
rnFor testing my plugin, you must comment the original mapchooser plugin.
rn
rnThanks for helping me to improve it.
rn
rnPS : I am french, so my comment are not well chosen.
rnI am also a beginer, it is my second AMXX plugin.
rn
rnV1.10 Changes:
rn- Text can be changed in the #define
rn- The vote Order now contains categories name instead of numbers
rn- I added 2 CVARs (amx_extendmap_max + amx_extendmap_step)
rn- 2 New command ("say currentmap" + "say lastmap")
rn
rnV1.11 Change:
rn- Fixed a bug (Menu was not shown after an extend)
rn
rnV1.12 Change:
rn- Fixed a bug (lastmap was not working)
rn
rnV1.20 Change:
rn- Added an in-game menu that allow admin to modify the future nextmap Vote
rn
rnV1.21 Change:
rn- Fixed a bug in the Menu
rn
rnV1.30 Change:
rn- Added a new option to the in-game menu to add the possibility to make a vote of Type 2
rn- Type 2 is a vote with a new vote Order

Files

mapchooser_ext.sma v1.30 18 KB 122 dl Download Compile

The thread

All 19 posts from 9 people on Nextmap Chooser, kept as they were written.

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
09-17-2008, 07:00 PM #1

Hi all.rnrnI 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)rnrnThis plugin use category in the maps file and you can choose the order and the place of the maps in the menu.rnrnMAPS_EXT.INI : (just an example)rn

[BEST]rndod_lennon_b2rndod_harringtonrndod_donnerrndod_calaisrnrn[GOOD]rndod_aleutianrndod_avalancherndod_anduzernrn[MID]rndod_belgiumrndod_riskrnrn[LOW]rndod_legolandrndod_sexy
rnrnWith 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.rnrnThe vote will be shown 3 minutes before the end of the map.rnrnFor testing my plugin, you must comment the original mapchooser plugin.rnrnThanks for helping me to improve it.rnrnPS : I am french, so my comment are not well chosen.rnI am also a beginer, it is my second AMXX plugin.rnrnV1.10 Changes:rn- Text can be changed in the #definern- The vote Order now contains categories name instead of numbersrn- I added 2 CVARs (amx_extendmap_max + amx_extendmap_step)rn- 2 New command ("say currentmap" + "say lastmap")rnrnV1.11 Change:rn- Fixed a bug (Menu was not shown after an extend)rnrnV1.12 Change:rn- Fixed a bug (lastmap was not working)rnrnV1.20 Change:rn- Added an in-game menu that allow admin to modify the future nextmap VoternrnV1.21 Change:rn- Fixed a bug in the MenurnrnV1.30 Change:rn- Added a new option to the in-game menu to add the possibility to make a vote of Type 2rn- Type 2 is a vote with a new vote Order

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
09-17-2008, 08:32 PM #2

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.rnrnThe 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).rnrnI wish you good luck with this and other plugins in the future. Keep them coming I would say.

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
09-17-2008, 08:58 PM #3
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.
rnrnIt was a mistake.rnI wanted to upload both of .sma and .amxx but only the .amxx was uploaded.rnrnThanks.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
09-17-2008, 09:35 PM #4

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.rnrnBut 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.rnrnJust 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.

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
09-18-2008, 09:48 AM #5

I made some quickly change.nn- Text can be changed in the #definen- The vote Order now contains categories name instead of numbersn- I added 2 CVARs (amx_extendmap_max + amx_extendmap_step)n- 2 New command ("say currentmap" + "say lastmap")

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
09-18-2008, 02:06 PM #6

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.rnrnAgain, great job.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
09-19-2008, 02:40 PM #7

the posting of an .amxx file is OPTIONAL, but NOT against the rules IF the source code is also provided.n nDownloading 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 ... n nIt 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")n nIn 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)n nThere 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

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
09-19-2008, 06:16 PM #8

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.

A Akula
posted here
Posts: 8
Threads: 0
Joined: Nov 2007
10-16-2008, 08:25 AM #9

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 ??rnrnIs there a command that limits this ??

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-16-2008, 08:44 AM #10

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
posted here
Posts: 181
Threads: 26
Joined: Nov 2005
10-26-2008, 04:56 AM #11

I think its more to do with the server being able to cope with 32+ players, but i could be wrong - usually am :)

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
05-15-2009, 11:18 PM #12

I just loaded this plugin on my server...i`m waiting for the map to change to see if it works.rnI 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.rnso I hope this one works better , or works period.rnrnI want to make sure I did this right.rnrnmap choose is commented outrn; Map relatedrnnextmap.amxx ; displays next map in mapcyclern;mapchooser.amxx ; allows to vote for next map rntimeleft.amxx ; displays time left on maprnrnmapchooser_ext.amxx is added to plugins.ini and the file is in the plugins folder.rnrnMAPS_EXT I created this file and put it in my .configs folder in amxmox , with the maps in it like your sample.rnrnand I added these 2 cvars to my server.cfgrnamx_extendmap_max 15rnrnamx_extendmap_step 5rnrnnow I`m just waiting to see what happens when the map changes.

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
05-15-2009, 11:20 PM #13

Nextmap Chooser E 1.30 h0_noMan mapchooser_ext. running rnrnand there is 35 minutes left to go on the new map !rnrnSWEET !rnrnnow if the map choice comes up it will rock !

S souismtwi
posted here
Posts: 1
Threads: 0
Joined: Oct 2009
10-21-2009, 05:48 AM #14

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.nnn__________________nSonnerie portable gratuit mp3 - Sonneries portable pour mobile - Telecharger sonneries portables gratuites

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
10-21-2009, 08:21 AM #15

I cannot get a map chooser to work at all.rnrnI did everything they say , everything , everyone has said , and the same thing happens every time.rnrnit 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.

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
10-21-2009, 08:54 PM #16

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
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
10-21-2009, 09:06 PM #17

all individual map.cfgs are empty , server.cfg says mp_timelimit 35rnrnserver runs fine and dandy until I turn on the map chooser and then it acts up, as stated.rnrnI dont know if I tried galileo , I tried all the ones made by deegs , and none of them worked.rnrnthe 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...

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
10-22-2009, 11:16 AM #18
..... Have you looked through your amxx.cfg and your server.cfg for mp_timelimit ....
rnrnTigerman 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.rnrnrn- Cheers

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
10-22-2009, 11:43 AM #19

LOL rnrnrnI never thought to use a font that size ;)

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC