The International Simutrans Forum

 

Author Topic: Graphical interface for creating servers  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1198
    • Simutrans-BLOG
  • Languages: ES
Graphical interface for creating servers
« on: December 30, 2014, 09:12:47 PM »

Graphical interface for creating servers.


Create servers is very frustrating for novice players.
Does anyone thought of a graphical interface for creating servers games?

Offline Taurus

  • *
  • Posts: 60
  • Languages: DE, EN, FIN
Re: Graphical interface for creating servers
« Reply #1 on: January 04, 2015, 01:33:03 AM »

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1198
    • Simutrans-BLOG
  • Languages: ES
Re: Graphical interface for creating servers
« Reply #2 on: January 04, 2015, 03:04:02 AM »
Have you tried Cruzers Service? http://forum.simutrans.com/index.php?topic=13925.0
The service is very good !!
But my point is that there are players who want to create their own servers (for free) but have no idea how to do it.... and some may never resort to the forum in order  to figure out.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2719
  • Languages: EN
Re: Graphical interface for creating servers
« Reply #3 on: January 04, 2015, 04:08:04 PM »
I am working on porting the POSIX end to Windows built with MSVC however I ran into issues with the Pthread library crashing the process when someone joins.  The error being some internal thread causes a memory access exception which is hard to debug due to lack of the required debug data for the stack trace. Tracing all other threads show them blocked on some pthread object.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5531
  • Languages: EN, NO
Re: Graphical interface for creating servers
« Reply #4 on: January 04, 2015, 05:27:53 PM »
I am working on porting the POSIX end to Windows built with MSVC however I ran into issues with the Pthread library crashing the process when someone joins.  The error being some internal thread causes a memory access exception which is hard to debug due to lack of the required debug data for the stack trace. Tracing all other threads show them blocked on some pthread object.

I have no other advice than that you have to make sure all dynamic libraries use the same multithreaded runtime DLL.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2719
  • Languages: EN
Re: Graphical interface for creating servers
« Reply #5 on: January 04, 2015, 11:09:28 PM »
Quote
I have no other advice than that you have to make sure all dynamic libraries use the same multithreaded runtime DLL.
That was another issue which was solved ages ago when I rebuilt all the simutrans dependencies as part of a include cleanup (now I have my own skeleton set).

One of the timing functions used by the POSIX front was missing from the source code. Research showed that it used to be included as part of old MSVC however now it has been removed. As such I wrote my own version of the functions for timing using Windows natives instead so I wonder if it is possible that is the cause. I will probably need to build Pthreads to find out which is no easy task.


Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18721
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Graphical interface for creating servers
« Reply #6 on: January 04, 2015, 11:14:40 PM »
That was another issue which was solved ages ago when I rebuilt all the simutrans dependencies as part of a include cleanup (now I have my own skeleton set).

One of the timing functions used by the POSIX front was missing from the source code. Research showed that it used to be included as part of old MSVC however now it has been removed. As such I wrote my own version of the functions for timing using Windows natives instead so I wonder if it is possible that is the cause. I will probably need to build Pthreads to find out which is no easy task.

It might be worthwhile if you were to distribute this code that you wrote under a compatible open source licence. Indeed, could it be included in the Standard codebase, I wonder?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9516
  • Languages: De,EN,JP
Re: Graphical interface for creating servers
« Reply #7 on: January 06, 2015, 11:04:18 PM »
Threading a server has very little gain (apart from loading and saving though). Maybe first optimise this?

I did also compile a posix server for windows a while ago and it worked fine. However, I forgot whether I used multithreading or not.