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</a>, 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..
(http://nightly.simutrans-germany.com/)
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..
simu-gdi.exe -log 0 -debug 0
..to init the client in debug mode.
us (site down, do not visit) ]/image/show/G-0SuyGee3/img1.jpg](http:///thumbstore/af/G-0SuyGee3.img1_thumb.jpg) (http://files.[%20simutrans%20[dot)
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.
us (site down, do not visit) ]/image/show/GvnweBIE3m/cargar.png](http:///thumbstore/5e/GvnweBIE3m.cargar_thumb.png) (http://files.[%20simutrans%20[dot)
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.
us (site down, do not visit) ]/image/show/NJ1iVjfy7R/conectados.png](http:///thumbstore/34/NJ1iVjfy7R.conectados_thumb.png) (http://files.[%20simutrans%20[dot)
And this makes it handy to leave one in public service, and one in human :D
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.
YAY!!!
(http://simutrans-germany.com/files/upload/netgameFTW.png)
Quote from: prissi on August 28, 2010, 06:07:53 PMIf you are connecting to a remote computer, make sure port 13353 is not blocked.
How do I know it? I use WinXP.
Heh. I can list the servers, but I can't join. :P
Now I just need a few friends and it is finally going to happen! Simutrans in net = SimuNet! :O