Author Topic: Help: How to set up a server (111.0 (r4851) and above)  (Read 2050 times)

0 Members and 1 Guest are viewing this topic.

OpiesRevenge

  • Guest
Help: How to set up a server (111.0 (r4851) and above)
« on: January 26, 2012, 09:39:18 PM »
Ok how do I do steps 2 and 3? In the same area as the other? does It matter where I enter info into the game like this like what areas what should go into?

trunky2

  • Guest
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #1 on: April 07, 2012, 03:33:47 PM »
I would like to have a VPS running for simutrans but so far I have had no luck in compiling simutrans on my own.
There was an tutorial I found but make process didn't went smooth, some error message that didn't gave me a hint.
Maybe it changed somthings in 111.2.2, any help will be appreciated for a public server (running Ubuntu 10.04)

trunky2

  • Guest
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #2 on: April 07, 2012, 04:22:23 PM »
EDIT: found both again
http://cheesehead-techblog.blogspot.de/2012/01/starting-simutrans-server.html
and
http://measureofchaos.blogspot.de/2011/03/simutrans-server-administration-guide.html

I got the sources from Soureforge, even not from the SVN. Also added pak128.

and the erro message I get a compiling:
===> LD  build/default/sim
build/default/besch/reader/obj_reader.o: In function `obj_reader_t::loac(char const*, char const*)':
/root/besch/reader/obj_reader.cc:180: undefined reference to `large_font_total_height'
build/default/boden/grund.o: In function `grund_t::display_overlay(short, short)':
/root/boden/grund.cc:1284: undefined reference to `large_font_total_height'
/root/boden/grund.cc:1287: undefined reference to `large_font_total_height'
/root/boden/grund.cc:1288: undefined reference to `large_font_total_height'
/root/boden/grund.cc:1284: undefined reference to `large_font_total_height'
build/default/boden/grund.o:/root/boden/grund.cc:1288: more undefined references to `large_font_total_height' follow
build/default/simwin.o: In function `win_draw_window_title':
/root/simwin.cc:328: undefined reference to `large_font_ascent'
/root/simwin.cc:330: undefined reference to `large_font_ascent'
build/default/vehicle/simvehikel.o: in function `vehikel_t::display_after(int, int, bool) const':
/root/vehicle/simvehikel.cc:1720: undefined reference to `large_font_total_height'
/root/vehicle/simvehikel.cc:1720: undefined reference to `large_font_total_height'
collect2: Id returned 1 exit status
make: *** [build/default/sim] Error 1


PS: tried to make a account here with a GMX address and never got a confimation mail, not even on new request


Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4303
  • Total likes: 207
  • Helpful: 151
  • Languages: EN, DE, AT
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #3 on: April 08, 2012, 11:53:04 AM »
Weird. What source code are you trying to compile? Please try the svn version:

svn://tron.homeunix.org/simutrans/simutrans/
username "anon"
password empty

To build version 111.2.2 use revision 5583.
Parsley, sage, rosemary, and maggikraut.

flth

  • Guest
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #4 on: April 11, 2012, 01:56:03 PM »
I'm probably too stupid... I fetched the svn from your source (thanks) and went through make ('ll try to make a tutorial based on the two others later).
Next problem was how to get a map... as I am on a real server I couldn't start simutrans regularily to create one, so I've uploaded one from my pc, so I could start the server version with it. But my local simutrans wasn't able to connect to it, well it was, the server echoed something like "xx.xx.xxx.xxx. connected", but never could play or anything.
Tutorial later hopefully, maybe I'll do another attempt on the server

Offline Fabio

  • Devotee
  • Administrator
  • *
  • Posts: 2898
  • Total likes: 7
  • Helpful: 91
  • The Pak128 Guy
    • Visit me on Facebook
  • Languages: EN, IT, RO, FR
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #5 on: November 28, 2012, 01:18:31 PM »
How to set up an LAN server - Tips

THe server is only visible, if it is registered on the server list. But you can connect to it without the list, just enter the address. Please only enter server to the list which are actually working.

How to set up a server and client on the same machine:

You will run Simutrans twice - once as the server*, once as "some" client. The instance started with -server option will be the server, and the other will connect to it. Connecting is where you will "add server".

The address 127.0.0.1 is special (everywhere) and means "same computer". So, you can use that only if you run Simu twice on one machine. Otherwise, you will have to find out your IP addresses yourself...

*Advisable: duplicate the whole Simutrans folder, choose one for server and edit server's simuconf.tab to have singleuser_install=1. This will prevent clashes of two Simutranses running on one computer, when you try stuff.

Comment from prissi:
The latter is usually not needed, I run the client and server from the same executable and it works nicely.

You can add a new link to the client by using "net:127.0.0.1" as filename for the -load option.
« Last Edit: November 28, 2012, 01:51:04 PM by prissi »

Kominasoki

  • Guest
Re: Help: How to set up a server (111.0 (r4851) and above)
« Reply #6 on: December 31, 2012, 12:47:44 AM »
Idk how you guys do to set up the .tab :o

Anyone can explain me step by step? =D

You guys are so pro,a video will have so many views
« Last Edit: December 31, 2012, 07:12:10 AM by Kominasoki »