Page 1 of 1
Website for editing config-file (fMOCE) - VERSION 1.1 nov30
Posted: 24 Nov 2010 08:59
by fMads
Hey
I have written a php-site, that can modify the config-file. It can change most (if not all) settings, you'll need for a server..
Try it out here:
http://www.sts-lan.dk/fMOCE
The site will work best in Google Chrome..
Download the script here:
http://sts-lan.dk/fMOCE/dl.php
It's all set to go - just download the 7z-file, unzip, change very few settings, and it'll work out of the box

There is a readme-file inside the 7z-file, with more install instructions..
You'll need a mysql-database, and it will be a good idea to have cUrl installed (it's not necessary)..
The config-file will be updated as soon as any change has been made..
Please write some feedback
fMOCE
fMads OpenTTD Config Editor
Cheers, fMads
[EDIT]
Version 1.1 is up
Changelog:
- No more MySQL
- Support for change of all data in config-file
- Will now change existing config-file
Re: Website for editing config-file (fMOCE)
Posted: 24 Nov 2010 11:56
by XeryusTC
Very nice to see that another (working) online config editor exists

The only thing I wonder about is how it handles unrecognized options; does it ignore them or add them to the config page. And if it ignores them, does it completely overwrite the save removing the unrecognized options or does it keep them? The reason I ask this is because autopilot adds additional settings to openttd.cfg which are only read by autopilot. If your script would overwrite the added settings then it wouldn't be of much use together with autopilot.
And another question: why do you need mysql for what is basicly a script to edit a text file?
Re: Website for editing config-file (fMOCE)
Posted: 24 Nov 2010 12:37
by fMads
XeryusTC wrote:Very nice to see that another (working) online config editor exists

The only thing I wonder about is how it handles unrecognized options; does it ignore them or add them to the config page. And if it ignores them, does it completely overwrite the save removing the unrecognized options or does it keep them? The reason I ask this is because autopilot adds additional settings to openttd.cfg which are only read by autopilot. If your script would overwrite the added settings then it wouldn't be of much use together with autopilot.
It completely overwrites the config.. If you look in the "functions.php"-file, you'll se, that the whole config-file is inthere, and just the lines that the script can control, are changeable..
XeryusTC wrote:And another question: why do you need mysql for what is basicly a script to edit a text file?
Because it was the easiest way

I don't need a script that can modify specific values - then it was easiest to do it with mysql..
But, maybe I can do it by just modifying - hmm - I'll try that

I haven't think of that solution..
Re: Website for editing config-file (fMOCE)
Posted: 24 Nov 2010 12:48
by Arie-
XeryusTC wrote:...
And another question: why do you need mysql for what is basicly a script to edit a text file?
First thing that I crossed my mind.
Re: Website for editing config-file (fMOCE)
Posted: 24 Nov 2010 12:53
by norbert79
What about GRF support?

Just to give you some improvment ideas.

Btw, is it only me, or do also others experienced the issue on having some settings reset after some changes in the CFG file itself?
Might it have something to do with the DOS way of storing TXT files? \r \n?
Re: Website for editing config-file (fMOCE)
Posted: 24 Nov 2010 12:53
by planetmaker
What about choosing newgrfs?
Re: Website for editing config-file (fMOCE)
Posted: 30 Nov 2010 19:28
by fMads
Wrong post
Re: Website for editing config-file (fMOCE)
Posted: 30 Nov 2010 19:29
by fMads
norbert79 wrote:What about GRF support?

Just to give you some improvment ideas.

Great with new ideas
planetmaker wrote:What about choosing newgrfs?
I'm not much into the newgrfs - how can that be changed in the config file?