Page 1 of 4

ManiaLive r2207

Posted: 07 Feb 2011, 17:08
by aseco
And once again it is time for a big update :-)

This time we've done even more innovation in the windowing system and hope it will bring pleasure ...
Image

Upgrade
Since release r1830 you can use the the Updater script which will do all the dirty work for you.
On windows simply execute ManiaLive/update/update.bat.
For linux you need to navigate to ManiaLive/update and then execute "php update.php".

Download
If you want to upgrade from any older version or this is your first install, go to http://www.manialive.com.
See the download tab for the latest release, download and extract it.

Plugins
As always you can download just the core, but that won't do much :-)
Download the new plugin package on: http://code.google.com/p/manialive/downloads/list
Extract it to the ManiaLive folder. After that you need to add the plugins in your config file so that they are loaded (read the wiki on the google project on how to do that).

Features you should know about
You have now the possibility to make your windows maximizeable. Use the onResize method to react on a size change of your window to make it most dynamic - you can take a look into the standard plugins on how to do this. You will also need to tell the window that it should display the maximize button by using $this->setMaximizable();
This is however only possible for ManagedWindows, like the window borders that now are automatically drawn.
If you want to give your ManagedWindow a title, you can do so by using $this->setTitle('Whatever'); Do both of these things either in the constructor, or after getting the window instance with Window::Create($login).
To use the WindowHandler features you don't have to get its instance anymore, all the methods are static and accessible from anywhere, like WindowHandler::showDialog($dialog); which will display the window above all others and deactivate all buttons below.
Furthe on, a new feature is the buzzing of windows, which you can use as a static method of the window class.
For example: MyRecordWindow::Buzz() will highlight all windows of that type that are currently minimized by any player.
There has been some deeper changes too, of course. I will short address the ones that are (maybe) going to break compability to previous plugins:
First I have renamed the Window's onShow method to onDraw (so make sure you rename it in your code as well ...) and also the onRecover to onShow.
Finally, if you call a public method of a plugin now, the pluginid is appended as last parameter and not as first one - make sure you use all parameters on a call otherwise the pluginid will end up at the wrong position!

Changes
+ dialog window now uses autonewline.
+ windowhandler has been updated.
+ general architectural improvements of the windowing system.
! managedwindow will now always have background and window border with buttons.
* managedwindows can be maximized.
+ windows can be buzzed now, which will generate blue flashing.
+ dialog windows can be displayed without reference/parent windows.
! renamed onShow to onDraw and onRecover to onShow.
+ threads have access to the Loader::config values now - introduced data sending to threads.
+ using new run script for linux using hand-detaching instead of ssdaemon
+ features new manialib version.
- fixed issue 14 uses login now instead id.
! when calling public methods of plugins the pluginid is added as last parameter now.
*/! from the next release on version numbering will happen based on the google code revision.

Re: ManiaLive r2207

Posted: 07 Feb 2011, 19:26
by reaby
Really really good work and many thanks for the window events!

Re: ManiaLive r2207

Posted: 07 Feb 2011, 23:19
by Faster10x
Hello all !

I have a problem when I start run.bat. I got this:

Fatal error: Exception thrown without a stack frame in Unknow on line 0


So I d'ont know where is the problem...

My config.ini:

Code: Select all

;------------------
; ManiaLive
;------------------

; the default path is 'php.exe' on windows and 'php' on linux
phpPath =C:\PHP\php.exe

; the default is %application%/logs
; logsPath = /var/logs

; whether to write console output into a file, default is Off
; runtimeLog = On

;------------------
; Dedicated Server
;------------------

server.host = 'localhost'

server.port = 5002

; standard user level is SuperAdmin
; server.user = 'SuperAdmin'

; server.password = 'SuperAdmin'

; when a connection can't be established after the given amount
; of time, it will timeout and manialive will shutdown.
server.timeout = 1

;------------------
; Admins
;------------------

; Add admins, that shall be able to control your server from game.
admins.logins[] = 'micsoccer10'

;------------------
; Plugins
;------------------

; Add plugins to load.
; plugins.load[] = 'Author\PluginName'

;------------------
; Threading
;------------------

; threading can improve performance of your application. it
; allows modules to push blocking work onto another processes,
; this can also improve stability, because timeouts or
; unexpected exceptions do not impact the main application.

; if you have stability problems try to deactivate threading first
; threading.enabled = true

; how long may a thread be busy until it is killed
; threading.busy_timeout = 20

; how long, if not busy, may it take for a thread to response to a ping
; threading.ping_timeout = 2

; how many jobs should be send on each loop.
; increasing this value will boost jobs/time
; decreasing it will result in a reaction time improvement.
; threading.chunk_size = 10

; if threading is disabled, then how much time should be spend on
; each application loop to process work that would have been assigned
; to other threads normally
; default value is 1 second.
; threading.sequential_timeout = 1

