OTTD-Server Administration per Webscript
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
OTTD-Server Administration per Webscript
Greetings,
i have begin to script a small php-site to admin an start the open ttd server in dedicated mode, but i have one little problem.
everytime i want to connect to a webscript-starting-server the server crashes, but only then. So i need a little help to fix it.
Thx.
MfG
CpKnoppers
i have begin to script a small php-site to admin an start the open ttd server in dedicated mode, but i have one little problem.
everytime i want to connect to a webscript-starting-server the server crashes, but only then. So i need a little help to fix it.
Thx.
MfG
CpKnoppers
- lucaspiller
- Tycoon
- Posts: 1228
- Joined: 18 Apr 2004 20:27
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
If i start the server per Browser (php-shell-command) then the server is online, but if i try to connect it with openttd-client the server says networkerror and in the serverlog is only a message that the server couldnt creat a dumpsave-file.
the same server start in the sh with root-rights run failure-free
thats the problem.
MfG
CpKnoppers
the same server start in the sh with root-rights run failure-free
thats the problem.
MfG
CpKnoppers
-
- Engineer
- Posts: 22
- Joined: 11 May 2005 09:10
- Location: Rueil-Malmaison (IdF, France)
I made a similar web page... but unfortunately, the hard drive of my server broke down a few days ago.
Maybe I could help you a little.
First of all, your web server is running linux or windows ?
I'm running linux (debian)
I run the dedicated server with a command "openttd -D -f -c condif.cfg".
All files must be on the good user... it is to said www-data.
But before saying more, I'll wait to know what is your OS.
Maybe I could help you a little.
First of all, your web server is running linux or windows ?
I'm running linux (debian)
I run the dedicated server with a command "openttd -D -f -c condif.cfg".
All files must be on the good user... it is to said www-data.
But before saying more, I'll wait to know what is your OS.
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 22
- Joined: 11 May 2005 09:10
- Location: Rueil-Malmaison (IdF, France)
It's important to know if it's windows or linux, since windows doesn't need "rights" on the files.
So, it's linux.
If you want to run openttd dedicated with your php, your "www-data" user needs rights on the files, and on the containing directory, in order to log on the "openttd.log" file.
Do you have this file ?
Does it show some errors ?
Did you try to ask the server with the php class contained in the website part of the SVN ?
(I'm not at home at the moment, I'm on holidays.. so it could take time before I answer... I'll be back on monday)
So, it's linux.
If you want to run openttd dedicated with your php, your "www-data" user needs rights on the files, and on the containing directory, in order to log on the "openttd.log" file.
Do you have this file ?
Does it show some errors ?
Did you try to ask the server with the php class contained in the website part of the SVN ?
(I'm not at home at the moment, I'm on holidays.. so it could take time before I answer... I'll be back on monday)
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 22
- Joined: 11 May 2005 09:10
- Location: Rueil-Malmaison (IdF, France)
This sounds very great.
I didn't have time this week to try all those ottd related stuffs... but I'll be back in a few days.. with a similar thing... and with web pages that display lots of informations
Did you succeed in connecting to the ottd dedicated server in order to send it some rcon commands, such as pause, unpause, or newgame ?
I think it could be very interesting, since it could allows the player to stay connect to the server (I think right now you had to restart the dedicated server in order to create a new game, so the player is disconnected)
I didn't have time this week to try all those ottd related stuffs... but I'll be back in a few days.. with a similar thing... and with web pages that display lots of informations

Did you succeed in connecting to the ottd dedicated server in order to send it some rcon commands, such as pause, unpause, or newgame ?
I think it could be very interesting, since it could allows the player to stay connect to the server (I think right now you had to restart the dedicated server in order to create a new game, so the player is disconnected)
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
if anybody can send me the openttd.inc.php to com@cpknoppers.de so i can integrate the script, but i cannot get connection to the svn-server.
Thx for sending
Thx for sending
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
I think you should replace "Transport Tycoon Deluxe" with TTD.CpKnoppers wrote:So for all the people who want to know the status here a screenshot
The name of the game is OpenTTD. ( i think the devs are very careful about that)
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly

I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
I hooked up my accelerator to my brake lights. I hit the gas, people behind me stop, and I'm gone.
Understeer is when you hit the wall with the front of the car. Oversteer is when you hit the wall with the rear of the car. Horsepower is how fast you hit the wall. Torque is how far you take the wall with you. Spoilers and bodykits are how much of the wall you take with you. Rollcages and windownets are how much of a mess you leave on the wall.
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
So here is an upgrade, things which are problematic were changed and i have the idea merged with my own portalsystem, because the whole script was to static.
New features are:
Multiple Versions of OpenTTD can run and managed at the same time,
The Portalsystem finds automaticly the account-infos from each Version.
So from now on it is possible to log each Gameinfos of registrated Player for Statistics, or other things
Here a pic of the actual status:

and for Testing and Visiting here:
http://openttd.cpknoppers.de/
New features are:
Multiple Versions of OpenTTD can run and managed at the same time,
The Portalsystem finds automaticly the account-infos from each Version.
So from now on it is possible to log each Gameinfos of registrated Player for Statistics, or other things

Here a pic of the actual status:
and for Testing and Visiting here:
http://openttd.cpknoppers.de/
-
- Engineer
- Posts: 12
- Joined: 04 Aug 2005 10:58
Who is online
Users browsing this forum: Google [Bot] and 14 guests