Logo

[SM5] Issue with HoldJudgment 1x2 sprite not being called properly

Register Log In Back To Forums

Post #1 · Posted at 2017-11-27 03:14:44pm 6.4 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Hi all,

I'm needing some help, I'm doing HoldJudgment labels for my theme and I want to be able to swap between labels. However the problem I'm having is when I do this:

return Def.ActorFrame {
LoadActor("JudgementGraphics/"..judGroup.."/HoldJudgment label 1x2")..{
};
}

It just flips between the "O.K." and "N.G." parts of the image constantly till they fade out.

To stop this from happening I put in:
InitCommand=cmd(pause;);
To stop it changing between the two halves of the image but since I've had to do that, the game only displays "O.K." even if the metric for HoldJudgmentLetGoCommand is run (i.e. if I let go of the freeze during a hold).

My metrics are below. I have a feeling I might be able to check for a metric being run and then display the correct part of the HoldJudgment label?

[HoldJudgment]
HoldJudgmentHeldCommand=finishtweening;y,0;shadowlength,0;diffusealpha,0.5;zoomx,2.0;zoomy,0;linear,0.05;diffusealpha,1;zoomx,1;zoomy,1;sleep,0.8;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;
HoldJudgmentLetGoCommand=finishtweening;visible,true;shadowlength,0;diffusealpha,1;zoom,1;y,-10;linear,0.8;y,10;sleep,0.5;linear,0.1;zoomy,0.5;zoomx,2;diffusealpha,0;

Any help would be appreciated, I'm happy it's at least showing the O.Ks correctly, hopefully it won't be too difficult to fix the N.Gs.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #2 · Posted at 2017-11-27 04:09:55pm 6.4 years ago

Offline Kyzentun
Kyzentun Avatar Member
3,209 Posts
United States
Reg. 2008-02-20

"I'm honestly pissed off."
You need to use setstate to change the frame being displayed.
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

Post #3 · Posted at 2017-11-27 04:47:51pm 6.4 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Thanks for that Kyzentun. I'll look into that more when I get back to my PC later. Is there a way to check which state is being used for the HoldJudgment? As in, can I say:

if "Hold" then
self:setstate (0);
else
self:setstate(1);
end;

What should I have in place of "Hold" in that if statement if that's something I could do?

Thanks again for the heads up about setstate. Glad it's fixable.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #4 · Posted at 2017-11-27 05:58:07pm 6.4 years ago

Offline Engine_Machiner
Engine_Machiner Avatar Member
222 Posts
Colombia
Reg. 2014-01-16

"~The message~"
if self:GetState() == 1 and "Hold" then
blablabla
end


Can't tell if this is the right way, because I don't know what or how HoldJudgement gets called.
http://66.media.tumblr.com/652d5cdeea85a39ee07a6cffb343f8a7/tumblr_mhsqmzte3S1s5307io1_100.gif https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fmedia.riffsy.com%2Fimages%2F802c4321ccc6e92fb1caeddfaa52562f%2Fraw&f=1 https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fauto.img.v4.skyrock.net%2F3682%2F77303682%2Fpics%2F2981513201_1_7_CclapQKR.gif&f=1

Post #5 · Posted at 2017-11-28 03:33:19am 6.4 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
InitCommand=function(self)
if THEME:GetMetric("HoldJudgment","HoldJudgmentLetGoCommand") then
self:setstate(1);
self:pause();
else
self:setstate(0);
self:pause();
end;
end;


So the setstates work here, however I need to work out if I can find out if the hold is occuring. I think I'm going to have to check the Player Number and check if they have let go of the freeze somehow. That way the code will check during the freeze arrow. However I don't know how to find out if the player is holding a freeze during a song Neutral Is there any documentation for that? I was thinking I could check metrics, hence the if statement above, but I don't think that's possible as that would only be setting what to do when that action occurs in game.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #6 · Posted at 2017-12-01 08:21:53pm 6.3 years ago

Offline FlameyBoy
FlameyBoy Avatar Member
335 Posts
United States
Reg. 2011-03-09

Have you tried just returning the LoadActor rather than wrapping it in an ActorFrame?

Post #7 · Posted at 2017-12-02 04:41:07pm 6.3 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Quote: FlameyBoy
Have you tried just returning the LoadActor rather than wrapping it in an ActorFrame?

No I hadn't! I just did it and it works perfectly now. Thanks so much, I didn't think that the ActorFrame would cause the issue. Very, very happy that works now.

Thanks again!

Just so people who view this later are aware, I was able to achieve the swaps simply by using:
return LoadActor("JudgementGraphics/"..judGroup.."/HoldJudgment label 1x2")..{};

Where judGroup is the folder I wanted to get the new graphics from. I didn't need to check for holds etc.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.
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: 2% · Database: 4% · Server Time: 2024-04-23 08:27:15
This page took 0.007 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language