OTTD-Server Administration per Webscript

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

OTTD-Server Administration per Webscript

Post 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
User avatar
lucaspiller
Tycoon
Tycoon
Posts: 1228
Joined: 18 Apr 2004 20:27

Post by lucaspiller »

I don't mind helping, what exactly is the problem?
No longer active here, but you can still reach me via email: luca[at]stackednotion[dot]com
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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
Pixel du Rezo
Engineer
Engineer
Posts: 22
Joined: 11 May 2005 09:10
Location: Rueil-Malmaison (IdF, France)

Post 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.
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post by CpKnoppers »

its suse linux, think that doesnt matter,
Pixel du Rezo
Engineer
Engineer
Posts: 22
Joined: 11 May 2005 09:10
Location: Rueil-Malmaison (IdF, France)

Post 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)
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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.

:(
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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
Pixel du Rezo
Engineer
Engineer
Posts: 22
Joined: 11 May 2005 09:10
Location: Rueil-Malmaison (IdF, France)

Post 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)
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post by CpKnoppers »

it seem so, i havend testet all dedicated ingame script comands :)
nnl
Engineer
Engineer
Posts: 2
Joined: 11 Aug 2005 15:46

Post 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?
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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
nnl
Engineer
Engineer
Posts: 2
Joined: 11 Aug 2005 15:46

Post 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!
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post by CpKnoppers »

So for all the people who want to know the status here a screenshot
Image
[/img]
DJClean
Engineer
Engineer
Posts: 6
Joined: 21 Jul 2004 20:24

Post by DJClean »

Damn that looks nice
User avatar
gkirilov
Chief Executive
Chief Executive
Posts: 696
Joined: 03 May 2005 09:32
Location: Othala

Post 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)
OTTDCoop NewGRF Pack|Different sets of GRFs for TTDPatch (some of them work in OTTD) - 1|- 2|GRF sets for OTTD|OTTD nightly
Image
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.
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post by CpKnoppers »

i think youre right, it was only a placeholder for a layout, i havent yet a better idea ^^
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post 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 :D

Here a pic of the actual status:
Image
and for Testing and Visiting here:
http://openttd.cpknoppers.de/
CpKnoppers
Engineer
Engineer
Posts: 12
Joined: 04 Aug 2005 10:58

Post by CpKnoppers »

Sorry folks, i have forgotten some portalconfigurations, so useractivation wasnt possible, now it is configurate and can be uses.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google [Bot] and 14 guests