Digital Paint Discussion Board
Paintball 2: The Game => Server Discussion => Topic started by: Kyuuchi on October 04, 2009, 12:57:44 PM
-
Well, I've had ViciouZ, Zorch, Superman, T3RR0R15T and Tartjagger all try and help me.
But I just don't 100% get what I must do.
I have this as a .sh script
#!/bin/bash
cd /home/paintball2
while true; do
echo $! >/home/server/beginner1.pid
./paintball2 +set dedicated 1 +set port 11111 +set maxclients 16 +exec isibeginner1.cfg +map carpathian
done
But, I always get this when I type into my SSH:
syntax error, unexpected token `done'
And I typed before that this:
"sh ./runbeginner1.sh"
Any idea's? Also. My match1.sh works fine, but the others, which have been copied, don''t?
Any thoughts?
-
I've only this in the sh file:
while true; do
./paintball2 +set dedicated 1 +map otb +set maxclients 16 +set port 12345 +exec server.cfg
done
I start the server with:
screen -A -m -d -S otb_server ./otb_server.sh
To see the console:
screen -r otb_server
-
Is that in the main /home/paintball2 section?
-
No, i have other folders. It's in the folder from the paintball2 file.
-
Thanks T3RR0R15T, Really, Awesome! It works now, and I can finally shut down my laptop to keep the servers up.
Viva la OTB!
-
The unexpected token error just meant you had a '\r' character in there from a windows line ending. Sighsighsighsighsigh. At least you have it working now.
-
It was working fine with the script I gave you =p.
-
Erm, for some reason. On 2 of my pub servers (Siege and Advanced) when you type
"newmap airtime" or something, and the map is currently on shazam33, it stays on shazam33.. Why?
This happened on Beginner and Oldskool pub too, but I restarted the containers and they worked fine. But Siege and Advanced doesn't
Any thoughts?
-
The commands through the console are abit different than the commands in game. To change the map just type map <mapname>. If you are trying to do it in game and are still getting that problem I'm guessing its something in your configs.
-
Yeah its in game.
Hmm...
-
There was a but with one map in the rotation, but it should be fixed for a few builds.
-
So its a build error? Not my error?
I have build 27 on my servers, is there any way, in the meantime, for me to make the servers work again?
-
It was fixed in build 17 or 18.
-
So how can I make the server actually change the map?
-
I can take a look at it again tomorrow if you want.
-
I talked with him yesterday. He has renamed the maprotation file, so he has this bug: http://dplogin.com/forums/index.php?topic=17377.0
If he make a file "rotation.txt" with two or three maps in it, everything will work (with a bad maprotation). It's because on a linux server it loads everytime the rotation.txt file, if a server starts. The rot_file setting will be "activated", when the first player connects. But thats too late.
He must join each server and type in "rotation clear" and "rotation load" to have the maprotation from the renamed file, which he set in the serverconfig.