Page 2 of 6

Re: ManiaPlanet Server 2014-11-19

Posted: 19 Nov 2014, 20:25
by novationx
djhubertus wrote:
Hylis wrote:I think you can read/write the stamina value and I think that you can also change the gain.
Nope :/ It's read only(I'm getting compiler error)

And StaminaGain has still old range http://maniascript.tmrankings.com/html/ ... 41d40c753f
Sigh :(

Re: ManiaPlanet Server 2014-11-19

Posted: 19 Nov 2014, 20:33
by Alinoa
should not be this way, will look to fix asap

Re: ManiaPlanet Server 2014-11-19

Posted: 19 Nov 2014, 21:23
by jui
Noticed something strange with this version.
When leaving trough ESC menu the ManiaPlanet.PlayerDisconnect callback gets not fired, this happens for me when joining a dedicated through Local Play -> Local Network (it runs in a VM).

Negative effect is that the server is gone in the list of local network servers after leaving it one time, only restart game helps and then then server displays it like i am still connected.

Trackmania_2 Title server in script mode TA.

part of the log:

Code: Select all

2014/11/19 20:43:59] Connection of a new player: jui(192.168.56.1:2350)
[2014/11/19 20:45:22] Disconnection of jui(192.168.56.1:2350)
[2014/11/19 20:45:22] Connection of a new player: jui(192.168.56.1:2350)
Edit: hmm alos happens for me with old version, but im sure it worked before today.

Re: ManiaPlanet Server 2014-11-19

Posted: 19 Nov 2014, 22:42
by undef.de
xbx wrote: UI.OverlayHideEndMapLadderRecap , OverlayHideMultilapInfos
Will these be added to http://doc.maniaplanet.com/creation/man ... ry-ui.html also or are they already added, but the docs are outdated? ;)

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 08:55
by SSM.Speed...
salut/hi

3 SSM Lobby a jours
snap 100
maps ewsc+paragon

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 10:37
by Eole
@undef.de: I answered in the other topic. ;)

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 10:51
by Gugli
djhubertus wrote: Nope :/ It's read only(I'm getting compiler error)

And StaminaGain has still old range http://maniascript.tmrankings.com/html/ ... 41d40c753f
Ad you can see on the link you gave :

- StaminaMax can go from 0.1 to 3.0 (was 0.1 to 1.0 before)
- StaminaGain has not changed
- Integer Stamina is now writable (was const Integer Stamina before)

This should allow to do Stamina pickups

Code: Select all

Player.Stamina += 100;

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 12:45
by xbx
jui wrote:Noticed something strange with this version.
When leaving trough ESC menu the ManiaPlanet.PlayerDisconnect callback gets not fired, this happens for me when joining a dedicated through Local Play -> Local Network (it runs in a VM).
[...]
Edit: hmm alos happens for me with old version, but im sure it worked before today.
I'm trying to reproduce the problem, and indeed I'm observing at some rare times that the player disconnect is delayed. but it still happens after like 1 or 2 seconds. do you observe the same behaviour, or is the event never triggered in your case (until you reconnect)?

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 15:09
by djhubertus
Gugli wrote:
djhubertus wrote: Nope :/ It's read only(I'm getting compiler error)
This should allow to do Stamina pickups

Code: Select all

Player.Stamina += 100;
Ups, I tried to set Stamina before player spawn.

What is the maximum value of Stamina? 100? or is it flexible based on StaminaMax value?(ex 1.5=150)

Re: ManiaPlanet Server 2014-11-19

Posted: 20 Nov 2014, 15:34
by Gugli
djhubertus wrote: Ups, I tried to set Stamina before player spawn.

What is the maximum value of Stamina? 100? or is it flexible based on StaminaMax value?(ex 1.5=150)
Stamina is an Integer
Typical values are 10000 when full, or 30000 if you set StaminaMax to 3.