Skip to content

scoreboard api #362

Closed as not planned
Closed as not planned
@Jummit

Description

@Jummit

How i think this would work: You can enable a scoreboard for the game, which will show up in the web browser. Then there is a variable like 'SCORE'. The highest value of the variable SCORE will be saved in the online scoreboard when played with internet connection.

EDIT:
i dont think that variable thing is good. New idea:
Function submit(num score) will send the score score to the leaderboard if it is high enough.

Activity

changed the title scoreboard api [enhancement] scoreboard api on Nov 3, 2017
added
enhancementImprovement of existing feature or adding something new
and removed
enhancementImprovement of existing feature or adding something new
on Nov 3, 2017
jahodfra

jahodfra commented on Nov 7, 2017

@jahodfra
Contributor

I am afraid that everybody would be able to send the same message and fake the score on leaderboard.

Jummit

Jummit commented on Nov 19, 2017

@Jummit
Author

I am a little bit confused. What message? You mean the message the website is sending to change the top 10 list?

jahodfra

jahodfra commented on Nov 19, 2017

@jahodfra
Contributor

I suppose that the cartridge would send message to some web site to record new score on online leaderboard. I am not sure how to prevent anybody to send the same message. Basically I see no way how to validate that the score was reached in a game except sending all player actions in a game and replaying the game on the trusted server.

Jummit

Jummit commented on Nov 24, 2017

@Jummit
Author

If you build it into tic, you could encrypt the message. Somebody could look at the source code though, or could look what message is sent at which score...

trelemar

trelemar commented on Nov 24, 2017

@trelemar
Collaborator

@Jummit Only submit the score if the game was ran directly from surf and the hash is unchanged. This would prevent anyone from submitting false scores.

jahodfra

jahodfra commented on Nov 24, 2017

@jahodfra
Contributor

All what is needed is to listen on the network and send the same request with larger score. The client is untrusted so any computation on the client are also untrusted.

nesbox

nesbox commented on Nov 27, 2017

@nesbox
Owner

I don't see a way how to implement it :(

msx80

msx80 commented on May 29, 2018

@msx80
Contributor

i don't think there's a generic way to make it secure. In a game i made years ago, i sent, along with the score, a recording of the game (like all user inputs with tic numbers) so that the server could "replay" the game and validate it. It was a car racing game and the recording worked also as downloadable "ghost car" for the record. I think only this kind of "ad hoc" solutions are possible.

added
discussionIssues with no clear action or preferred solution
enhancementImprovement of existing feature or adding something new
APIIssues related to TIC80 API
on Nov 7, 2019
Jummit

Jummit commented on May 2, 2023

@Jummit
Author

Closing as hard to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIIssues related to TIC80 APIdiscussionIssues with no clear action or preferred solutionenhancementImprovement of existing feature or adding something new

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @josefnpat@nesbox@jahodfra@Anrock@msx80

      Issue actions

        scoreboard api ยท Issue #362 ยท nesbox/TIC-80