Raised This Month: $12 Target: $400
 3% 

[ANY] Server Crontab


Post New Thread Reply   
 
Thread Tools Display Modes
Falco
SourceMod Donor
Join Date: Dec 2004
Location: CANADA
Old 08-31-2007 , 03:11   Re: Basic Server Crontab
Reply With Quote #21

Quote:
Originally Posted by dubbeh View Post
yeah, that would work fine falco
Excellent, Thanks for the plugin. Another question, you would put the mapcyclefile in the cstrike folder?
Quote:
// Set the map rotation to aimmaps.txt everyday at 6am
* 6 0 "mapcyclefile aimmaps.txt"

// Set the map rotation to normal.txt everyday at 7pm
* 19 0 "mapcyclefile normal.txt"
__________________
[DmZ|EPSILON CSS 70.75.139.92:27016
[DmZ|EPSILON GG 70.75.167.30:27015
[DmZ|EPSILON CS:GO Classic Casual 70.75.139.92:27013
[DmZ|EPSILON CS:GO Demolition 70.75.139.92:27014
[DmZ|EPSILON BF3 69.46.43.221:25203 (8-slot) Practice Server
www.dmzepsilon.ca
----------------------

Last edited by Falco; 08-31-2007 at 03:14.
Falco is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-31-2007 , 03:54   Re: Basic Server Crontab
Reply With Quote #22

I'm sure the mapcycle file is read from the default mod folder ;)

edit.
on another note put up the latest module - fixed a few bugs with the arrays & renamed/added a few more natives ;)

Working on the main frontend atm, new supported commands will be:

bsc_addjob weekday hour minute "cronjob" - Add a new cron job
bsc_removejob cron_id - Remove the cron job using the cron id
bsc_removealljobs - Remove all the current cron jobs
bsc_printjobs - Prints all the current cron jobs & Id's
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 08-31-2007 at 04:14.
dubbeh is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-01-2007 , 02:02   Re: Basic Server Crontab
Reply With Quote #23

Plugin updated to v1.0.0.0

Now module based & allows other plugin authors to add/remove their own cronjobs ;)

Learnt quite a alot of new things from rewriting this plugin to be module based
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
GCFaith
Junior Member
Join Date: Jun 2007
Location: Rotterdam, The Netherlan
Old 09-04-2007 , 19:24   Re: Basic Server Crontab
Reply With Quote #24

This is a suggestion/idea.
Situation:
Unfortunately we have been facing a lot of crashes in the last few weeks. Just to put you at ease it wasnt BSC ;)
What happened was that it would load the different mapcycle for the time of the day, but after a crash would just go back to its old mapcycle.

Suggestion: Have the cron apply for a period and let it check back with every map switch.

Say mapcycle1 applies from 12:00 till 23:00 when the server crashes and reboots the cron checks what time it is makes sure mapcycle1 is stil the mapcycle in use.

Its an idea and dont know if its possible, but would be sweet.
__________________
www.steamfriends.com
Built on Communities! For All Your Steam Resources.

www.sourcebans.net
Advanced Ban Management for the Source engine.
GCFaith is offline
1695
Senior Member
Join Date: Jan 2006
Old 09-05-2007 , 05:58   Re: Basic Server Crontab
Reply With Quote #25

Is there a timer execution feature ? Like exec "mp_friendlyfire 1" 5 minute after mapchange on every maps...
1695 is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-05-2007 , 09:24   Re: Basic Server Crontab
Reply With Quote #26

I'll look into these features for the next release, might rename the plugin to server crontab after these requests have been fulfilled

Will make the plugin more like a nomal server crontab with basic & more advanced features - the next update might take me quite some time with a few parts of the plugin needing quite a big recode
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-13-2007 , 10:27   Re: Basic Server Crontab
Reply With Quote #27

Released version 1.0.1.0

Code:
- Plugin renamed from Basic Server Crontab to Server Crontab
- Rewritten/Changed some parts of code to support job start & end times
The syntax for adding jobs has changed a little bit to support job start & end times
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 01-06-2008 , 16:32   Re: Server Crontab
Reply With Quote #28

Getting an error :

Code:
L 01/06/2008 - 19:25:06: SourceMod error session started
L 01/06/2008 - 19:25:06: Info (map "cp_dustbowl") (file "errors_20080106.log")
L 01/06/2008 - 19:25:06: [SM] Native "CloseHandle" reported: Handle b400b3 is invalid (error 3)
L 01/06/2008 - 19:25:06: [SM] Debug mode is not enabled for "sc_module.smx"
L 01/06/2008 - 19:25:06: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug -1 on
L 01/06/2008 - 19:25:06: Error log file session closed.
__________________

Last edited by Extreme_One; 01-06-2008 at 19:00.
Extreme_One is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 01-26-2008 , 19:06   Re: Server Crontab
Reply With Quote #29

Quote:
Originally Posted by Extreme_One View Post
Getting an error :

Code:
L 01/06/2008 - 19:25:06: SourceMod error session started
L 01/06/2008 - 19:25:06: Info (map "cp_dustbowl") (file "errors_20080106.log")
L 01/06/2008 - 19:25:06: [SM] Native "CloseHandle" reported: Handle b400b3 is invalid (error 3)
L 01/06/2008 - 19:25:06: [SM] Debug mode is not enabled for "sc_module.smx"
L 01/06/2008 - 19:25:06: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug -1 on
L 01/06/2008 - 19:25:06: Error log file session closed.
I've got the same with CS:S, looked at the code and had no idea why it was complaining about it

SM: 1.0.0.1858

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 01-30-2008 , 04:11   Re: Server Crontab
Reply With Quote #30

I posted a thread in the scripting forum here http://forums.alliedmods.net/showthread.php?t=66354 it appears by removing the killtimer function above the line which errors out, it works again.

I have attached the files which I know work on SM ver 1858 or newer!!

Matt
Attached Files
File Type: sp Get Plugin or Get Source (sc.sp - 238 views - 6.7 KB)
File Type: smx sc.smx (3.7 KB, 275 views)
File Type: sp Get Plugin or Get Source (sc_module.sp - 237 views - 10.1 KB)
File Type: smx sc_module.smx (4.9 KB, 258 views)
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
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 04:51.


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