You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament 2003/2004 > UT2003/4 Server - Linux Specific

Reply
Thread Tools Display Modes
  #21  
Unread 3rd March, 2003, 01:15 PM
CBA's Avatar
CBA CBA is offline
Rampage
 
Join Date: Jan 2003
Location: Belgium
Posts: 76
Default

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
Reply With Quote
  #22  
Unread 5th March, 2003, 08:12 PM
coke's Avatar
coke coke is offline
Killing Spree
 
Join Date: Feb 2003
Location: Netherlands
Posts: 42
Default

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>
__________________
coke

All of you sheep better bow before me!
Arda Warriors -- http://aw.morannon.org/
Reply With Quote
  #23  
Unread 27th May, 2003, 08:57 AM
Rawplayer Rawplayer is offline
Killing Spree
 
Join Date: May 2003
Location: Netherlands.gif
Posts: 17
Default

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

Reply With Quote
  #24  
Unread 27th May, 2003, 11:23 PM
Rawplayer Rawplayer is offline
Killing Spree
 
Join Date: May 2003
Location: Netherlands.gif
Posts: 17
Default

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:
Reply With Quote
  #25  
Unread 9th June, 2003, 10:15 AM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

Quote:
Originally Posted by kurai
Here's a little server startup script you might like - suitable for putting in init.d &amp; 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 &lt;user&gt; -c ucc.init" from init.d/runlevels.
Reply With Quote
  #26  
Unread 21st September, 2003, 12:00 AM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

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
Reply With Quote
  #27  
Unread 24th September, 2003, 12:23 AM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

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.
Reply With Quote
  #28  
Unread 24th September, 2003, 01:06 PM
CBA's Avatar
CBA CBA is offline
Rampage
 
Join Date: Jan 2003
Location: Belgium
Posts: 76
Default

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 ?
__________________
..:: ::VeC:: Clan Homepage - Visit me plz ::.. - ..::My son::..
Reply With Quote
  #29  
Unread 24th September, 2003, 01:23 PM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

Unfortunately the ucc script was not included in the 2225 tarball. Get it here.
Reply With Quote
  #30  
Unread 24th September, 2003, 01:30 PM
CBA's Avatar
CBA CBA is offline
Rampage
 
Join Date: Jan 2003
Location: Belgium
Posts: 76
Default

Quote:
Originally Posted by Naked_Ape
Unfortunately the ucc script was not included in the 2225 tarball. Get it here.
Thanks, it worked
__________________
..:: ::VeC:: Clan Homepage - Visit me plz ::.. - ..::My son::..
Reply With Quote
  #31  
Unread 18th October, 2003, 09:42 PM
JESTER2003 JESTER2003 is offline
Forum Newcomer
 
Join Date: Oct 2002
Location: USA.gif
Posts: 11
Default

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 &amp;
echo $! &gt; $UCCINITPIDFILE
disown
;;
stop)
if test -f $UCCINITPIDFILE ; then
if ps -p `cat $UCCINITPIDFILE` | grep ucc.init 1&gt; /dev/null 2&gt; /dev/null ; then
echo killing ucc.init
kill -TERM `cat $UCCINITPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
sleep 2
kill -9 `cat $UCCINITPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
fi
rm $UCCINITPIDFILE
fi
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1&gt; /dev/null 2&gt; /dev/null ; then
echo killing ucc
kill -TERM `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /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&gt; /dev/null 2&gt; /dev/null ; then
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1&gt; /dev/null 2&gt; /dev/null ; then
kill -TERM `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
fi
rm $UCCPIDFILE
fi
rm $UCCINITPIDFILE
$0 start &gt; /dev/null
fi
else
if test -f $UCCPIDFILE ; then
if ps -p `cat $UCCPIDFILE` | grep ucc 1&gt; /dev/null 2&gt; /dev/null ; then
kill -TERM `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
sleep 2
kill -9 `cat $UCCPIDFILE` 1&gt; /dev/null 2&gt; /dev/null
fi
rm $UCCPIDFILE
fi
$0 start &gt; /dev/null
fi
;;
fork)
while [ true ] ; do
if test -f $LOGFILE ; then
mv $LOGFILE $LOGFILE.old
fi
$BASEDIR/$COMMAND -log &gt; $LOGFILE &amp;
echo $! &gt; $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
Reply With Quote
  #32  
Unread 19th October, 2003, 03:57 AM
DeadMeat DeadMeat is offline
Godlike
 
Join Date: Feb 2003
Location: USA
Posts: 275
Default

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!
Reply With Quote
  #33  
Unread 13th November, 2003, 04:08 PM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

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.
Reply With Quote
  #34  
Unread 13th November, 2003, 05:03 PM
FragZilla FragZilla is offline
Forum Newcomer
 
Join Date: Nov 2003
Posts: 1
Default

(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 &amp; 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 &amp; configuring UT2003 servers I was able to find here.
Reply With Quote
  #35  
Unread 29th November, 2003, 04:57 AM
mgrazimo mgrazimo is offline
Forum Newcomer
 
Join Date: Nov 2003
Posts: 1
Default

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:
Reply With Quote
  #36  
Unread 29th November, 2003, 02:05 PM
Naked_Ape's Avatar
Naked_Ape Naked_Ape is offline
Holy Shit!!
 
Join Date: Jun 2003
Location: .gif
Posts: 584
Default

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.
Reply With Quote
  #37  
Unread 17th December, 2003, 02:11 PM
JOHNY JOHNY is offline
Forum Newcomer
 
Join Date: Dec 2003
Posts: 1
Default

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)
Reply With Quote
  #38  
Unread 17th December, 2003, 06:27 PM
coke's Avatar
coke coke is offline
Killing Spree
 
Join Date: Feb 2003
Location: Netherlands
Posts: 42
Default

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...
__________________
coke

All of you sheep better bow before me!
Arda Warriors -- http://aw.morannon.org/
Reply With Quote
  #39  
Unread 16th March, 2004, 09:12 PM
NRG NRG is offline
Forum Newcomer
 
Join Date: Oct 2002
Location: USA.gif
Posts: 9
Default

does any1 hass a working startup script for the full dedicated 2k4 server?

or are the 2k3 scripts working ?
__________________
--------
1337
Reply With Quote
  #40  
Unread 16th March, 2004, 09:20 PM
LODEEP's Avatar
LODEEP LODEEP is offline
Rampage
 
Join Date: Aug 2002
Location: Netherlands
Posts: 71
Default

Script works fine here on ut2003/ut2004demo/ut2004
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:45 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.