Dedicated Multiplayer Server

More
9 years 6 months ago - 9 years 6 months ago #19570 by schmatzler

Space. The final frontier.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #19572 by 7upMan
Replied by 7upMan on topic Guess what that is...
:-)

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #19573 by schmatzler
Replied by schmatzler on topic Guess what that is...
I figured out how to run a dedicated server.

It's as simple as running "loader.exe -ac iwar2.icServerApp".

The problem is, it only seems to listen locally. I can connect to it if I'm in the same network on LAN, but I can't connect to it from a different IP. :(

If I get this working, we could have a 24/7 multiplayer server.

Edit:
I found more command line arguments that aren't really documented. When I start a Multiplayer game from the game itself, it spawns this:
Code:
loader.exe -ac iwar2.icServerApp -sp dm -sn Templar's Lair -stl 600 -sfl 10 -sm ini:/multiplayer/maps/piracy -aib

I guess:

ac = Application Code, i.e. Server or Singleplayer
sp = Gameplay Type
sn = Server Name
stl = Time Limit
sfl = Not sure. Maybe the Score Limit?
sm = Server Map

Opening iwar2.dll with a hex editor reveals even more stuff:

server_query_port...sqp
ai_count....aic
ai_skill....ais
ai_bots.aib
arcade_mode.am
console.c
server_player_limit.spl
server_frag_limit...sfl
server_time_limit...stl
server_name.sn
server_map..sm
server_package..sp

Space. The final frontier.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #19576 by schmatzler
Replied by schmatzler on topic Guess what that is...
I was able to get a connection. Bloody hell, the only problem was dpnetsvr.exe not starting up and opening port 2313 to connect to.

Now I am able to connect when running this:
Code:
./bin/release/loader.exe -hsn "i-war2 GOG" -hip "i-war2.com"

But it seems like everything is exploding all the time. It may be related to the decimal system bug with European windows systems:

web.archive.org/web/20041116144804/http:...m_with_mp_an_xp.html

[strike]As soon as I'm able to solve this, I will put up a big note on the front page so everyone can play.[/strike]

We are now officially online - have fun playing! :)

Space. The final frontier.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #19577 by RichardSkinner
I am assuming we need to disable all our mods and make sure we have f14.6?

The Priceline Negotiator

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #19578 by schmatzler
Yes, that's how the GOG version does it.

I don't know if it is possible to run a second server on the same machine. If it is, I will set one up with WhatRocks. That should be more cheat-proof. As far as I know, WhatRocks will disable all mods by itself.

The script which is running the server isn't very crash-proof at the moment, too. It doesn't restart the server when some errors happen. I will change that later. Let's cross our fingers in the meantime :P

Space. The final frontier.

Please Log in or Create an account to join the conversation.