Page 1 of 2
Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 4:00 pm
by ChaoS(CoA)
Hiya!
I have searched for this but I must be searching for the wrong thing because I have not found any examples of batch files to launch an Unreal 1 server.
I have tested running one from in-game but it crashes sometimes and with no startup file does not of course restart.
Can someone give me an example of a batch file to be used to start a deathmatch server?
Cheers!
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 4:18 pm
by Chaos13
Hey and welcome to OldUnreal!
I'd recommend you to use smth like following batchfile:
Code: Select all
:Restart
Unreal DM-M_Deck16 -server -timestamplog
GOTO Restart
Try that...
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 4:26 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Create a batch file, place it into Unreal's "System" folder and put this into it (for example if you want to run DmAriza):
Unreal DmAriza.unr?game=UnrealI.DeathmatchGame -server
You can customize it any way you like, for example:
Unreal DmAriza.unr?game=UnrealI.DeathmatchGame -server port=7778 log=server.log ini1=server1.ini
etc.
Cheers
ThexDarksider
EDIT: And, don't do that what Ikuto said.

Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 4:55 pm
by Chaos13
Yeah sure do what ThexDarksider said and your server wont restart ^_____^
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 5:14 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Waaait a minute, are you joking me?
Doesn't that kill your PC? :-?
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 5:35 pm
by ChaoS(CoA)
Hmmm
Can you give an example of a completed batch file?
:-/
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:01 pm
by GreatEmerald
Code: Select all
@echo off
set XMPDIR=I:\u2xmp_dedicated_7710\U2XMP_Dedicated
:one
echo Starting dedicated server for %1%...
%XMPDIR%\System\ucc.exe %1% server xmp-garden
goto one
That's from an official Legend Dedicated Server package.
Just change the XMPDIR value to your Unreal folder, and add a map of your choice instead of XMP-Garden.
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:05 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Hmm if that doesn't work, try this:
Code: Select all
Unreal DmElsinore.unr?game=UnrealI.DeathmatchGame -server port=7778 log=server.log
But replace DmElsinore with the map you want to run.
If in any case the above doesn't work, you could try this:
Code: Select all
Start Unreal.exe DmElsinore.unr?game=UnrealI.DeathmatchGame -server port=7778 log=server.log
For coop:
Code: Select all
Unreal NyLeve.unr?game=UnrealI.CoopGame -server port=7778 log=server.log
or
Code: Select all
Start Unreal.exe NyLeve.unr?game=UnrealI.CoopGame -server port=7778 log=server.log
Hope that helps.
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:06 pm
by ChaoS(CoA)
Hi
Thanks for thre reply
I was looking at any example I could find - including the ones here - I came up with this:
@echo off
:10
c:\Unreal\system\Unreal.exe DmAcademy.unr PORT=7777 LOG=dm.log READINI=unreal.ini -server
copy onsserver.log onsservercrash.log
goto 10
Seems to be working. To kill it I have to kill the dos box running the batch file.
No errors in the startup file.
Any reason why this will not work?
8-)
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:06 pm
by Bane
Waaait a minute, are you joking me?
Doesn't that kill your PC? :-?
What? Why would it?!
Hmmm
Can you give an example of a completed batch file?
:-/
Ikuto more or less did.
Code: Select all
:restart
c:\...\system\unreal.exe ?game= -server -log=logfile.log INI=unreal.ini
move logfile.log crash.log
GOTO restart
Replace c:\... with whever unreal is installed
with the map you want to start on (do not include the )
with the gametype you want to use
logfile.log with whatever file you want to put the log in. There should be a way to timestamp it so you don't keep overwriting the logfile every time you restart, but I don't know how (if there is a way, delete the 'move' line)
INI is whatever configuration you want to use. Some people have multiple config files for different servers, or one for playing and another for hosting.
Everything except the map and -server are optional. INI defaults to unreal.ini, log defaults to unreal.log
Any options (?blah=) that can be added to the 'open map' command will work in the command line, i.e. 'unreal.exe Dig?difficulty=4'
You might need to set up port= or multihome or something, but I don't know how to deal with that. Someone else explain it, please.
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:09 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Waaait a minute, are you joking me?
Doesn't that kill your PC? :-?
What? Why would it?!
It kills the f*ck out of my PC.
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 6:38 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
...
[img]http://thedarkside.net63.net/lol1.jpg[/img]
[img]http://thedarkside.net63.net/lol2.jpg[/img]
Not funny...
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:00 pm
by ChaoS(CoA)
Yup
This indeed crashed my server:
@echo off
:10
Start Unreal.exe DmAcademy.unr -server PORT=7777 LOG=dm.log READINI=unreal.ini
copy onsserver.log onsservercrash.log
goto 10
LOL It started a bazillion copies of Unreal. I did manage to get server 2003 to shut off before the ship went down.
This on the other hand seems to work fine:
@echo off
:10
Unreal.exe DmAcademy.unr PORT=7777 LOG=dm.log READINI=unreal.ini -server
copy onsserver.log onsservercrash.log
goto 10
I will test that for a bit
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:02 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
"Restart button always handy."
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:10 pm
by ChaoS(CoA)
LOL
By the way if you ask me what's Old is New Again.
Looking forward to getting back to roots and get in the game on Unreal 1 again.
Love the new patch - makes Unreal1 run sweet on the new rig (That I of course wished I had back in the day)
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:26 pm
by Bane
I have absolutely no idea why it is doing that.
What is SUPPOSED to happen is that starting unreal causes the shell to wait for the process to finish. When it does finish (usually because it crashed), it goes back to the top and starts unreal again.
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:51 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Hmm afaik if you type " ", cmd actually BECOMES that process, but if you type "Start ", it will RUN that process as a side-effect, not caring about it.
That's correct, if you type "Unreal DmRadikus?game=UnrealI.DeathmatchGame -server log=server.log" or something like that, it won't loop forever.
But you MUST omit the Start command!
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:54 pm
by Chaos13
Instead of copying log use -timestamplog option...
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:59 pm
by ChaoS(CoA)
OK
So just replace:
copy onsserver.log onsservercrash.log
With:
-timestamplog
?
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 7:59 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Yeah. And, again. To anybody that didn't head what I said before:
DO NOT FORGET TO OMIT THE START COMMAND
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 8:03 pm
by Zombie
There is nothing wrong with the start command.
The start command must include the "/WAIT" switch for the goal here. These batch scripts here lack it. That's what pauses further execution until the process in the command terminates. Type "start /?" in the command prompt for more help information that could be useful.
-Zombie
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 8:04 pm
by Chaos13
Don't do copy. You need to do rather
Unreal ...*parameters*... -timestamplog
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 8:08 pm
by ChaoS(CoA)
Cool
Thanks for the help everyone!
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 8:18 pm
by ChaoS(CoA)
So It should be like this:
@echo off
:10
Unreal.exe DmAcademy.unr PORT=7777 LOG=dm.log -timestamplog READINI=unreal.ini -server
goto 10
what does timestamplog do? Create a new one each time the server is restarted?
Re: Unreal 1 2273 dedicated server
Posted: Sat Nov 01, 2008 8:28 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
There is nothing wrong with the start command.
The start command must include the "/WAIT" switch for the goal here. These batch scripts here lack it. That's what pauses further execution until the process in the command terminates. Type "start /?" in the command prompt for more help information that could be useful.
-Zombie
Lol...
Level of ThexDarksider's DOS commands knowledge:
[ch9484][ch9472][ch9516][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9516][ch9472][ch9488]
[ch9474][ch9668][ch9474][ch9608][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9618][ch9474][ch9658][ch9474]
[ch9492][ch9472][ch9524][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9472][ch9524][ch9472][ch9496]