Logo

List of Message Commands

Register Log In Back To Forums

Post #1 · Posted at 2014-12-06 05:28:57pm 9.3 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
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.
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #2 · Posted at 2014-12-06 05:37:14pm 9.3 years ago

Offline Mad Matt
Mad Matt Avatar Member
65 Posts
United States
Reg. 2011-10-26


Last updated: 2014-12-06 05:38pm
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.

Post #3 · Posted at 2014-12-06 05:43:44pm 9.3 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
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.

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).
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #4 · Posted at 2014-12-06 05:51:19pm 9.3 years ago

Offline Mad Matt
Mad Matt Avatar Member
65 Posts
United States
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".

Post #5 · Posted at 2014-12-06 06:00:25pm 9.3 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
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.
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #6 · Posted at 2014-12-06 06:03:57pm 9.3 years ago

Offline Mad Matt
Mad Matt Avatar Member
65 Posts
United States
Reg. 2011-10-26


Last updated: 2014-12-06 06:08pm
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

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

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 · Posted at 2014-12-06 06:10:08pm 9.3 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
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

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!
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #8 · Posted at 2014-12-16 09:04:37am 9.2 years ago

Offline spookymagician
spookymagician Avatar Member
33 Posts
United States
Reg. 2012-02-26

3DS Friend Code: 0946-2361-1762
"Doing Stuff..."

Last updated: 2014-12-16 09:20am
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
You don't have to understand me; I'm just there! ~ SpoOkyMagician
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 3% · Database: 4% · Server Time: 2024-03-28 16:58:50
This page took 0.005 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language