Website for editing config-file (fMOCE) - VERSION 1.1 nov30

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

Post Reply
fMads
Engineer
Engineer
Posts: 4
Joined: 24 Nov 2010 08:45

Website for editing config-file (fMOCE) - VERSION 1.1 nov30

Post 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
Last edited by fMads on 30 Nov 2010 19:31, edited 2 times in total.
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Website for editing config-file (fMOCE)

Post 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?
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
fMads
Engineer
Engineer
Posts: 4
Joined: 24 Nov 2010 08:45

Re: Website for editing config-file (fMOCE)

Post 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 :p
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..
Arie-
Director
Director
Posts: 593
Joined: 20 Jan 2009 16:07

Re: Website for editing config-file (fMOCE)

Post 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.
User avatar
norbert79
Engineer
Engineer
Posts: 102
Joined: 25 Apr 2003 16:44
Location: Hungary
Contact:

Re: Website for editing config-file (fMOCE)

Post 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?
Üdvözlettel / Mit freundlichen Grüßen / Best regards:
Norbert


Image Image
Image Image
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Website for editing config-file (fMOCE)

Post by planetmaker »

What about choosing newgrfs?
fMads
Engineer
Engineer
Posts: 4
Joined: 24 Nov 2010 08:45

Re: Website for editing config-file (fMOCE)

Post by fMads »

Wrong post
Last edited by fMads on 30 Nov 2010 19:30, edited 1 time in total.
fMads
Engineer
Engineer
Posts: 4
Joined: 24 Nov 2010 08:45

Re: Website for editing config-file (fMOCE)

Post 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?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests