Post #1 · Posté à 2019-04-15 01:37:08pm il y a 5.4 années
leadbman | |
---|---|
Member | |
263 Messages | |
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!
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!
Post #2 · Posté à 2019-04-15 02:17:21pm il y a 5.4 années
razorblade | |
---|---|
Member | |
1,106 Messages | |
Not Set | |
Reg. 2011-03-01 | |
Post #3 · Posté à 2019-04-15 03:02:59pm il y a 5.4 années
leadbman | |
---|---|
Member | |
263 Messages | |
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.
Post #4 · Posté à 2019-04-15 03:45:00pm il y a 5.4 années
razorblade | |
---|---|
Member | |
1,106 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
for pn in ivalues(GAMESTATE:GetHumanPlayers()) do
Post #5 · Posté à 2019-04-16 06:43:16am il y a 5.4 années
leadbman | |
---|---|
Member | |
263 Messages | |
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?
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?
Post #6 · Posté à 2019-04-16 07:18:49am il y a 5.4 années
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.4 années
leadbman | |
---|---|
Member | |
263 Messages | |
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.
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.
Post #8 · Posté à 2019-04-16 07:32:46am il y a 5.4 années
razorblade | |
---|---|
Member | |
1,106 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.4 années
StormTaker21 | |
---|---|
Member | |
45 Messages | |
Reg. 2014-10-20 | |
"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.4 années
leadbman | |
---|---|
Member | |
263 Messages | |
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.
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.
Post #11 · Posté à 2019-05-31 08:38:33am il y a 5.3 années
kralde | |
---|---|
Member | |
247 Messages | |
Reg. 2009-05-28 | |
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.
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