Donations
|
If you wish to make a donation you can by clicking the image below.
|
|
|
|
|
3rd March, 2003, 01:15 PM
|
|
Rampage
|
|
Join Date: Jan 2003
Location: Belgium
Posts: 76
|
|
I also had no such file ore directory, but it was because i had a / at the end of basedir path
One more thing, when i run:
./ucc.init check
in init.d directory i don't get an answer and my server is running
[root@Linuxserver init.d]# ./ucc.init check
[root@Linuxserver init.d]#
that's all ...
Hmm another problem, my webadmin isn't working anymore now
|
5th March, 2003, 08:12 PM
|
|
Killing Spree
|
|
Join Date: Feb 2003
Location: Netherlands
Posts: 42
|
|
Quote:
Originally Posted by Schwartz
If you're using Windows to edit the file make sure you specify Unix file type in your editor.
|
You guys never heard of dos2unix? On Debian it is in the sysutils package. It basically converts the \r\n (carriage return + newline) that DOS uses in its text files into \n (Unix/Linux doesn't use \r in text files, and in vim they will show up as blue ^M's).
Or you can perl -p -i -e 's/\r\n/\n/g' <filename>
|
27th May, 2003, 08:57 AM
|
Killing Spree
|
|
Join Date: May 2003
Location: Netherlands.gif
Posts: 17
|
|
I have made abfackeln's server start script for ut compatible with ut 2003
you can download it here http://<a href="http://www.instagibk...ipt.tar.gz</a>
the script works fine now
|
27th May, 2003, 11:23 PM
|
Killing Spree
|
|
Join Date: May 2003
Location: Netherlands.gif
Posts: 17
|
|
I have updated the script i have added more options to easily start the ut2003 server download the script here http://<a href="http://www.instagibk...ipt.tar.gz</a>
and please let me know if you guy's like it or not
:spam:
|
9th June, 2003, 10:15 AM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
Quote:
Originally Posted by kurai
Here's a little server startup script you might like - suitable for putting in init.d & rc runlevels too.
...
Enjoy
|
Nice script and kudos to you for writing it. But I feel a need to point out that putting this in init.d or runlevels will result in running the server as root which is considered harmful.
There are two solutions that spring to mind: Add this script to the crontab for the user you created to run the server (you did create a user for this, right?) with the @reboot spec if you want it to start automagically. Or, execute the script with "su <user> -c ucc.init" from init.d/runlevels.
|
21st September, 2003, 12:00 AM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
In case anyone is interested, here is another set of scripts for managing UT2k3 servers. They handle server restart, log rotation and console detachment and can be used in init scripts, crontabs or directly at the command line. They do not require you to modify your UT2k3 installation in any way nor do they mess with the installed files so they are totally "transparent" to UT2k3.
Feedback is welcome even if I can't guarantee that I will maintain these for any period of time. They are placed in Public Domain so you're free to do with them what you want.
Get the tarball here: http://knoghall.no-ip.com/ut2003/ut2k3m.tgz
|
24th September, 2003, 12:23 AM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
Ok, just a quick update on the scripts...
Latest version is availiable from http://knoghall.no-ip.com/ut2003/files/
The old link will stay for a week or so but it is depreceated.
|
24th September, 2003, 01:06 PM
|
|
Rampage
|
|
Join Date: Jan 2003
Location: Belgium
Posts: 76
|
|
Well i got a new linuxbox reïnstalled everything, i unpacked the new dedicated server and installed everything.
Here is the firstpart of my script the command line works fine if i start it manually.
Quote:
#!/bin/sh
BASEDIR=/home/cba/ut2K3/ut2003_dedicated
COMMAND="ucc server DM-Compressed.ut2?AccessControl=XAdmin.AccessControlI ni?game=XGame.XTeamGame?GameStats=True?mutator=Ant iTCC107.MutAntiTCC,XWeapons.MutNoS$
LOGFILE=$BASEDIR/uccTDM.log
UCCINITPIDFILE=$BASEDIR/ucc.init.pid
UCCPIDFILE=$BASEDIR/ucc.pid
|
i'm getting this error when i run ucc.init start
Quote:
./ucc.init: line 71: /home/cba/ut2K3/ut2003_dedicated/ucc: Onbekend bestand of map
|
Maybe this is because there is no ucc file anymore in the new dedicated server ? How can i still use the script ?
|
24th September, 2003, 01:23 PM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
Unfortunately the ucc script was not included in the 2225 tarball. Get it here.
|
24th September, 2003, 01:30 PM
|
|
Rampage
|
|
Join Date: Jan 2003
Location: Belgium
Posts: 76
|
|
Quote:
Originally Posted by Naked_Ape
Unfortunately the ucc script was not included in the 2225 tarball. Get it here.
|
Thanks, it worked
|
18th October, 2003, 09:42 PM
|
Forum Newcomer
|
|
Join Date: Oct 2002
Location: USA.gif
Posts: 11
|
|
I am new to the linux side of UT2K3 so please don't rag on me too bad. I am trying to use the server startup script and I am getting no where fast! Here is my script:
#!/bin/sh
BASEDIR=/home/jester/ut2003/ut2003_dedicated
COMMAND="ucc server DM-TrainingDay?game=XGame.xDeathMatch?mutator=XGame.M utQuadJump?GameStats=False?bWeaponsStay=False?Tran slocator=True?MinPlayers=8?TimeLimit=15?GoalScore= 25?AdminName=****?adminPassword=**** -nohomedir -ini=DM.ini"
LOGFILE=$BASEDIR/uccDM.log
UCCINITPIDFILE=$BASEDIR/ucc.init.pid
UCCPIDFILE=$BASEDIR/ucc.pid
case "$1" in
start)
echo starting ucc.init and ucc
$0 fork &
echo $! > $UCCINITPIDFILE
disown
;;
stop)
if test -f $UCCINITPIDFILE ; then
if ps -p `cat $UCCINITPIDFILE` | grep ucc.init 1> /dev/null 2> /dev/null ; then
echo killing ucc.init
kill -TERM `cat $UCCINITPIDFILE` 1> /dev/null 2> /dev/null
sleep 2
kill -9 `cat $UCCINITPIDFILE` 1> /dev/null 2> /dev/null
fi
rm $UCCINITPIDFILE
fi
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1> /dev/null 2> /dev/null ; then
echo killing ucc
kill -TERM `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
fi
rm $UCCPIDFILE
fi
;;
restart)
$0 stop
$0 start
;;
check)
if test -f $UCCINITPIDFILE ; then
if ! ps -p `cat $UCCINITPIDFILE` | grep ucc.init 1> /dev/null 2> /dev/null ; then
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1> /dev/null 2> /dev/null ; then
kill -TERM `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
fi
rm $UCCPIDFILE
fi
rm $UCCINITPIDFILE
$0 start > /dev/null
fi
else
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1> /dev/null 2> /dev/null ; then
kill -TERM `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1> /dev/null 2> /dev/null
fi
rm $UCCPIDFILE
fi
$0 start > /dev/null
fi
;;
fork)
while [ true ] ; do
if test -f $LOGFILE ; then
mv $LOGFILE $LOGFILE.old
fi
$BASEDIR/$COMMAND -log > $LOGFILE &
echo $! > $UCCPIDFILE
wait
done
;;
*)
echo "Usage: $0 {start|stop|restart|check}"
;;
esac
I go to the terminal comand line, navigate to the folder that the ucc.init file is in and here is what that looks like:
[jester@localhost ut2003_dedicated]$ ucc.init
bash: ucc.init: command not found
Please help a Linux convert out! Thanks for any help
|
19th October, 2003, 03:57 AM
|
Godlike
|
|
Join Date: Feb 2003
Location: USA
Posts: 275
|
|
OK, I'll go for the obvious. Try using:
$ ./ucc.init
Linux (and Unix) uses a "strict" path search for various good reasons. This means that it only looks at the directories listed on the PATH environment variable. The default path does not have the "." on it (the current directory). So, unlike Windoze, you need to point to the EXE if it's in the current directory (or add the . to the path var.).
GL HF
|LCN|DeadMeat
--
UT is like Air to Air combat, loose sight of your opponent and you die!
|
13th November, 2003, 04:08 PM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
Latest version of my scripts are availiable at: http://knoghall.no-ip.com/ut2003/fil...m_20031113.tgz
Fixed a stupid bug in the log rotation code plus added a few things like syslog and email notification on crashes, server "run-away" protection and a (hopefully) better readme.txt.
|
13th November, 2003, 05:03 PM
|
Forum Newcomer
|
|
Join Date: Nov 2003
Posts: 1
|
|
(my first post here)
I really appreciate the effort you put into them.
I've run dedicated game servers since Quake1 came out but I never had a need to have a lot of different types of servers ready to run at a moments notice and keep track of.
Previously, I used a duct-tape-and-bondo approach using crontab/ps/screen/grep to make sure servers were up. That was fine for just running several 24 hour internet game servers, but wouldn't do in this particular case.
I just ran into a situation where I need to have a lot of variations of ut2003 servers for a lan party this weekend.
Very late last night, I was stressing out because I wanted to cover all of my bases by having UT2003 retail & 2225 with all sorts of mods and gametypes ready at a moments notice on my Linux server. And, I hadn't run a dedicated ut2003 server before. I also didn't want to embarrass the Linux community by having to muck around with the server all day :withstupid:
After finding your scripts, in two minutes I had the example server running on the first try by launching a dedicated server off of my full Linux retail install. It'll be a breeze setting up a bunch of other ones.
Thanks again. You'll be making a lot of lan gamers happy this weekend. This time they won't spend most of their day trying to figure out which Windows boxes can serve which other ones or why the game stopped when so-and-so's box locked up. They'll just be oohing and ahhing that they can play right away....and keep playing.
BTW: I noticed you just uploaded a new version. I'll check it out after the weekend.
Also, kudo's to the people who wrote the HOWTO's and informative posts. Everything I needed to know about serving & configuring UT2003 servers I was able to find here.
|
29th November, 2003, 04:57 AM
|
Forum Newcomer
|
|
Join Date: Nov 2003
Posts: 1
|
|
Hi, I installed the ut2k3 ded. server for Linux on a Solaris system running solaris 9 on a ultra5.. I'm trying to start the server by using he ucc script but I keep getting this error:
./ucc-bin: syntax error at line 1: `(' unexpected
Can anyone help figure out what this means..?
thank you :withstupid:
|
29th November, 2003, 02:05 PM
|
|
Holy Shit!!
|
|
Join Date: Jun 2003
Location: .gif
Posts: 584
|
|
It means you're trying to use it on the wrong operating system running on the wrong hardware... :sigh:
The Linux dedicated server is for Linux systems although it may run on other POSIX systems if they have the appropriate compatibility packages installed. It may even run on x86 Solaris (but I doubt it).
There is no way that it is going to run on SPARCs though.
|
17th December, 2003, 02:11 PM
|
Forum Newcomer
|
|
Join Date: Dec 2003
Posts: 1
|
|
I any try to make a run script for gentoo linux ??
If you install server ut under gentoo it makes directorys:
for log:
/root/.ut2003/ucc.log
for game:
/opt/ut2003-ded/
Is any scirpt to start|restart|stop the server untedr /etc/init.d/(example ut2003 start|restart|stop)
|
17th December, 2003, 06:27 PM
|
|
Killing Spree
|
|
Join Date: Feb 2003
Location: Netherlands
Posts: 42
|
|
Erm... If you pass the -nohomedir option to the commandline, it won't use /root/.ut2003 for its log files, but instead save them in /wherever/you/installed/ut2003_dedicated/System i think... Or somewhere there, which is nicer IMHO
I am on Gentoo too, but I don't have a startup script, I just start a screen session, run the ut2003 server, and detach the screen session and just leave it there. My command line is:
[code:1:45d0867897]# ./ucc-bin server DM-Antalus.ut2 --ini=System/UT2003.ini -nohomedir[/code:1:45d0867897]
Although it'd be nicer to have a default map and some default settings... Will have to make a script/good UT2003.ini for that...
|
16th March, 2004, 09:12 PM
|
Forum Newcomer
|
|
Join Date: Oct 2002
Location: USA.gif
Posts: 9
|
|
does any1 hass a working startup script for the full dedicated 2k4 server?
or are the 2k3 scripts working ?
__________________
--------
1337
|
16th March, 2004, 09:20 PM
|
|
Rampage
|
|
Join Date: Aug 2002
Location: Netherlands
Posts: 71
|
|
Script works fine here on ut2003/ut2004demo/ut2004
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|