Want to switch between elimination and GG5

Discussion about Included Addons

Want to switch between elimination and GG5

Postby EastwooD- » Wed Jan 20, 2010 9:12 am

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-
EastwooD-

Private
Private
User avatar
 
Posts: 5
Joined: Wed Jan 20, 2010 9:02 am

Re: Want to switch between elimination and GG5

Postby pyro » Thu Jan 21, 2010 3:03 am

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
es_reload gungame


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 :)
Attachments
gg_deathmatch_addons.rar
(3.62 KiB) Downloaded 939 times
gg_elimination_addons.rar
(3.63 KiB) Downloaded 913 times
pyro

Private 1st Class
Private 1st Class
User avatar
 
Posts: 181
Joined: Wed Nov 04, 2009 1:26 pm
Location: Melbourne, Australia
Xfire Name: pyromaniac771

Re: Want to switch between elimination and GG5

Postby Rio » Thu Jan 21, 2010 7:08 am

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.
Rio

Private
Private
 
Posts: 5
Joined: Thu Jan 21, 2010 7:02 am
Steam Friends Name: Ri_Ri_Thomas

Postby EastwooD- » Thu Jan 21, 2010 4:59 pm

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-
EastwooD-

Private
Private
User avatar
 
Posts: 5
Joined: Wed Jan 20, 2010 9:02 am

Postby Warren » Thu Jan 21, 2010 7:25 pm

I'm pretty sure that Mani has cron jobs, which you can schedule to make these changes (just like the mani rcon commands).
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby pyro » Fri Jan 22, 2010 12:18 am

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.
pyro

Private 1st Class
Private 1st Class
User avatar
 
Posts: 181
Joined: Wed Nov 04, 2009 1:26 pm
Location: Melbourne, Australia
Xfire Name: pyromaniac771

Re: Want to switch between elimination and GG5

Postby EastwooD- » Fri Jan 22, 2010 4:35 am

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-
EastwooD-

Private
Private
User avatar
 
Posts: 5
Joined: Wed Jan 20, 2010 9:02 am

Postby pyro » Fri Jan 22, 2010 4:59 am

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.
pyro

Private 1st Class
Private 1st Class
User avatar
 
Posts: 181
Joined: Wed Nov 04, 2009 1:26 pm
Location: Melbourne, Australia
Xfire Name: pyromaniac771

Re: Want to switch between elimination and GG5

Postby pyro » Fri Jan 22, 2010 5:13 am

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.
Last edited by pyro on Fri Jan 22, 2010 8:05 am, edited 1 time in total.
pyro

Private 1st Class
Private 1st Class
User avatar
 
Posts: 181
Joined: Wed Nov 04, 2009 1:26 pm
Location: Melbourne, Australia
Xfire Name: pyromaniac771

Postby EastwooD- » Fri Jan 22, 2010 7:24 am

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-
EastwooD-

Private
Private
User avatar
 
Posts: 5
Joined: Wed Jan 20, 2010 9:02 am

Postby pyro » Sun Jan 24, 2010 11:38 pm

hi EastwooD,

How did it go?
Have you had any issues?

Regards,
Aaron
pyro

Private 1st Class
Private 1st Class
User avatar
 
Posts: 181
Joined: Wed Nov 04, 2009 1:26 pm
Location: Melbourne, Australia
Xfire Name: pyromaniac771

Postby EastwooD- » Tue Jan 26, 2010 7:34 am

Sorry been away, but ya it worked like a charm!!
EastwooD-

Private
Private
User avatar
 
Posts: 5
Joined: Wed Jan 20, 2010 9:02 am



Return to Included Addons

Who is online

Users browsing this forum: No registered users and 1 guest

cron