Page 2 of 4

Re: What is ManiaControl?

Posted: 11 Feb 2014, 21:00
by Chris92
Amazing! That's less than default XAseco2 :o

Re: What is ManiaControl?

Posted: 11 Feb 2014, 21:04
by Chris92
kremsy wrote:
Chris92 wrote:That sounds great! That's less than default XAseco2 :o
Ofc, the code is a lot more optimized compared to XAseco, you have to think the Aseco core was built in 2006 ;).
thats true :P Can't wait for this to come out

Re: What is ManiaControl?

Posted: 20 Apr 2014, 10:45
by nighthawk4571
Hi all
I have trouble getting this to start on my linux server. The script seems ok but I get an error:
Start script

Code: Select all

#!/bin/sh

php ManiaControl.php 2>&1 &

echo $! > ManiaControl.pid
Result

Code: Select all

> /home/BagRacing/TM3Test/application/ManiaControl.sh

sh: /home/BagRacing/TM3Test/application/ManiaControl.sh: /bin/sh^M: bad interpreter: No such file or directory
I have CentOS 6.5, MySQL Server 5.1.73, PHP 5.2.0.
Any ideas? I've always used XAseco but am willing to try this new controller with the new TM package but I can't find any information about the controller setup... Help please - anyone?

Cheers :?

Re: What is ManiaControl?

Posted: 20 Apr 2014, 10:48
by steeffeen
just a random guess but could you please try changing the line

Code: Select all

#!/bin/sh
to

Code: Select all

#!/bin/bash
?

Re: What is ManiaControl?

Posted: 20 Apr 2014, 10:55
by Xymph
nighthawk4571 wrote:sh: /home/BagRacing/TM3Test/application/ManiaControl.sh: /bin/sh^M: bad interpreter: No such file or directory
The ^M is obvious: strip the DOS newlines from your Linux scripts. ;)
steeffeen wrote:just a random guess but could you please try changing the line
Nah, in all Linux distro's /bin/sh is a valid path (often a symlink to /bin/bash or another shell).

Re: What is ManiaControl?

Posted: 20 Apr 2014, 12:30
by nighthawk4571
OK, I sorted that out and the script now works but...

ManiaControl starts, then quits with a transport error 111 - 'Couldn't authenticate with user 'SuperAdmin'. I know I have the correct details here.

I've changed the Server Connection Port in the server.xml file between 5040 and 2340 - same result.
Why is there a port entry under the MySQL Server section? I would think 'localhost' would do here.

Thanks Xymph for your input but I did spot the DOS issue and fixed that before this post. :)
I'm running XAseco2 until & unless I can get this new controller working. It really shouldn't be hard in linux and, as I read somewhere, the files were tested on unix systems - was that Mac I wonder...

Cheers 8-)

Re: What is ManiaControl?

Posted: 20 Apr 2014, 12:43
by steeffeen
nighthawk4571 wrote:Why is there a port entry under the MySQL Server section? I would think 'localhost' would do here.
one could have changed the default mysql port 3306, so it's possible to configure it
'localhost' is the host and not the port, you probably don't have to adjust these 2 lines so i don't see your problem
nighthawk4571 wrote:I'm running XAseco2 until & unless I can get this new controller working. It really shouldn't be hard in linux and, as I read somewhere, the files were tested on unix systems - was that Mac I wonder...
we've set it up on various different linux systems and didn't encounter your problems (and yes, we also tested it on Mac)
which brings me to my next point
nighthawk4571 wrote:ManiaControl starts, then quits with a transport error 111 - 'Couldn't authenticate with user 'SuperAdmin'. I know I have the correct details here.
I've changed the Server Connection Port in the server.xml file between 5040 and 2340 - same result.
sorry but that your server configuration seems to be incorrect isn't our fault
maniacontrol doesn't care about your port choice, only your network settings do
are you trying to connect from remote? then you have to enable that in your dedicated_cfg

Re: What is ManiaControl?

Posted: 20 Apr 2014, 12:57
by nighthawk4571
Well, I think I'm getting somewhere:

Code: Select all

> /home/BagRacing/TM3/application/ManiaControl.sh

Starting ManiaControl ...

Checking for installed MySQLi ... FOUND!

Checking for installed cURL   ... FOUND!

20.Apr 14 21:48:22 Loading ManiaControl v0.01...

20.Apr 14 21:48:22 Starting ManiaControl v0.01!

20.Apr 14 21:48:22 Connecting to server at 127.0.0.1:5040...

20.Apr 14 21:48:23 Server Connection successfully established!

PHP Parse error:  syntax error, unexpected '[' in /home/BagRacing/TM3/application/plugins/Dedimania/Dedimania.php on line 812

20.Apr 14 21:48:24 Quitting ManiaControl!
Hmmm - an edit needed? I never touched this file, honest!

* I lease a dedicated host server, which is in a rack in Brisbane (200km away), which I manage via Webmin. I have about 20 TM servers, rpc services (remoteRPC, adminserv, TMOS etc) and a couple of websites on it.