Page 3 of 7
Re: ManiaLive, a new dedicated server manager
Posted: 31 Dec 2010, 15:42
by aseco
oliverde8 wrote:I realy think it is on my side also, I would be surprise if it isn't.
http://91.121.149.10/users/oliverde8/menuHud.rar
I would be even more surprise if my code can actually show something.

There is quite a lot of copy paste modify from your MenuBar in there

. I just need to get it recursive
Okay, finally I found what was causing the issue.
One reason was that you made wrong use of the callback method in the Button.php:
Code: Select all
$this->background->setAction($this->callback($this->getWindow(),'toggleSub',$this->id, $this->level));
which you should call like that:
Code: Select all
$this->background->setAction($this->callback(array($this->getWindow(),'toggleSub'),$this->id, $this->level));
The callback is just one parameter, either just a string to the callback method if it is in the same object. Or an array of the object the callback method can be found and its name.
Second there is a bug in the windowing system that caused a recursive search on an array.
It will be solved in the next release, until then you can fix it by using the eclipse patch:
http://files.manialive.com/windowing_patch.txt
Re: ManiaLive, a new dedicated server manager
Posted: 31 Dec 2010, 18:29
by oliverde8
Hi, I was using php 5.3.0 I just upgraded to php 5.3.4 because of some troubles with the ini files and have this error
-
Code: Select all
> ErrorException with code 0
Invalid CRT parameters detected
- in
C:\Users\oliver\Contacts\Desktop\oyun\TMF\ManiaLive_1.0b\libraries\ManiaL
ive\DedicatedApi\Xmlrpc\Client_Gbx.php on line 314
- Stack: #0 [internal function]:
ManiaLive\Application\ErrorHandling::createExcpetionFromError(2, 'Invalid
CRT par...', 'C:\Users\oliver...', 314, Array)
#1
C:\Users\oliver\Contacts\Desktop\oyun\TMF\ManiaLive_1.0b\libraries\ManiaL
ive\DedicatedApi\Xmlrpc\Client_Gbx.php(314): stream_select(Array, NULL,
NULL, 0, 2000)
#2
C:\Users\oliver\Contacts\Desktop\oyun\TMF\ManiaLive_1.0b\libraries\ManiaL
ive\DedicatedApi\Connection.php(108):
ManiaLive\DedicatedApi\Xmlrpc\Client_Gbx->readCallbacks()
#3
C:\Users\oliver\Contacts\Desktop\oyun\TMF\ManiaLive_1.0b\libraries\ManiaL
ive\Application\AbstractApplication.php(120):
ManiaLive\DedicatedApi\Connection->executeCallbacks()
#4
C:\Users\oliver\Contacts\Desktop\oyun\TMF\ManiaLive_1.0b\bootstrapper.php
(13): ManiaLive\Application\AbstractApplication->run()
#5 {main}
Re: ManiaLive, a new dedicated server manager
Posted: 02 Jan 2011, 12:26
by megaplayer
help! how i can start manialive? i'm having a dedicates server now and it works fine, but now i want to install manialive on it. i installed xampp and copied manialive into C:/xampp/htdocs/manialive/ i also made some configuration in config/config.ini/ (server name, host port, superadmin name and pw etc...) , but how i can start it now? pls answer me! if you're german, you can explain me in german

Re: ManiaLive, a new dedicated server manager
Posted: 02 Jan 2011, 12:46
by TheM
You have to double-click on the run-example.bat, this would start ManiaLive.
Re: ManiaLive, a new dedicated server manager
Posted: 02 Jan 2011, 12:53
by megaplayer
hmmm... looks like i have to configure where php.exe is. going backwards in directory is "../", right? i will try, thx
uhhmmm... where to configure that? ^^ sry for stupid question...
EDIT: ok, i changed the path now in run-example.bat, but how i can go backwards in directories? php exe is in
xampp/php/php.exe
and run-example.bat is in xampp/htdocs/manialive/run-example.bat
so i have to say that run-example.bat has to go 2 directorys back and then into /php/, and then start php.exe
Re: ManiaLive, a new dedicated server manager
Posted: 02 Jan 2011, 18:54
by Knutselmaaster
Just enter the full path (example C:\Program Files\XAMPP\php\)
Re: ManiaLive, a new dedicated server manager
Posted: 03 Jan 2011, 16:21
by Jojo_44
In the config.ini is a option called "phPath = xx/yyy" but how do the "run-example.bat" know this path ? For what is the option ?
and if i set
don´t work but this works:
regards, Jojo
Re: ManiaLive, a new dedicated server manager
Posted: 03 Jan 2011, 16:38
by farfa
Jojo_44 wrote:In the config.ini is a option called "phPath = xx/yyy" but how do the "run-example.bat" know this path ? For what is the option ?
This option is made for the threading system. It has to launch a new php thread. So if you want to use the threading system (for example the Dedimania use it) you have to set this option.
And obviously the .bat know anything about the config.ini file
Re: ManiaLive, a new dedicated server manager
Posted: 03 Jan 2011, 17:08
by Jojo_44
farfa wrote:And obviously the .bat know anything about the config.ini file
Yes and why must I set the phpPath in the "run-example" and also in the "config.ini", when the "run-example.bat" know anything about the config.ini ? Would be more easy if you set it in one time in the config.ini or ?
regards, Jojo
Re: ManiaLive, a new dedicated server manager
Posted: 03 Jan 2011, 17:14
by farfa
The only way to don't have to set the path to php.exe each time is to add php to your environment variable name PATH.
You can edit this in your system options