Page 1 of 1
Want to switch between elimination and GG5
Posted:
Wed Jan 20, 2010 9:12 am
by EastwooD-
Heres what i am wanting to do During the week (monday-friday,sunday) run gg5, on saturday have it switch to gg5 elimination automatically for a fun day. I would like it to do this normaly. I just wasnt sure if this is something that is handled by gg5 or if it was mani or event scripts. Im not a scripter so any help would be great. And if im in the wrong place please tell me so.
Thank you,
EastwooD-
Re: Want to switch between elimination and GG5
Posted:
Thu Jan 21, 2010 3:03 am
by pyro
Iv'e managed to script up some configs that would allow you to change the server when in game from gg_elimination to gg_deathmatch to normal gungame, however when you enable the .cfg it will load when the round is over. When you want to go back to normal gungame just use
So to add these files to your server just download and unzip the below files, located at the bottom of this post;
gg_elimination_addon.rar
gg_deathmatch_addon.rar
Then copy these files to the below directory;
Then add these commands to your rconlist.txt file
"DeathMatch Mode" exec gg_deathmatch_addon.cfg // Enable Deathmatch
"Elimination Mode" exec gg_elimination_addon.cfg // Enable Elimination
You can find the rconlist.txt file in the following directory;
cstrike/cfg/mani_admin_plugin/
I hope this helps, i am yet to find a way to have it auto change as per what you want but this is a start
Re: Want to switch between elimination and GG5
Posted:
Thu Jan 21, 2010 7:08 am
by Rio
Hey Eastwood,
Although this may seem like a very simple thing to do, it is actually very complicated.
The simplest way is to follow what Pyro mentioned earlier, and use rcon commands to change it manually. Otherwise, a script would need to be written to query the server for the local time, and then run off of that. However, I don't think this is specifically a gungame thing, and would be better handled by the people over at the Eventscripts forum.
Post your problem there and you should get a fast response.
Cheers,
Rio.
Posted:
Thu Jan 21, 2010 4:59 pm
by EastwooD-
Ok thank you,
I realized it wasnt going to be easy thats the reason i came here. I just wasnt sure if there was a way that gg5 could handle this on its own.
Thank you for the help as what i read is what i thought had to happen. I have made threads in eventscripts and in the mani forum i will post back here if i get anything.
EastwooD-
Posted:
Thu Jan 21, 2010 7:25 pm
by Warren
I'm pretty sure that Mani has cron jobs, which you can schedule to make these changes (just like the mani rcon commands).
Posted:
Fri Jan 22, 2010 12:18 am
by pyro
I have a feeling it does as well but i cant quite pin point where it would be, ill take a look and get back to you.
Re: Want to switch between elimination and GG5
Posted:
Fri Jan 22, 2010 4:35 am
by EastwooD-
i know this isnt the place to post this but since you guys have been suck great help i thought i might ask more of you and give me a hand understanding the cron jobs better? If i understand this right with cron jobs in mani i can set the day and time (i got that part) what im have a problem with is the config files, So from what i have gathered from what little the explain is that i could make a new config file and have it execute that file. now the question that has plagued me is do i just make a config just for the gg5 side of things or would i have to go deeper than that? Am i on the right track here?
Thank you for your time,
EastwooD-
Posted:
Fri Jan 22, 2010 4:59 am
by pyro
My understanding of it is that you would have a completly new config file or two that would incorporate your server settings as per your mani cron jobs.
Ill look into it further and see what i can do.
Re: Want to switch between elimination and GG5
Posted:
Fri Jan 22, 2010 5:13 am
by pyro
Ok there is a command in mani called crontablist.txt please see the file i posted in below;
//
// crontablist.txt
//
// Place all your server commands that you want
// executed at the start of each map during
// specified times of particular days
//
// The first field defines the days of the week
// that the command will be run. If the field
// is left as "" the command will be run every day of the week
//
// Days of the week are
//
// 1 = Sunday
// 2 = Monday
// 3 = Tuesday
// 4 = Wednesday
// 5 = Thursday
// 6 = Friday
// 7 = Saturday
//
// To have a command run on Tuesday and Friday use
// the day string
//
// "36"
//
// For Monday, Wednesday and Saturday use: -
//
// "247"
//
// The second field defines the time of day that
// the server should run the command and is setup
// in the following format "HH:MI-HH:MI"
//
// Start time to End time
//
// "09:30-14:10"
//
// The above time range is from 9.30am to 2:10pm. The time
// format MUST be in military 24 hour style, any hours below 10:00 must
// start with a preceeding 0 as in 01:00, 02:00, 03:00, you must
// not use 1:10 for instance.
//
// The third field instructs the server the command
// to run at the start of each map during that time
// period. For example
//
// "" "09:30-15:10" exec daytime_config.cfg
//
// The above line will run the command 'exec daytime_config.cfg'
// on the start of each map during the time period 09.30 upto and
// including 15:10 for every day of the week.
// If you only wanted it to run on Monday, Wednesday and Friday
// the line would look like
//
// "246" "09:30-15:10" exec daytime_config.cfg
//
// The default configuration is to run your command before
// any custom map config is run (see map_configs folder)
//
// If you place a # symbol before the server command it will
// be run after any custom map config is exectuted.
//
// "" "19:00-21:59" #sv_gravity 800
//
// The above command will be run from 19:00 to and including
// 21:59 each time a map starts but after any custom map configs.
// In this case if you have a low grav map that uses a custom map
// config to set sv_gravity to say 150. The above command will
// override that setting.
//
// You can have as many entries in this file as you wish.
//
"123456" "00:01-23:59" exec server.cfg
"7" "00:01-23:59" exec gg_elimination_addons.cfg
NOTE: Im not too familer with 24 hour clock so can someone please correct me if im wrong.
Your server.cfg should be the normal GunGame5 config that you would use.
Now with the config i send through earlier in this post you should be able to put that in your cfg folder located in; (Please see example below)
cstrike/cfg/gg_elimination_addon.cfg
Let me know how this goes and if you need any further assistance.
Posted:
Fri Jan 22, 2010 7:24 am
by EastwooD-
That is what i was thinking too with the cron i will give this a shot this weekend and see what happens!! I will post back with what happens so if others would like to do this they can learn from what you have helped me with, and again pyro thank you i was stumped on this problem and you guys where the only ones willing to help out!!
Thanks,
EastwooD-
Posted:
Sun Jan 24, 2010 11:38 pm
by pyro
hi EastwooD,
How did it go?
Have you had any issues?
Regards,
Aaron
Posted:
Tue Jan 26, 2010 7:34 am
by EastwooD-
Sorry been away, but ya it worked like a charm!!