Logo

[SM5] Method to get Machine Score for current steps?

Enregistré Connexion Retour aux forums

Post #1 · Posté à 2019-04-15 01:37:08pm il y a 5 années

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

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

I'm trying to improve the "Rivals" tabs in the Ace theme currently and I'm running into an issue, I can't seem to reliably get the Machine's high score for the currently selected difficulty. Is there a way to pull this? Side question, is it possible to get the players name that the score belongs to as well?

Hope there is a way as I'd really like to improve this!
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 · Posté à 2019-04-15 02:17:21pm il y a 5 années

Offline razorblade
razorblade Avatar Member
1,099 Messages
Not Set
Reg. 2011-03-01

Post #3 · Posté à 2019-04-15 03:02:59pm il y a 5 années

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

"Working On: 5thMix BGA bgchanges"
Thanks razor! So you do need to specify a Player Number then? I was hoping it'd be possible to get the best high score for the difficulty overall and not just in terms of the current player.
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 · Posté à 2019-04-15 03:45:00pm il y a 5 années

Offline razorblade
razorblade Avatar Member
1,099 Messages
Not Set
Reg. 2011-03-01

No need to specify as it's indirectly stated already in this line:

for pn in ivalues(GAMESTATE:GetHumanPlayers()) do

Post #5 · Posté à 2019-04-16 06:43:16am il y a 5 années

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

"Working On: 5thMix BGA bgchanges"
Ok so I've mostly got it working right now, thanks for the help razor.

Just a quick question though, in the stats.xml for the machine profile, the name of the player who got the score isn't listed. The PlayerGuid is listed though, would there be a way to find the Player's name from the PlayerGuid or would I have to force the theme to add the player's name to the stats.xml when a high score is achieved to get this to work?
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 · Posté à 2019-04-16 07:18:49am il y a 5 années

Offline razorblade
razorblade Avatar Member
1,099 Messages
Not Set
Reg. 2011-03-01


Last updated: 2019-04-16 07:19am
The name of the player uses default string like "-P1-" or "-P2-" if he just broke the record during that session. If player didn't input name during name entry, the name would return just nothing (as in "") the next time you play new session.

Post #7 · Posté à 2019-04-16 07:22:28am il y a 5 années

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

"Working On: 5thMix BGA bgchanges"
Interesting, so should I be able to automatically write the players display name to that instead of requiring a name entry screen right?

I'll have a look into how name entry screens work and see if I can put that code into the evaluation screen when the high score notification is popped.

Thanks for pointing me in the right direction. I thought I was going crazy when there were no names showing haha.
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 #8 · Posté à 2019-04-16 07:32:46am il y a 5 années

Offline razorblade
razorblade Avatar Member
1,099 Messages
Not Set
Reg. 2011-03-01

It's not advisable for me. What i do is if the hscore name is blank, settext it to "--------" instead to denote that player had not input hscore name.

Post #9 · Posté à 2019-04-17 11:42:28pm il y a 5 années

Offline StormTaker21
StormTaker21 Avatar Member
45 Messages
United States
Reg. 2014-10-20

Nintendo Switch Friend Code: SW-4370-1733-46243DS Friend Code: StormTakerGame Center Nickname: PyRuS StormZz
"YouTuber, Rhythm Game Player"
Where do you paste this at? I feel like it's in metrics.ini but I'm just making sure.

Post #10 · Posté à 2019-04-18 12:47:07am il y a 5 années

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

"Working On: 5thMix BGA bgchanges"
It's in ScoresP1/ScoresP2 in ScreenSelectMusic Decorations and ScreenEvaluation Decorations. It's not actually as easy as pasting it in. I've edited the way that the top scores display in order to show the machine scores and the Rival scores etc. Plus I've made new images for the lines.

Once I'm done I'll put the code up and if I can find a place to upload the images I'll do that too.
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 #11 · Posté à 2019-05-31 08:38:33am il y a 4.8 années

Offline kralde
kralde Avatar Member
247 Messages
Spain
Reg. 2009-05-28

Nintendo Network ID: kralde1
Quote: leadbman
It's in ScoresP1/ScoresP2 in ScreenSelectMusic Decorations and ScreenEvaluation Decorations. It's not actually as easy as pasting it in. I've edited the way that the top scores display in order to show the machine scores and the Rival scores etc. Plus I've made new images for the lines.

Once I'm done I'll put the code up and if I can find a place to upload the images I'll do that too.

if you teach me how to add this , it will be helpful a lot please! Im going crazy trying to get the rivals tab (mine didnt show at all...) and see the best score in the machine not only from the selected profile
Let's D-D-R!
Enregistré Connexion Retour aux forums

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

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-04-16 14:29:25
Page générée en 0.01 secondes.
Theme: starlight · Language: french
Reset Theme & Language