[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » sh2 / dc mp command line switches
Author sh2 / dc mp command line switches
marimba


Joined: Jul 05, 2002
Posts: 5
Posted: 2002-07-05 19:37   
Hello all,

this is my first post, I hope it's at the right position and if this is covered in previous posts, I couldn't find it here, nor by google.

I just discovered that there are 2 commandline switches to start silent hunter 2 for mutliplayer, one for a host and one for a client setup.
They have to be appended to Silent Hunter II\Sim\sim.exe in order to work. Ok, here they are:

Host Setup
sim.exe -h"RTSERVER_IP,RTSERVER_PORT,101,HOSTNAME"

Client Setup
sim.exe -m"RTSERVER_IP,RTSERVER_PORT,101,PLAYERNAME"

where
RTSERVER_IP=the IP Adress of the server. Note that this way you may specify an Rtserver on a different computer. -h0 seems to mean localhost.
RTSERVER_PORT=the port of the RTServer, usually 3000
101= ? unknown, maybe the rtserver key?
HOSTNAME=the name of the game host
PLAYERNAME=the name of the client

Example:
I have a linuxbox with an rtserver executable from the turok2 server package (free!). So far it worked good for my testing (on a 100mb lan, that is).
With
sim.exe -h"192.168.1.1,3000,101,testhost"
I am able to start the host on the linuxmachine, and with
sim.exe -m"192.168.1.1,3000,101,testclient"
I am able to connect from my laptop.
I couldn't find a way to host a game on a different machine with ubi.com, but I think it may improve performance if the rtserver is located on a machine with good bandwidth.
With these switches it should be also possible to create a small wrapper script which communicates back and forth between a host and a client, to synchronize preperations before starting a game, maybe translate (Dyn-)DNS entries to ip-addresses?
I thought of doing something like this by myself, but after reading around here I'll better wait for Neals DirectX replacement 8P
Again, if this has been mentioned already a million times, sorry, I really couldn't find any help on this. But I would be punished already by trying a lot and then typing all this for nothing;)

regards,

marimba


  View Profile of marimba      Edit/Delete This Post   Reply with quote
CB..


Joined: Jun 03, 2002
Posts: 292
From: UK
Posted: 2002-07-05 20:16   
sounds good...i can't say i understand the details , but if it helps solve some of the difficultys , then great news !!
_________________
<a href="http://www.ebort.com/index.html"target = blank>CB-site</a>


  View Profile of CB..   Email CB..   Goto the website of CB..      Edit/Delete This Post   Reply with quote
mrmax


Joined: Jun 08, 2002
Posts: 104
Posted: 2002-07-05 20:41   
Somewhere I read there is a command line switch
for dedicated server that turns a dropped player into AI,
so the mission can continue.

I was wondering if that same switch would work
for hosting on UBI or own host direct ip connect.

One of the most frustrating things is to play
for 30 min 2 subs vs 1 DD and unexpectedly the dd
drops connection.
Us subs are sort of left holding our torps with
no where to put them...


  View Profile of mrmax   Email mrmax   Goto the website of mrmax      Edit/Delete This Post   Reply with quote
marimba


Joined: Jul 05, 2002
Posts: 5
Posted: 2002-07-06 09:34   
Hi,

this is mentioned in Silent Hunter II\Dedicated Server\RTIME Server Readme.txt- do you mean that?

-z option:
Don't drop dead clients. This mode is usefull during debug. The
server will not drop a client which does not respond to the heartbeat
messages.

Has anyone tested if this helps?


  View Profile of marimba      Edit/Delete This Post   Reply with quote
cdragon


Joined: May 29, 2002
Posts: 60
From: Boston, MA USA
Posted: 2002-07-06 22:10   
In my most humble opinion, the -z option does not help. It doesn't even work. Of all the options of the rt server, the -z options crashes and exits the server on startup. Unless you place the option after another valid option, like "-az". Then the server won't crash, but that doesn't mean the -z switch is working. Any character after the "-a" will work. So, the server starts up with "-abigail", "-aborigine", "-astromeria" like it starts up with "-az". "-azimuth" works, too.

So go figure. If it works for you, then let me know.


  View Profile of cdragon   Email cdragon   ICQ status         Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.012991 seconds.