Digital Paint Discussion Board

Paintball 2: The Game => Server Discussion => Topic started by: Kyuuchi on October 04, 2009, 12:57:44 PM

Title: OK. Can someone help me with this vps :(
Post 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?
Title: Re: OK. Can someone help me with this vps :(
Post by: T3RR0R15T on October 04, 2009, 01:26:12 PM
I've only this in the sh file:

Code: [Select]
while true; do
./paintball2 +set dedicated 1 +map otb +set maxclients 16 +set port 12345 +exec server.cfg
done


I start the server with:
Code: [Select]
screen -A -m -d -S otb_server ./otb_server.sh

To see the console:
Code: [Select]
screen -r otb_server
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 04, 2009, 02:27:12 PM
Is that in the main /home/paintball2 section?
Title: Re: OK. Can someone help me with this vps :(
Post by: T3RR0R15T on October 04, 2009, 03:22:59 PM
No, i have other folders. It's in the folder from the paintball2 file.
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 04, 2009, 03:32:52 PM
Thanks T3RR0R15T, Really, Awesome! It works now, and I can finally shut down my laptop to keep the servers up.

Viva la OTB!
Title: Re: OK. Can someone help me with this vps :(
Post by: ViciouZ on October 04, 2009, 03:49:36 PM
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.
Title: Re: OK. Can someone help me with this vps :(
Post by: SuperMAn on October 04, 2009, 05:57:38 PM
It was working fine with the script I gave you =p.
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 05, 2009, 02:28:34 AM
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?
Title: Re: OK. Can someone help me with this vps :(
Post by: SuperMAn on October 05, 2009, 07:03:20 AM
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.
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 05, 2009, 11:02:46 AM
Yeah its in game.
Hmm...
Title: Re: OK. Can someone help me with this vps :(
Post by: T3RR0R15T on October 05, 2009, 11:23:14 AM
There was a but with one map in the rotation, but it should be fixed for a few builds.
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 05, 2009, 11:29:28 AM
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?
Title: Re: OK. Can someone help me with this vps :(
Post by: T3RR0R15T on October 05, 2009, 11:51:05 AM
It was fixed in build 17 or 18.
Title: Re: OK. Can someone help me with this vps :(
Post by: Kyuuchi on October 05, 2009, 11:55:25 AM
So how can I make the server actually change the map?
Title: Re: OK. Can someone help me with this vps :(
Post by: SuperMAn on October 06, 2009, 12:28:58 AM
I can take a look at it again tomorrow if you want.
Title: Re: OK. Can someone help me with this vps :(
Post by: T3RR0R15T on October 06, 2009, 11:11:05 AM
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.