Page 8 of 9

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 06 Aug 2014, 00:22
by Banane9
Specifying classes on manialink controls doesn't seem to work.

That is, the ControlClasses Array (of CMlControl) is always empty, and HasClass always Returns false.

Edit: Solved. In That case the class Attribute has to be on the framemodel ... how Very intuitive ... and restricting.

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 25 Aug 2014, 00:00
by djhubertus
http://forum.maniaplanet.com/viewtopic. ... 79&t=28627

color attribute for <marker> doesn't work.

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 30 Aug 2014, 06:11
by alividerci
Bug with stamina value

Code: Select all

Player.Stamina;
All trick consist in CSmPlayer mode
code:

Code: Select all

***PlayLoop***
***
//anywhere in code
foreach(Player in Players){
if(Player.IsInAir){
 declare VerificatorGround for Player = True;
 VerificatorGround = True;
 log("Air"^Player.Stamina);
}
if(Player.IsTouchingGround){
 declare VerificatorGround for Player = False;
 if(VerificatorGround){
 log("Ground"^Player.Stamina);
 VerificatorGround = False;
 }
}
}
***
If you test this, so you must get values in Air(continuously log) and when you will fall down on the ground you must get one log about stamina
P.S Test it without acceleration, simple, fall many times from big high
P.S.S Bug consist from value on ground(don't use acceleration) when you falled, this will be 3600... WHY? But if i made custom delay in 1, it's work great :?

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 30 Aug 2014, 11:14
by Dommy

Code: Select all

foreach (Player in Players) {
    declare Boolean PlayerTouchSync = False;
    if (Player.IsTouchingGround && PlayerTouchSync) {
        log("On ground: "^Player.Stamina);
        PlayerTouchSync = False;
    } else if (!PlayerTouchSync) {
        log("In air: "^Player.Stamina);
        PlayerTouchSync = True;
    }
}
Will log exactly when you jump and land. Any bugs.

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 30 Aug 2014, 12:36
by djhubertus
OnNewPlayer label is restarted every round/spawn, not only when player connect the server.

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 31 Aug 2014, 04:36
by alividerci
domino54 wrote:Will log exactly when you jump and land. Any bugs.
Do you checked it? same as me?

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 31 Aug 2014, 12:12
by steeffeen
djhubertus wrote:OnNewPlayer label is restarted every round/spawn, not only when player connect the server.
first of all: that's not part of ManiaScript itself but of the ModeBase script
second: it was like that since ever and modes are built onto that, so if that would be changed now, modes would break
third: rather add a new label ***OnPlayerConnect*** or something

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 01 Sep 2014, 13:11
by Eole
To complete Steeffeen answer, If you need to know when a player join/leave the server you can use the OnPlayerAdded and OnPlayerRemoved events. The OnNewPlayer label was added as a "temporary" solution a long time ago when these two events didn't exist. It's still useful nowadays specifically because it's fired for each new turn/round.
;)

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 01 Sep 2014, 14:11
by djhubertus
Eole wrote:To complete Steeffeen answer, If you need to know when a player join/leave the server you can use the OnPlayerAdded and OnPlayerRemoved events. The OnNewPlayer label was added as a "temporary" solution a long time ago when these two events didn't exist. It's still useful nowadays specifically because it's fired for each new turn/round.
;)
Is it work similar for spectators?(OnSpectatorAdded)

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 08 Sep 2014, 12:34
by alividerci
What Is it mode when player stay in short water(i tested it is on ground) WHY it is need in other mode
http://forum.maniaplanet.com/viewtopic. ... er#p228074