Raised This Month: $ Target: $400
 0% 

Request: "All-In-One" Day/Time Configs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 06-23-2007 , 11:25   Re: Request: "All-In-One" Day/Time Configs
Reply With Quote #1

Just slightly revised my idea to make it manageable -

The settings in the original config files (Sun.cfg, Mon.cfg, Tue.cfg etc.) would be the "default" settings for that day.

In each of those files times can be specified, such as
"13:00" "14:59"
being 13:00-14:59 under which you can put in plugin enablings and disablings, and cvar values which all be executed/loaded during that time.
And to make it complete, add a direction to another textfile which holds a maprotation in which one could put in mapnames to be loaded during the time.

So, example of say...Mon.cfg:

hostname "Somerandomclan Pub 1 Monday blablabla"
plugin1 disabled
plugin2 disabled
cvar1 "value1"
cvar2 "value1"


"13:00" "14:59"
hostname "Somerandomclan Pub 1 Monday plugin1name"
plugin1 enabled
plugin2 disabled
cvar1 "value2"
cvar2 "value1"


"15:00" "16:59"
hostname "Somerandom clan Pub 1 Monday plugin2name"
plugin1 disabled
plugin2 enabled
cvar1 "value1"
cvar2 "value2"


The blue part would be normal usage of the config files, those settings are active at any time besides the specified times (of which the examples are in red and green).

The red part is one example of specifying a "block" of time in which different settings are loaded. The plugins part does the obvious and cvars too I suppose.

The green part is different again, with another plugin enabled (in my case that'd be a mod) and the other disabled, and cvars with yet different values.

As for the maps, they would be in another folder, but again with file names such as Sun.cfg, Mon.cfg etc.
So continuing with Mon.cfg in the MAPS folder part of the configuration plugin:

de_dust
de_aztec
de_train
cs_italy
cs_militia
cs_office


"13:00" "14:59"
de_dust_cz
de_aztec_cz
de_train_cz
cs_italy_cz
cs_militia_cz
cs_office_cz


"15:00" "16:59"
helms_deep_ag
de_simpsons
de_wallmart
starwars
cs_bigcity
awp_duckhunt

To make it more understandable: the coloured sections here correspond with those above which are in the other config files. Blue corresponds to the "default" settings of that day, so "normally" those 6 non-custom/non_cz maps would be played.
From 13:00 to 14:59 de _cz versions of those maps would make up the maprotation, and from 15:00 to 16:59 some custom maps would be rotated instead.

Ofcourse, keep in mind that plugin1, value1, cvar1 etc. are all just gibberish examples of whatever one may put in.

That's about it really. Sorry if I'm overloading you with info and details and stuff, but this plugin would suit my request/serverneeds perfectly, again, eternal gratitude for +karma for making this =]

For reference, here's the link to the Daily Configs plugin: http://forums.alliedmods.net/showthread.php?p=105108

Last edited by BlackMilk; 06-23-2007 at 11:28.
BlackMilk is offline
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 09:22.


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