;------------------
; ManiaHome
;------------------

; enabling the maniahome feature allows other modules to send
; notifications about eg. records or other actions on your
; server to player's friends.

; disabled by default.
; maniahome.enabled = true

; maniahome.user = ''

; maniahome.password = ''

; maniahome.manialink = ''

;------------------
[hostname: testHost]
;------------------

; put here the configuration specific to an host
My run.ini:

Code: Select all

; config the path to your php executeable here
phpPath=C:\PHP\php.exe
; do not remove this line!
Thank you for your help ! :)

Re: ManiaLive r2207

Posted: 08 Feb 2011, 10:41
by aseco
@Faster10x:
I feel like I repeat myself, but:
Is it possible that you don't have write permissions in the directory you've installed ManiaLive to?
Otherwise I don't have much of a clue because this can happen due to a wide range of possibilities ...
Did check the file permissions of the ML and logs folder help?
Which Php version are you using and which extensions do you have enabled?
I need more information to be able to determine the source to the problem ...

Re: ManiaLive r2207

Posted: 08 Feb 2011, 10:46
by aseco
reaby wrote:Really really good work and many thanks for the window events!
Thanks!
Knutsel has told me about a few remaining bugs (mainly in some plugins that weren't updated correctly) and I will be sorting them out the next hours to days ;)
Other recommendations and requests are welcome!
There's still some very small stability issues (which seem to depend on machine configuration) that will need fix until a perfect release.

Re: ManiaLive r2207

Posted: 08 Feb 2011, 15:55
by maurath
Hi, I have a problem with mania live

I'm the same as in the instructions on http://www.manialive.com, but will not start mania live.

I am using Server version: 5.0.51a-24 + lenny5

here is my config.ini

Code: Select all

;------------------
; ManiaLive
;------------------

; the default path is 'php.exe' on windows and 'php' on linux
; phpPath = /path/php
phpPath = /usr/bin/php
; the default is %application%/logs
; logsPath = /var/logs

; whether to write console output into a file, default is Off
; runtimeLog = On

;------------------
; Dedicated Server
;------------------

server.host = 'localhost'

server.port = '5030'

; standard user level is SuperAdmin
server.user = 'SuperAdmin'

server.password = 'xxxxxxx'

; when a connection can't be established after the given amount
; of time, it will timeout and manialive will shutdown.
; server.timeout = 1

;------------------
; Admins
;------------------

; Add admins, that shall be able to control your server from game.
; admins.logins[] = 'yourloginhere'
admins.logins[] = 'maurath'
;------------------
; Plugins
;------------------

; Add plugins to load.
; plugins.load[] = 'Author\PluginName'

;------------------
; Threading
;------------------

; threading can improve performance of your application. it
; allows modules to push blocking work onto another processes,
; this can also improve stability, because timeouts or
; unexpected exceptions do not impact the main application.

; if you have stability problems try to deactivate threading first
threading.enabled = true

; how long may a thread be busy until it is killed
; threading.busy_timeout = 20

; how long, if not busy, may it take for a thread to response to a ping
; threading.ping_timeout = 2

; how many jobs should be send on each loop.
; increasing this value will boost jobs/time
; decreasing it will result in a reaction time improvement.
; threading.chunk_size = 10

; if threading is disabled, then how much time should be spend on
; each application loop to process work that would have been assigned
; to other threads normally
; default value is 1 second.
; threading.sequential_timeout = 1

;------------------
; ManiaHome
;------------------

; enabling the maniahome feature allows other modules to send
; notifications about eg. records or other actions on your
; server to player's friends.

; disabled by default.
; maniahome.enabled = true

; maniahome.user = ''

; maniahome.password = ''

; maniahome.manialink = ''

;------------------
[hostname: testHost]
;------------------

; put here the configuration specific to an host

Re: ManiaLive r2207

Posted: 08 Feb 2011, 16:20
by farfa
if 5.0.51a-24 is your php version, update to php 5.3.3 to be able to run ManiaLive, otherwise it's normal that you can't start it

Re: ManiaLive r2207

Posted: 08 Feb 2011, 16:47
by Knutselmaaster
5.0.51a-24 is the Debian version number.
You should check your php version and extensions.

Re: ManiaLive r2207

Posted: 08 Feb 2011, 18:35
by maurath
So I have in my PHP version 5.2.6-1 + lenny9

The command apt-get install php5 brought me the following result "PHP5 is standing on the latest"

What can I do with running PHP 5.3.3?

here my phpinfo file http://188.40.201.120/info.php

Re: ManiaLive r2207

Posted: 08 Feb 2011, 18:54
by Jojo_44
maurath wrote:So I have in my PHP version 5.2.6-1 + lenny9

The command apt-get install php5 brought me the following result "PHP5 is standing on the latest"
http://www.tm-forum.com/viewtopic.php?p=190233#p190233

You have to do this ;)

regards, Jojo