Logo

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

Register Log In Back To Forums

Post #1 · Posted at 2019-04-15 01:37:08pm 2.3 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"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 · Posted at 2019-04-15 02:17:21pm 2.3 months ago

Online razorblade
razorblade Avatar Member
917 Posts
Not Set
Reg. 2011-03-01
Log in to send this user a private message
https://www.pastiebin.com/5ca843f34a376
More actions. Less talks.

Post #3 · Posted at 2019-04-15 03:02:59pm 2.3 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"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 · Posted at 2019-04-15 03:45:00pm 2.3 months ago

Online razorblade
razorblade Avatar Member
917 Posts
Not Set
Reg. 2011-03-01
Log in to send this user a private message
No need to specify as it's indirectly stated already in this line:

for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
More actions. Less talks.

Post #5 · Posted at 2019-04-16 06:43:16am 2.3 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"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 · Posted at 2019-04-16 07:18:49am 2.3 months ago

Online razorblade
razorblade Avatar Member
917 Posts
Not Set
Reg. 2011-03-01
Log in to send this user a private message

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.
More actions. Less talks.

Post #7 · Posted at 2019-04-16 07:22:28am 2.3 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"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 · Posted at 2019-04-16 07:32:46am 2.3 months ago

Online razorblade
razorblade Avatar Member
917 Posts
Not Set
Reg. 2011-03-01
Log in to send this user a private message
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.
More actions. Less talks.

Post #9 · Posted at 2019-04-17 11:42:28pm 2.3 months ago

Offline StormTaker21
StormTaker21 Avatar Member
37 Posts
United States
Reg. 2014-10-20
Log in to send this user a private message
Xbox Gamer Tag: StormTaker21PlayStation Network: StormTaker21Nintendo Switch Friend Code: SW-4370-1733-4624Steam: StormTaker213DS 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.
https://i.imgur.com/xouw9hM.png?1

Post #10 · Posted at 2019-04-18 12:47:07am 2.3 months ago

Offline leadbman
leadbman Avatar Member
210 Posts
Australia
Reg. 2016-02-01
Log in to send this user a private message
"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 · Posted at 2019-05-31 08:38:33am 3.7 weeks ago

Offline kralde
kralde Avatar Member
198 Posts
Spain
Reg. 2009-05-28
Log in to send this user a private messageWindows Live Messenger: kralde[at]msn.comFacebookTwitter: kralde92
PlayStation Network: Kralde1Nintendo Network ID: kralde1Steam: kralde
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!
Register Log In Back To Forums

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

©2006-2019 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 2% · Database: 8% · Server Time: 2019-06-26 12:14:24
This page took 0.009 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language