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.
[ManiaScript] List of known bugs and Suggestions
Moderator: English Moderator
- djhubertus
- Translator
- Posts: 1252
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: [ManiaScript] List of known bugs and Suggestions
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
- alividerci
- Posts: 561
- Joined: 11 Feb 2012, 07:03
Re: [ManiaScript] List of known bugs and Suggestions
Bug with stamina value
All trick consist in CSmPlayer mode
code:
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
Code: Select all
Player.Stamina;
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;
}
}
}
***
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
- Dommy
- Translator
- Posts: 1901
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Re: [ManiaScript] List of known bugs and Suggestions
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;
}
}
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
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
- djhubertus
- Translator
- Posts: 1252
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: [ManiaScript] List of known bugs and Suggestions
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
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
- alividerci
- Posts: 561
- Joined: 11 Feb 2012, 07:03
Re: [ManiaScript] List of known bugs and Suggestions
Do you checked it? same as me?domino54 wrote:Will log exactly when you jump and land. Any bugs.
Re: [ManiaScript] List of known bugs and Suggestions
first of all: that's not part of ManiaScript itself but of the ModeBase scriptdjhubertus wrote:OnNewPlayer label is restarted every round/spawn, not only when player connect the server.
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
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.
- djhubertus
- Translator
- Posts: 1252
- Joined: 09 Jul 2012, 18:30
- Location: Poland
- Contact:
Re: [ManiaScript] List of known bugs and Suggestions
Is it work similar for spectators?(OnSpectatorAdded)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.
My Gamemodes:
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
MP4 - Countdown, Firefight
MP3 - Reduction, Overload, Flashpoint, Territory, SM Race, Escape
MP2 - Search & Destroy, Oscillation, Instagib
- alividerci
- Posts: 561
- Joined: 11 Feb 2012, 07:03
Re: [ManiaScript] List of known bugs and Suggestions
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
http://forum.maniaplanet.com/viewtopic. ... er#p228074
Who is online
Users browsing this forum: No registered users and 1 guest