Raised This Month: $ Target: $400
 0% 

Map Size Picker


Post New Thread Reply   
 
Thread Tools Display Modes
fdanialex
New Member
Join Date: Jun 2008
Old 06-07-2008 , 20:30   Re: Map Size Picker
Reply With Quote #41

Hi guys, i took barkli fixed version and added some of my personal touch...

Now the plugin is only active when there are no admins with amx_map access on the server.

It finds amx_map command flag and checks if any player has that flag. Then if no admin with that flag is on atm fires the player count checks and vote if required.

This works great with mapchooser4

http://forums.alliedmods.net/showthread.php?p=392625

You can test this on my server at cs.magnum9mm.ro:27015.

Great plugin KobraPL thanks, and also thanks barkli for the fix.
Attached Files
File Type: sma Get Plugin or Get Source (msp.sma - 796 views - 11.4 KB)
fdanialex is offline
eddiesomesan
Member
Join Date: Oct 2007
Location: Romania
Old 01-03-2009 , 03:47   Re: Map Size Picker
Reply With Quote #42

Great plugin but i have some problems:
First, a runtime error which appears only when the server is empty:

L 01/03/2009 - 09:57:01: Info (map "fy_snow") (file "addons/amxmodx/logs/error_20090103.log")
L 01/03/2009 - 09:57:01: [AMXX] Displaying debug trace (plugin "msp.amxx")
L 01/03/2009 - 09:57:01: [AMXX] Run time error 4: index out of bounds
L 01/03/2009 - 09:57:01: [AMXX] [0] 27475.attach::checkmsp (line 266)
L 01/03/2009 - 09:57:01: [AMXX] [1] 27475.attach::checkIfAdmins (line 132)

And the second, which appears if at least one player is on the server, and which is not an error but it`s not a good thing:

L 01/03/2009 - 10:42:55: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:42:56: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:42:58: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:00: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:02: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:04: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:06: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:08: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:10: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:12: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:14: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:16: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:18: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:20: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:22: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:24: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:26: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:28: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:430: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:432: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:432: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:434: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:436: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:438: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:40: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:42: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:44: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:46: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:48: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:50: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:52: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:54: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:56: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:43:58: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:44:00: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:44:02: [msp.amxx] Mapa: awp_map Found: 9
L 01/03/2009 - 10:44:02: [msp.amxx] Mapa: awp_map Found: 9
This is just a small part of the log. it seems to me that the ckecking is done too often, sometimes every second or even twice a second. And this is not a very good thing considering all the other tasks the processing unit have to do.
The number "Found x" represents the number of maps in msp.ini which are before the given map. In my exemple, awp_map is the tenth map in msp.ini from config folder.

And something else. Can someone modify this so that nextmap chooser work, and be active even. in there is an admin online?

Last edited by eddiesomesan; 01-09-2009 at 04:29.
eddiesomesan is offline
Send a message via Yahoo to eddiesomesan
eddiesomesan
Member
Join Date: Oct 2007
Location: Romania
Old 02-04-2009 , 14:25   Re: Map Size Picker
Reply With Quote #43

Can`t anybody help with that index out of bounds error?
eddiesomesan is offline
Send a message via Yahoo to eddiesomesan
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 08-31-2009 , 09:55   Re: Map Size Picker
Reply With Quote #44

will see in this week ;)
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
PauliusBa
Senior Member
Join Date: Aug 2006
Location: Lithuania
Old 08-31-2009 , 11:40   Re: Map Size Picker
Reply With Quote #45

Is it possible to modify it so it would work with Galileo?

I also don't want any hud message when current map is not defined in the file.

It should only run amx_startvote command in case current player count is wrong for current map.
PauliusBa is offline
PauliusBa
Senior Member
Join Date: Aug 2006
Location: Lithuania
Old 12-18-2009 , 11:26   Re: Map Size Picker
Reply With Quote #46

Bump?
PauliusBa is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 02-25-2010 , 11:17   Re: Map Size Picker
Reply With Quote #47

Am I right if I change: time=60/(g_playerCount-g_mspCurrentMapMax)-timeElapsed

For example, countdown time is 4 minutes, I will set time=240/(gplayer ....
ditmesteam is offline
Old 05-17-2010, 21:43
The^Answer
This message has been deleted by The^Answer. Reason: wrong section
The^Answer
New Member
Join Date: May 2010
Old 05-18-2010 , 00:09   Re: Map Size Picker
Reply With Quote #48

Quote:
Originally Posted by sasdad View Post
I don't know what I'm doing wrong, but everything looks good till when the menu witch choosing maps come up. Because there are no maps to choose from. Does anyone have the same problem?
I have the same problem, and the msp.ini is in the right folder and I have more than 6 maps in it also there is no other enter (line) after it...


this is what I have in my msp.ini

Code:
de_inferno 7 20
de_aztec 8 20
de_nuke 8 20
de_cbble 8 20
de_dust2 5 20
cs_italy 6 20
de_train 9 20
cs_office 5 20
de_piranesi 9 20
de_office_lethal 7 20
aim_ak_colt 1 6
aim_headshot 1 4
de_2minaret 10 20
de_aisle 10 20
de_clan4_stone 8 20
de_cpl_fire 6 16
de_dust2_india 6 20
de_cpl_bomb2 6 18
de_dust4ever 6 20
de_dust_castle 6 16
de_dust2002 8 20
de_dust_pcg_b19 8 20
de_indust 8 20
de_korfez32 6 16
de_nuke2010 10 20
The^Answer is offline
pizzavesel
Member
Join Date: Dec 2008
Location: Romania
Old 01-03-2011 , 20:55   Re: Map Size Picker
Reply With Quote #49

How to change timer for vote, the vote for player limit and the vote for end of map ? Or u cand add a cvar or somthing?
pizzavesel is offline
Send a message via Yahoo to pizzavesel Send a message via Skype™ to pizzavesel
tomy91
Member
Join Date: Jun 2006
Location: Latvia
Old 05-07-2011 , 07:03   Re: Map Size Picker
Reply With Quote #50

Does anyone know how to disable voting? I'm hosting de_dust2 only server, and want to use this plugin, so when there are players 0-8, the map is de_dust2_2x2 and when there's more than 8 players, it switches to de_dust2. But how to disable vote for this plugin, there's a line in .sma
Code:
// Remove this if You don't want MSP to show vote at the end of map time.
, but don't know which one(s) to remove.
__________________
tomy91 is offline
Send a message via Skype™ to tomy91
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode