Page 1 of 2
OTTD-Server Administration per Webscript
Posted: 04 Aug 2005 11:08
by CpKnoppers
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
Posted: 04 Aug 2005 16:21
by lucaspiller
I don't mind helping, what exactly is the problem?
Posted: 04 Aug 2005 17:55
by CpKnoppers
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
Posted: 04 Aug 2005 19:17
by Pixel du Rezo
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.
Posted: 04 Aug 2005 19:41
by CpKnoppers
its suse linux, think that doesnt matter,
Posted: 04 Aug 2005 19:56
by Pixel du Rezo
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)
Posted: 04 Aug 2005 22:33
by CpKnoppers
I have the log file, i have change the owner of all files to the right ftp user, permissions are all given, and i havent got an error.

Posted: 09 Aug 2005 14:05
by CpKnoppers
So the whole config-script are ready, included new grfs which can coose by checkboxes, .
for more ideas that can be integrated post here

MfG
The Captn
Posted: 09 Aug 2005 16:44
by Pixel du Rezo
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)
Posted: 09 Aug 2005 19:04
by CpKnoppers
it seem so, i havend testet all dedicated ingame script comands

Posted: 11 Aug 2005 15:48
by nnl
Hello! Where can I get the script? Are you using openttd.inc.php to communicate with the server? How are you sending rcon commands to it?
Posted: 13 Aug 2005 10:14
by CpKnoppers
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
Posted: 14 Aug 2005 11:59
by nnl
Hi, I'Ve sent you an email with the file. Can you send me your script also, or post it here. Thank you!
Posted: 27 Aug 2005 13:51
by CpKnoppers
yes but its alpha and supports not multilingual, i want to finish it faster but at the moment i havent no time for it, i work on it the days, if it translated i will make a downloadable package
MfG
Der Captn
Posted: 27 Aug 2005 15:52
by CpKnoppers
So for all the people who want to know the status here a screenshot

[/img]
Posted: 27 Aug 2005 15:58
by DJClean
Damn that looks nice
Posted: 27 Aug 2005 21:44
by gkirilov
CpKnoppers wrote:So for all the people who want to know the status here a screenshot
I think you should replace "Transport Tycoon Deluxe" with TTD.
The name of the game is OpenTTD. ( i think the devs are very careful about that)
Posted: 28 Aug 2005 00:52
by CpKnoppers
i think youre right, it was only a placeholder for a layout, i havent yet a better idea ^^
Posted: 30 Aug 2005 00:56
by CpKnoppers
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/
Posted: 30 Aug 2005 15:02
by CpKnoppers
Sorry folks, i have forgotten some portalconfigurations, so useractivation wasnt possible, now it is configurate and can be uses.