Skip to main content
Topic: Short Tutorial: How to test the network mode (Read 18277 times) previous topic - next topic

Short Tutorial: How to test the network mode

This is a short tutorial for those people who want to test the new network mode.

First of all, you must download a nightly version from Simutrans Nightly-Downloadpage, if possible download the most recent one, with the binary and the pakset (I recommend pak64). I test it in Windows and I used the GDI version, so the binary name is simu-gdi.exe. After installing the new version, you must open two terminals (Linux) or MSDOS consoles (Windows)

Then, you must go to simutrans directory (with cd .. you go down the file tree and with cd directory go up)

The above is for the server, so you must type the following command..
Code: [Select]
simu-gdi.exe -server -log 0 -debug 0
..that will run the game in server mode. Then, inside the game we start a new world and wait for the client.

The bottom will be for the client, so you must type the following command..
Code: [Select]
simu-gdi.exe -log 0 -debug 0
..to init the client in debug mode.


Next, with the server waiting and the client initiated, we load the new world in the client with the name  net:127.0.0.1. This will cause the client to connect to the local loop, ie at your same machine so the delay (lag) should be the minimum.


Now resize the game windows to split screen mode, and you will see how to change something in one of the two, the change is reflected in both. Try to build a road, or create a bus line and buy a bus. You see how the bus moves at the same time on both screens.


Re: Short Tutorial: How to test the network mode

Reply #1
And this makes it handy to leave one in public service, and one in human :D

Re: Short Tutorial: How to test the network mode

Reply #2
There is a new tool for connecting available: Putting something like "dialog_tool[28]=,n" into your menuconf.tab will enable an internet connection tool. You just have to enter teh name or the IP-number of the server you want to connect.

The local computer is either called "localhost" or "127.0.0.1". If you are connecting to a remote computer, make sure port 13353 is not blocked.


Re: Short Tutorial: How to test the network mode

Reply #3
YAY!!!



If you are connecting to a remote computer, make sure port 13353 is not blocked.
How do I know it? I use WinXP.


Re: Short Tutorial: How to test the network mode

Reply #5
Now I just need a few friends and it is finally going to happen! Simutrans in net = SimuNet! :O