Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: DePhille on April 15, 2007, 02:01:06 pm

Title: PHP Soldat.ini maker.
Post by: DePhille on April 15, 2007, 02:01:06 pm
Hi,

I've made a PHP script to make and edit soldat.ini files easily. It's hosted on SoldatPage (http://soldatpage.u13.net/) and you need an activated account to use the tool. I've done that to prevent abuse of the script, and to enlarge the SoldatPage community ofcourse.

It's currently still a BETA-version. Once it has been used for some time and no bugs have been reported, I'l change it's state.
Due to that, feedback is extremely welcome!

Features:
- Made for servers.
- Explanation with every setting.
- Upload and load an existing soldat.ini file.
- Generate new soldat.ini files.
- Simple GUI, easy to understand categories.

PHP INI Maker (http://soldatpage.u13.net/tools_inimaker.php)

Screenshot - Input (http://soldatpage.u13.net/dump/phpinimaker_screen2.gif)
Screenshot - Result (http://soldatpage.u13.net/dump/phpinimaker_screen1.gif)

Grtz, DePhille
Title: Re: PHP Soldat.ini maker.
Post by: jrgp on April 15, 2007, 02:38:55 pm
Very useful, but heres an idea. Why don't you have the result page actually throw you a Soldat.ini that you would be forced to download instead of having to copy + paste the files contents?
Title: Re: PHP Soldat.ini maker.
Post by: DarkNoddy on April 15, 2007, 09:28:00 pm
Probably because many people change the ini settings trough the Server Web interface, where you edit it in text.

Adding a Download link for the ini or something wouldnt be a bad Idea tho.
(I havent actually seen the ini Maker as the page says "you do not have permisson ...")

From the pictures: good job!
Title: Re: PHP Soldat.ini maker.
Post by: DePhille on April 16, 2007, 11:01:12 am
I will try to implement the download function.
I'm also looking for "official soldat.ini templates". A few years back you had the official SCTFL rules, I wonder if they still exist.

Also, the "You don't have permission to view this page" means you need an activated account to use the tool. Anyway, I'll rewrite that code so it also explains whyyou don't have permission to view the page.

Grtz, DePhille
Title: Re: PHP Soldat.ini maker.
Post by: mar77a on April 16, 2007, 05:01:46 pm
here's the one i use for the sna.gather servers, sctfl standards last time i checked

http://nagather.u13.net/gather.ini
Title: Re: PHP Soldat.ini maker.
Post by: SoulSnipa on April 17, 2007, 06:08:41 am
make it AJAX
Title: Re: PHP Soldat.ini maker.
Post by: DePhille on April 21, 2007, 06:02:31 am
Thanks for the suggestions.
I'll add the template as soon as I've finished the download link.

However, I don't see the purpose of using AJAX on this script. The only purpose would be to update the output whenever the user inserts a charatcer or so. However, that'd generate 5KB download with every keypress which isn't really useful. If you meant to just perform the XML parse when the button is clicked I still thnk it is better to use the POST method since it's alot simpeler to code, aot safer and every browser supports it.
However, Maybe I'm missing the point, please explain further.

Grtz, DePhille

Date Posted: 17-04-2007, 17:34:16
Updates:
The ini file will start downloading when you click the button.
Support for ini templates added.
Template "#sna.gather" added.
Problem with linefeeds fixed.

I'm still looking for some ini files to be used as templates, if you have any please let me know.

Grtz, DePhille
Title: Re: PHP Soldat.ini maker.
Post by: miketh2005 on January 26, 2009, 05:56:11 pm
outdated, sorry to bump, but i was womdering if you can make one for 1.4.2, if i use this my server wont start