Raised This Month: $32 Target: $400
 8% 

maplist.cfg load


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 04-14-2012 , 06:07   maplist.cfg load
Reply With Quote #1

When does maplist.cfg from /sourcemod/configs catalogue is being loaded?
Once, on map start?

Is it possible to make it load more than once? Maybe creating a command?
__________________
MindeLT is offline
Send a message via Skype™ to MindeLT
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-14-2012 , 07:03   Re: maplist.cfg load
Reply With Quote #2

Do you mean maplists.cfg ?
That is only config for SM plugins what use ReadMapList.
Depend about plugins, when start/often read.

Last edited by Bacardi; 04-14-2012 at 07:04.
Bacardi is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 04-14-2012 , 13:24   Re: maplist.cfg load
Reply With Quote #3

I've made a plugin, which counts players and chooses mapcycle file, depending of the players in server.
The problem is, that maplist for mapchooser, nominations is beeing generated only once per map. I need to update mapchoosers/nominates maplist every time, player count changes. For example, if there is 5 players in game with generated mapcycle of small maps and then during the game player count raises to 15, mapchooser/nominations will have the same small maps list, until next map loads. Then the new maplist will be generated. If i get it right ReadMapList, will not effect already generated map list?

So, this plugin, is actually pointless.
__________________

Last edited by MindeLT; 04-14-2012 at 13:27.
MindeLT is offline
Send a message via Skype™ to MindeLT
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 04-16-2012 , 14:23   Re: maplist.cfg load
Reply With Quote #4

Any suggestions at all? (facepalm)
__________________
MindeLT is offline
Send a message via Skype™ to MindeLT
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-17-2012 , 17:15   Re: maplist.cfg load
Reply With Quote #5

Quote:
Originally Posted by MindeLT View Post
I've made a plugin, which counts players and chooses mapcycle file, depending of the players in server.
The problem is, that maplist for mapchooser, nominations is beeing generated only once per map. I need to update mapchoosers/nominates maplist every time, player count changes. For example, if there is 5 players in game with generated mapcycle of small maps and then during the game player count raises to 15, mapchooser/nominations will have the same small maps list, until next map loads. Then the new maplist will be generated. If i get it right ReadMapList, will not effect already generated map list?

So, this plugin, is actually pointless.
Rather than writing your own, have you considered using Ultimate Map Chooser with its Player Limits module installed?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

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:50.


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