Page 1 of 1
Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 14:32
by rknetwork
Hello everyone,
Can't figure out why MinimalGS does not work on dedicated server on FreeBSD.
What I've done:
- Extracted Minimal GS.zip to /root/.openttd/game/mygs/
- Fetched SuperLib_for_NoGo-24.tar to /root/.openttd/content_download/game/library/
- Added to /root/.openttd/openttd.cfg:
MinimalGS should greet new human players in a news line, but it does not. =)
No errors are posted within openttd.log (even when setting debug to 3)
Tried to do same on Windows (client mode with starting server manually) - works fine.
Tried to do same on Windows (server mode -D) - does not work.
How do I get it to work? =)
Thanks.
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 14:57
by planetmaker
You should get a decent spanking for running an OpenTTD server as root.
Did you also get all required libraries? IIRC the "minimal GS" requires superlib.
What's the console output generated by ./openttd -D -d script=3 ?
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 15:03
by rknetwork
planetmaker wrote:You should get a decent spanking for running an OpenTTD server as root.
It's okay for testing.
planetmaker wrote:Did you also get all required libraries? IIRC the "minimal GS" requires superlib.
Yes I did (see original post).
planetmaker wrote:What's the console output generated by ./openttd -D -d script=3 ?
No errors in output (see original post).
If I remove superlib - debug shows that it's missing, which means that minimalgs compiles and runs, it just does not function. =)
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 18:23
by Zuu
The greeting news that MinimalGS shows is created at the first tick of the game. This works for single player games when the player starts after the first call to sleep in the GS. In MP however the GS would need to listen for the event when a new company is created to great the funder of new companies. This code does not exist in MinimalGS IIRC.
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 19:21
by peter1138
rknetwork wrote:planetmaker wrote:You should get a decent spanking for running an OpenTTD server as root.
It's okay for testing.
Why on earth would you need to test it as root?
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 19:54
by rknetwork
petern wrote:Why on earth would you need to test it as root?
To test under different user - I need to waste more time: create user, assign privileges, create new starting script, and some more... Why do I need it? There is no any reason I should do it.
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 19:57
by rknetwork
Zuu wrote:The greeting news that MinimalGS shows is created at the first tick of the game. This works for single player games when the player starts after the first call to sleep in the GS. In MP however the GS would need to listen for the event when a new company is created to great the funder of new companies. This code does not exist in MinimalGS IIRC.
Thanks, this helps a lot, I thought something was wrong with it. =))
IIRC sounds weird from you, since you are an author. =))
Re: Problems with Game Script on dedicated server (FreeBSD)
Posted: 31 Jan 2013 21:28
by krinn
rknetwork wrote:petern wrote:Why on earth would you need to test it as root?
To test under different user - I need to waste more time: create user, assign privileges, create new starting script, and some more... Why do I need it? There is no any reason I should do it.
Since when looking at the code to make sure the application do what it is suppose to do, building it, and running it is faster than using it with a test user ?
Because if you didn't do that, you are just plain stupid. Botnet are made with servers handled this way.