ManiaLive r189

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

ManiaLive r189

Post by aseco »

So here finally it is, new ManiaLive with updated versioning system.
That's why the new version number decreased down to 189.
Image

Upgrade
This version should work well again with the update script.
Find it in the /update directory. Windows users execute the update.bat where Linux users will have to pass the file to the php executeable.

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
This release should not break any compabilities.
A new feature is that you can now (de)activate interface by pressing F7 shortkey.
Since now there's also a linkage to the repository system on the manialive manialink.
If plugins are updated correctly by developers, then ManiaLive will be able to tell you if there are new updates for your configuration.
ManiaLive is now updated too with a webservice, which should prevent false update alarms and make the whole process more flexible.
There are some updates on speed and stability as well, but this is only tweaking below the hood.

Changes
+ implemented f7 shortcut to hide/show all windows.
* use webservice to compare manialive version.
* updated the automatic update script to get the manialive version and downloadurl from the webservice.
+ use webservices to get new plugin updates from the remote repository.
+ implmented time sanity checks into the storage class.
* preformance improvements.
* swapped to newer version of manialib.
* edited callvote in connection to be more dynamic.
* improved panel control.
* performance and architecture updates.
Last edited by aseco on 24 Feb 2011, 16:15, edited 1 time in total.
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: ManiaLive r189

Post by 4lturbo »

I have just tested the new version of ManiaLink
You must change time validation for lap mode , ML always said that my time was ignored because number of checkpoints didn't match, sorry but in lap mode it isn't the number of check of the track, but (nb of check) * (nb laps)
Thanx to look at this ;)

ImHoTep

Edit: in Storage.php in function onPlayerFinish in switch(this->gameInfos->gameMode) "case 2" is misplaced
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: ManiaLive r189

Post by aseco »

4lturbo wrote:I have just tested the new version of ManiaLink
You must change time validation for lap mode , ML always said that my time was ignored because number of checkpoints didn't match, sorry but in lap mode it isn't the number of check of the track, but (nb of check) * (nb laps)
Thanx to look at this ;)

ImHoTep

Edit: in Storage.php in function onPlayerFinish in switch(this->gameInfos->gameMode) "case 2" is misplaced

Code: Select all

case Connection::GAMEMODE_LAPS:
	// check if checkpoint count equals challenge nbr of checkpoints multiplied by laps set by game settings
case Connection::GAMEMODE_ROUNDS:
case Connection::GAMEMODE_CUP:
case Connection::GAMEMODE_TEAM:
	// check if checkpoint count equals challenge nbr of checkpoints multiplied by laps
case Connection::GAMEMODE_TIMEATTACK:
	// check if checkpoint count equals challenge nbr of checkpoints
Is this correct now?
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: ManiaLive r189

Post by 4lturbo »

Yes it is, ;)
Will you update this in the next release ?

I think of something about this, ManiaLive would be more complete if you managed lap times ( in the function onPlayerCheckpoint of the Storage.php ) with creation of an event ON_PLAYER_NEW_BEST_LAP.
That will be great. ( if you have enough time of course )
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
User avatar
Xymph
Posts: 1399
Joined: 15 Jun 2010, 20:35
Contact:

Re: ManiaLive r189

Post by Xymph »

aseco wrote:

Code: Select all

case Connection::GAMEMODE_LAPS:
	// check if checkpoint count equals challenge nbr of checkpoints multiplied by laps set by game settings
Is this correct now?
Not for Dedimania, but I already mentioned that.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: ManiaLive r189

Post by 4lturbo »

Dedimania is a thing, but taking into consideration the game mode for a track in multilap :
  • if it is round, final time is total time (TimeOrScore in PlayerFinish callback it's the complete race)
    if it is time attack, final time is lap time (TimeOrScore in PlayerFinish callback is lap time)
    if it is lap mode, final time is total time (TimeOrScore in PlayerFinish callback is complete race)
The lap mode is as round mode (with one round), and there is not interest to make only one lap in lap mode.
So, if you do the test as you said ( for you total=nb checks of a track, for TM total=nb check of a track * nb laps) you never get a valid time. So Dedimania will never work (and never worked) with lap mode (works only for one lap).

I can understand that lap mode is a bit complicated to manage in Dedimania, but for me ManiaLive isn't Dedimania, let the plugin Dedimania do the Dedimania job and ManiaLive do ManiaLive job ;)


You want only lap time (for lap mode) in Dedimania, so if lap management is implemented (in PlayerCheckpoint callback for example in Storage.php for ManiaLive), this will be easier ( I can propose my help if you want , i manage lap time since 2007 in my programs)
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
User avatar
aseco
Posts: 96
Joined: 06 Jul 2010, 17:08
Location: Germany
Contact:

Re: ManiaLive r189

Post by aseco »

4lturbo wrote:Dedimania is a thing, but taking into consideration the game mode for a track in multilap :
  • if it is round, final time is total time (TimeOrScore in PlayerFinish callback it's the complete race)
    if it is time attack, final time is lap time (TimeOrScore in PlayerFinish callback is lap time)
    if it is lap mode, final time is total time (TimeOrScore in PlayerFinish callback is complete race)
The lap mode is as round mode (with one round), and there is not interest to make only one lap in lap mode.
So, if you do the test as you said ( for you total=nb checks of a track, for TM total=nb check of a track * nb laps) you never get a valid time. So Dedimania will never work (and never worked) with lap mode (works only for one lap).

I can understand that lap mode is a bit complicated to manage in Dedimania, but for me ManiaLive isn't Dedimania, let the plugin Dedimania do the Dedimania job and ManiaLive do ManiaLive job ;)


You want only lap time (for lap mode) in Dedimania, so if lap management is implemented (in PlayerCheckpoint callback for example in Storage.php for ManiaLive), this will be easier ( I can propose my help if you want , i manage lap time since 2007 in my programs)
Aye ok, the discussion helped yet a lot ...
If there's troubles I will be glad being able to contact you :-)
Planning new release for monday, as we're waiting for some cool new features in "other places".
i7 920 | Nvidia GTX260 | 4Gb DDR3
www.floschnell.de | I like that comic
alividerchi
Posts: 12
Joined: 18 Feb 2011, 09:07

Re: ManiaLive r189

Post by alividerchi »

I can not understand what the problem here is a screenshot
http://imageshack.us/photo/my-images/80 ... 01826.png/
alividerchi
Posts: 12
Joined: 18 Feb 2011, 09:07

Re: ManiaLive r189

Post by alividerchi »

this my code config.ini

Code: Select all

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

; the default path is 'php.exe' on windows and 'php' on linux
; phpPath = /path/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 = '5001'

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

; 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[] = 'alividerchi'

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

; Add plugins to load.
plugins.load[] = 'Freezone\Freezone'

plugins.Freezone\Freezone.wsPassword = '*****'
plugins.Freezone\Freezone.dbUser = 'root'
plugins.Freezone\Freezone.dbPass = '757377m'
plugins.Freezone\Freezone.dbName = 'aseco1'

;------------------
; 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
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: ManiaLive r189

Post by farfa »

Code: Select all

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

; the default path is 'php.exe' on windows and 'php' on linux
; phpPath = /path/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 = '5001'

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

; 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[] = 'alividerchi'

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

; Add plugins to load.
plugins.load[] = 'Freezone\Freezone'

plugins.Freezone\Freezone.wsPassword = '*****'

;------------------
; 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
Here is your correct config file. With the latest version of the FreeZone Plugin you don't need to configure a database as the plugin do not use MySQL
Also known as: satanasdiabolo
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests