Post #1 · Posté à 2014-12-06 05:28:57pm il y a 9.7 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
Reg. 2012-09-13 | |
"ITG, The Best Dance Machine!" |
Hello, Im currently looking for a List with all the known Message Commands, im adding some features to my Theme but I cannt contibue because Idk if exist a determinate MessageCommand, I have found a list but is not helping me...
Is there a more completed list??
For example, Im making a function that show you the AliveSeconds during a Gameplay until you dead, the function works but the problem is idk how to refresh it... I have already used JudgmentMessageCommand and others but is not what i want...
Is there a MessageCommand that will start with the first beat of a song or something similar, because I need the function refresh each second until you dead... Well any information please post it... Thanks anyone.
Is there a more completed list??
For example, Im making a function that show you the AliveSeconds during a Gameplay until you dead, the function works but the problem is idk how to refresh it... I have already used JudgmentMessageCommand and others but is not what i want...
Is there a MessageCommand that will start with the first beat of a song or something similar, because I need the function refresh each second until you dead... Well any information please post it... Thanks anyone.
Post #2 · Posté à 2014-12-06 05:37:14pm il y a 9.7 années
https://github.com/stepmania/stepmania/blob/master/Docs/Themerdocs/moremsg.txt
I don't think that list is entirely up to date, but it's a good starting point.
As for showing "AliveSeconds", there is a PlayerStageStats method "GetAliveSeconds" which should do the trick for you.
I don't think that list is entirely up to date, but it's a good starting point.
As for showing "AliveSeconds", there is a PlayerStageStats method "GetAliveSeconds" which should do the trick for you.
Post #3 · Posté à 2014-12-06 05:43:44pm il y a 9.7 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
Reg. 2012-09-13 | |
"ITG, The Best Dance Machine!" |
Quote: Mad Matt
https://github.com/stepmania/stepmania/blob/master/Docs/Themerdocs/moremsg.txt
I don't think that list is entirely up to date, but it's a good starting point.
As for showing "AliveSeconds", there is a PlayerStageStats method "GetAliveSeconds" which should do the trick for you.
I don't think that list is entirely up to date, but it's a good starting point.
As for showing "AliveSeconds", there is a PlayerStageStats method "GetAliveSeconds" which should do the trick for you.
Thanks Mad Matt but that one is the list I found, but Idk what command or if I have to do something else, I have already made the function that show you the AliveSeconds, it works, if I uses the JudmentMessageCommand the AliveSeconds will be refresh each time the Judgment is executed, but my Idea is it refresh like a Timer and there is where Im having troubles:
Quote
local t = Def.ActorFrame{
LoadFont("Common Normal")..{
Name="P1AliveSeconds";
Text=" ";
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1;visible,GAMESTATE:IsPlayerEnabled(PLAYER_1));
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
JudgmentMessageCommand=function(self, param)
if GAMESTATE:IsPlayerEnabled(PLAYER_1) then
self:queuecommand("RedrawP1AliveSeconds");
end
end;
RedrawP1AliveSecondsMessageCommand=function(self)
local AliveSeconds = STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetAliveSeconds( )
self:settext(AliveSeconds)
self:zoom(0.5)
end;
};
}
return t
The problem is, I have tried use some of that list, but them doesnt works as I want (like a Timer).
Post #4 · Posté à 2014-12-06 05:51:19pm il y a 9.7 années
Mad Matt | |
---|---|
Member | |
65 Messages | |
Reg. 2011-10-26 | |
If you want to make something update every second, you can use a simple queuecommand loop.
In this case, you could also use the ActorClass "ScoreDisplayAliveSeconds".
In this case, you could also use the ActorClass "ScoreDisplayAliveSeconds".
Post #5 · Posté à 2014-12-06 06:00:25pm il y a 9.7 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
Reg. 2012-09-13 | |
"ITG, The Best Dance Machine!" |
Quote: Mad Matt
If you want to make something update every second, you can use a simple queuecommand loop.
what you mean with queuecommand loop? is not same I used below??
JudgmentMessageCommand=function(self, param)
if GAMESTATE:IsPlayerEnabled(PLAYER_1) then
self:queuecommand("RedrawP1AliveSeconds");
end
end;
Quote
In this case, you could also use the ActorClass "ScoreDisplayAliveSeconds".
Sorry but what you mean, what is the ActorClass "ScoreDisplayAliveSeconds"?? Sorry Im highly beginner with LUA, I just have made some function by my own but I still with a low knowledge, I've tried to fing "ScoreDisplayAleSeconds" here kki.ajworld.net/lua/sm5/Lua.xml but nothing found.
Post #6 · Posté à 2014-12-06 06:03:57pm il y a 9.7 années
Quote
local t = Def.ActorFrame{
Def.BitmapText{
Name="P1AliveSeconds";
Font="Common Normal";
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OnCommand=function(self) if GAMESTATE:IsPlayerEnabled(PLAYER_1) then self:queuecommand("Update") end end;
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
UpdateCommand=function(self)
self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetAliveSeconds( ))
self:sleep(1);
self:queuecommand("Update");
end;
};
}
return t
Def.BitmapText{
Name="P1AliveSeconds";
Font="Common Normal";
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OnCommand=function(self) if GAMESTATE:IsPlayerEnabled(PLAYER_1) then self:queuecommand("Update") end end;
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
UpdateCommand=function(self)
self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetAliveSeconds( ))
self:sleep(1);
self:queuecommand("Update");
end;
};
}
return t
Quote: Th3_Ov3rHell_3XoduZ
Sorry but what you mean, what is the ActorClass "ScoreDisplayAliveSeconds"?? Sorry Im highly beginner with LUA, I just have made some function by my own but I still with a low knowledge, I've tried to fing "ScoreDisplayAleSeconds" here kki.ajworld.net/lua/sm5/Lua.xml but nothing found.
Quote
local t = Def.ActorFrame{
Def.ScoreDisplayAliveTime{
Name="P1AliveSeconds";
Font="Common Normal";
PlayerNumber = PLAYER_1;
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
};
}
return t
Def.ScoreDisplayAliveTime{
Name="P1AliveSeconds";
Font="Common Normal";
PlayerNumber = PLAYER_1;
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
};
}
return t
You can find a list of all existing ActorClasses here: https://github.com/stepmania/stepmania/blob/master/Docs/Themerdocs/actordef.txt
You won't find ScoreDisplayAliveTime in the Lua.xml because it has no methods of it's own, but it is a derivative of BitmapText.
Post #7 · Posté à 2014-12-06 06:10:08pm il y a 9.7 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
Reg. 2012-09-13 | |
"ITG, The Best Dance Machine!" |
Quote: Mad Matt
Quote
local t = Def.ActorFrame{
Def.BitmapText{
Name="P1AliveSeconds";
Font="Common Normal";
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OnCommand=function(self) if GAMESTATE:IsPlayerEnabled(PLAYER_1) then self:queuecommand("Update") end end;
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
UpdateCommand=function(self)
self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetAliveSeconds( ))
self:sleep(1);
self:queuecommand("Update");
end;
};
}
return t
Def.BitmapText{
Name="P1AliveSeconds";
Font="Common Normal";
InitCommand=cmd(y,SCREEN_TOP+66+20*3;x,SCREEN_CENTER_X-178;zoom,0.5;shadowlength,1);
OnCommand=function(self) if GAMESTATE:IsPlayerEnabled(PLAYER_1) then self:queuecommand("Update") end end;
OffCommand=cmd(diffusealpha,1;decelerate,3;diffusealpha,0);
UpdateCommand=function(self)
self:settext(STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetAliveSeconds( ))
self:sleep(1);
self:queuecommand("Update");
end;
};
}
return t
Oh that.. I never figure out something like that, right, at the moment to queue the command Update it will looped it, and the sleep command also works for change the refresh time... Well thanks, know this will help for understand better how to make functions.
Thanks you for the help Matt!
Post #8 · Posté à 2014-12-16 09:04:37am il y a 9.7 années
I was linked/referred to this: http://ssc.ajworld.net/midiman%27s_big_list_of_usefuls.txt
No clue how up to date it is though... Sorry.
~ SpoOkyMagician
No clue how up to date it is though... Sorry.
~ SpoOkyMagician