[ManiaScript] List of known bugs and Suggestions

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

User avatar
Banane9
Posts: 8
Joined: 17 Aug 2012, 11:12
Contact:

Re: [ManiaScript] List of known bugs and Suggestions

Post by Banane9 » 06 Aug 2014, 00:22

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.

User avatar
djhubertus
Translator
Translator
Posts: 1233
Joined: 09 Jul 2012, 18:30
Location: Poland
Contact:

Re: [ManiaScript] List of known bugs and Suggestions

Post by djhubertus » 25 Aug 2014, 00:00

http://forum.maniaplanet.com/viewtopic. ... 79&t=28627

color attribute for <marker> doesn't work.
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib

User avatar
alividerci
Posts: 561
Joined: 11 Feb 2012, 07:03

Re: [ManiaScript] List of known bugs and Suggestions

Post by alividerci » 30 Aug 2014, 06:11

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 :?

User avatar
Dommy
Translator
Translator
Posts: 1872
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: [ManiaScript] List of known bugs and Suggestions

Post by Dommy » 30 Aug 2014, 11:14

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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD

User avatar
djhubertus
Translator
Translator
Posts: 1233
Joined: 09 Jul 2012, 18:30
Location: Poland
Contact:

Re: [ManiaScript] List of known bugs and Suggestions

Post by djhubertus » 30 Aug 2014, 12:36

OnNewPlayer label is restarted every round/spawn, not only when player connect the server.
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib

User avatar
alividerci
Posts: 561
Joined: 11 Feb 2012, 07:03

Re: [ManiaScript] List of known bugs and Suggestions

Post by alividerci » 31 Aug 2014, 04:36

domino54 wrote:Will log exactly when you jump and land. Any bugs.
Do you checked it? same as me?

User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [ManiaScript] List of known bugs and Suggestions

Post by steeffeen » 31 Aug 2014, 12:12

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
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    User avatar
    Eole
    Nadeo
    Nadeo
    Posts: 1227
    Joined: 26 Apr 2011, 21:08

    Re: [ManiaScript] List of known bugs and Suggestions

    Post by Eole » 01 Sep 2014, 13:11

    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.
    ;)
    Contribute to the ManiaPlanet documentation on GitHub
    A question about ManiaScript? Ask it here!

    User avatar
    djhubertus
    Translator
    Translator
    Posts: 1233
    Joined: 09 Jul 2012, 18:30
    Location: Poland
    Contact:

    Re: [ManiaScript] List of known bugs and Suggestions

    Post by djhubertus » 01 Sep 2014, 14:11

    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)
    My Gamemodes:
    MP4 - Countdown, Firefight
    MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
    MP2 - Search & Destroy, Oscillation, Instagib

    User avatar
    alividerci
    Posts: 561
    Joined: 11 Feb 2012, 07:03

    Re: [ManiaScript] List of known bugs and Suggestions

    Post by alividerci » 08 Sep 2014, 12:34

    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

    Post Reply

    Return to “ManiaScript”

    Who is online

    Users browsing this forum: No registered users and 3 guests