Will it be possible to make a highscore table in the future?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Will it be possible to make a highscore table in the future?

Post by sheamkennedy »

After reading through here ( https://rpg.hamsterrepublic.com/ohrrpgc ... er_game%3F ) I had noticed that it mentions that keeping track of a highscore table might be possible in the future. I was thinking about this for a future idea for an endless-runner type game similar to flappy bird in which the game continues until you fail. It's not a necessary thing to have a global highscore table but would be cool.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Foxley
Metal Slime
Posts: 832
Joined: Sat Nov 09, 2013 5:54 pm

Post by Foxley »

That should already be possible with import/export globals. You could have a designated save slot for high scores and other persistent metadata like unlocks, and just export the globals to it. Then for your startup script, import globals from that file.

For high scores, you could just have a bunch of globals like "highscore1st" "highscore2nd" etc. and give them numbers. Doing strings for things like high score initials is also possible, but a bit awkward. You essentially turn a string into a range of globals, with each global holding the ASCII value of each character of the string in order. Got it working with a game I was working on a couple of years ago so if you need help with it I'll see what I can do.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Foxley wrote:That should already be possible with import/export globals. You could have a designated save slot for high scores and other persistent metadata like unlocks, and just export the globals to it. Then for your startup script, import globals from that file.

For high scores, you could just have a bunch of globals like "highscore1st" "highscore2nd" etc. and give them numbers. Doing strings for things like high score initials is also possible, but a bit awkward. You essentially turn a string into a range of globals, with each global holding the ASCII value of each character of the string in order. Got it working with a game I was working on a couple of years ago so if you need help with it I'll see what I can do.
Oh maybe wasn't clear enough, I mean global highscores as in the world. The thing I linked says it might be possible to do this in the future. I was thinking I'd love to do a highscore-type game if the scores would be submitted to a world-wide ranking.
Last edited by sheamkennedy on Mon Jul 15, 2019 10:08 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Foxley
Metal Slime
Posts: 832
Joined: Sat Nov 09, 2013 5:54 pm

Post by Foxley »

Oops. Yeah, netcode isn't a thing yet, only James or TMC would know the status of it.
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

The main thing holding us back from this feature is that plotscripting does not support data structures yet

When it does, then the ability to make a REST call, get back json, and convert it into an object will be a more reasonable feature to add.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Bob the Hamster wrote:When it does, then the ability to make a REST call, get back json, and convert it into an object will be a more reasonable feature to add.

That's awesome! Thanks.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6462
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

next stop, turn based online multiplayer games!!
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Spoonweaver wrote:next stop, turn based online multiplayer games!!
That’d be really dope, any sort of multiplayer online game whether turn based or real-time would be great。 I imagine real-time would be beyond the scope of the engine but even then I’d love to just see some simple data sharing.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Gizmog
Metal King Slime
Posts: 2622
Joined: Tue Feb 19, 2008 5:41 am

Post by Gizmog »

NotSpyware.RPG would like to know your location and access your cookies
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6462
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

SecurityHelp.RPG has detected 576 virus in your system.
Please send $100 in Cryptocurrency to BXSHSADSLH123JD
Once sent, the viruses will be removed.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Gizmog wrote:NotSpyware.RPG would like to know your location and access your cookies
...maybe ;)

If someone made a creepy game where the game mentioned your location that’d be potentially terrifying.

All to often when I download apps they ask to have access to my location when the app has no functionality requiring it.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
Spoonweaver
Liquid Metal King Slime
Posts: 6462
Joined: Mon Dec 08, 2008 7:07 am
Contact:

Post by Spoonweaver »

sheamkennedy wrote: All to often when I download apps they ask to have access to my location when the app has no functionality requiring it.
Not that they tell you about anyways
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Hmmm... would network access alone be enough to detect someone's location without actually connecting to a local GPS device? (which we have no plans to support)

I am going to say yes, sort of.

There are plenty of IP geolocation services that can guess your approximate location from your IP address, and I am sure there are some such services out there that are compatible with the type of simple REST/RPC support I envision implementing someday.

But it would rarely be able to get your location more accurately than what city you are in, and it would be easily fooled by countermeasures like VPN.
User avatar
Gizmog
Metal King Slime
Posts: 2622
Joined: Tue Feb 19, 2008 5:41 am

Post by Gizmog »

If I can find out what city, I can make "100 Hot Singles in your area! Check it out, Rhode Island, CT!" pop up ads. And sell pop up blockers! And shill NordVPN in my game!
User avatar
Bob the Hamster
Lord of the Slimes
Posts: 7658
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

Anything to get you out of retirement ;)
Post Reply