Shutting down after a set period of time.

Place for people to discuss public servers, and also for admins to lay out the details of their servers
Post Reply
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Shutting down after a set period of time.

Post by Spazzy McGee »

how do i set the server to shut down after a set period of time.

at the moment i have

Code: Select all

-time 30
-g
to test, but when it counts down from 00:30 to 00:00, like it should - but it dosn't shutdown the server. it just stays at 0:00. is there another command for shutting down after the game? i thought it was -g?
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni »

it doesnt shut donw the server it dosent allow any one to connect i think...
Image
Sig Made By AlliedArmour

TGPH
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

Code: Select all

-time 30
is just a time limit for the game. After the countdown is on 0, the game is over. Nobody will be able to spawn and play.
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

how do you shut down the server after a game has expired then?

i'm sure there is a way to do it... for example silvercat?
or am i going to just have to make a program which logs in to bzadmin and shuts down manually?
"Life is what happens to you while you're busy making other plans." - John Lennon
JPT
Private First Class
Private First Class
Posts: 260
Joined: Tue Nov 29, 2005 1:21 pm
Location: Germany

Post by JPT »

It could be necessary to write a simple skript, which shuts down the server after the game is over.
I think you should ask silverfox directly.
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

this worked for me: no script needed.

-g

time 2000


try adding the -g over the time....just a thought.... becuase that is right out of my rotation conf (s).
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

hmmm..... could be that i suppose. I don't haave the -time in my conf, it is added in the command line, so i'll add it to all the confs.

i have written an applescript rotation script you see....
"Life is what happens to you while you're busy making other plans." - John Lennon
temporal distraction
Sergeant
Sergeant
Posts: 250
Joined: Wed Jan 05, 2005 3:12 pm

Post by temporal distraction »

Spazzy Mcgee wrote:hmmm..... could be that i suppose. I don't haave the -time in my conf, it is added in the command line, so i'll add it to all the confs.

i have written an applescript rotation script you see....
I'd appreciate a look at that applescript. Do you plan on releasing it?
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

well, it's got to work first :P

and it's very 'filepath intensive' you'll have to get the folders right, but otherwise that's fine. If i get it working i'll post it.
"Life is what happens to you while you're busy making other plans." - John Lennon
dango
Private First Class
Private First Class
Posts: 1400
Joined: Sun Feb 06, 2005 5:40 pm
Location: Somewhere over there.

Post by dango »

everyone needs to leave the server for it to shut down i think- that's what happend for me.
Image
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

me1 wrote:everyone needs to leave the server for it to shut down i think- that's what happend for me.

nope, adding -g and -time 2000

that killed the server with ppl on it.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

order of the options, or the if it's in config or command line should not matter. It's all merged by bzfs in the end.
ImageJeffM
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

but yet it seems to.......
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

winxp, can you send me your whole conf?
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

kk, give me a while to find it. ( I have many confs....)
User avatar
Spazzy McGee
Sergeant Major
Sergeant Major
Posts: 1405
Joined: Mon Mar 21, 2005 4:59 pm
Location: Planet MoFo, Sheffield Division; United Kingdom

Post by Spazzy McGee »

hmmmk...

it's still not working. I'm wondering is this the right behavior for the -g -time thing. Is it ment to shutdown the server after the time limit, or simply wait untill everyone leaves the server?

can someone please enlighten me as to what i'm doing wrong :) ?
"Life is what happens to you while you're busy making other plans." - John Lennon
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

I honestly have no idea what isn't working.
User avatar
The Knights Who Say Ni
Private First Class
Private First Class
Posts: 556
Joined: Mon Sep 26, 2005 7:21 pm
Location: Uplyme, England
Contact:

Post by The Knights Who Say Ni »

i dont think - g actualy shuts it down (as in closes it) it just dosent start any more games after the time has run out thats what i thought...
Image
Sig Made By AlliedArmour

TGPH
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

maybe its becuase I am using Lddw's auto3 rotation app....
orange
Private First Class
Private First Class
Posts: 73
Joined: Thu Oct 02, 2003 2:02 am

Post by orange »

Spazzy Mcgee wrote:hmmmk...

it's still not working. I'm wondering is this the right behavior for the -g -time thing. Is it ment to shutdown the server after the time limit, or simply wait untill everyone leaves the server?

can someone please enlighten me as to what i'm doing wrong :) ?
Where are you running this? There are some platforms where it does exactly what you said. Silvercat is running on bzflag.bz right now and without a patch, the game won't end.

Same config files as our normal host, but on bzflag.bz it doesn't work.
Post Reply