Tremulous Forum
Community => Servers => Topic started by: ServerInLAN on March 10, 2008, 11:41:05 pm
-
Ok, so I have a server and I want a cp to automatically happen at the begining of every game, or every 30 minutes. So how do I do that?
-
You can either put it in a cfg file that is executed at the beginning of every game, or you can send it to the server with a cron job or something of that sort if you're on a *nix os.
-
The only problem with beginning of a game is timing it just right - if it's too soon, not all of the players will have connected in time to see it happen. Otherwise, as was already said a cron job every 30m which sends the data to the server would work fine. Perhaps if David sees this thread he'll paste the magic string we used before, I can't remember how it goes (netcat something \xff\xff\xff\xffrcon <rconpassword> cp Your Text Here)
-
...Or you could make a custom game.qvm to auto do it at the appropriate times...
-
easier to go the cronjob route:
echo -e '\xff\xff\xff\xffrcon $password $command' | netcat -u localhost 30720
-
lol wats a cronjob and how do i do it, and with the timing thing wat the command to say pause 5 seconds for timing issue.
-
AFAIK, 'wait 5000'.
However, whenever I try the 'wait' command in client-side scripting, it locks up my client until its done waiting, except for a couple of functions.
-
THANKS SO MUCH ;D and 5000 is how many minutes?
-
Actually, P-G-Qvm 1.5+ has this feature.
g_msg sets the message, use \n for newlines
g_msgTime is the time in min.
http://p-g-qvm.googlecode.com
-
THANKS SO MUCH ;D and 5000 is how many minutes?
.08333… minutes.
In other words, 5 seconds. (Wait wants time in milliseconds)
-
THANKS SO MUCH ;D and 5000 is how many minutes?
.08333… minutes.
In other words, 5 seconds. (Wait wants time in milliseconds)
wrong.
-
Who's wrong and why?
-
I'm assuming he means 5000 doesn't equal five seconds, wait doesn't want it in milliseconds, or 5 seconds doesn't equal .083333... minutes.
-
Wait is in frames. And as i'm sure your all aware, the frame rate changes a lot, so its mostly useless.