Closed as not planned
Description
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.
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jahodfra commentedon Nov 7, 2017
I am afraid that everybody would be able to send the same message and fake the score on leaderboard.
Jummit commentedon Nov 19, 2017
I am a little bit confused. What message? You mean the message the website is sending to change the top 10 list?
jahodfra commentedon Nov 19, 2017
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 commentedon Nov 24, 2017
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 commentedon Nov 24, 2017
@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 commentedon Nov 24, 2017
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 commentedon Nov 27, 2017
I don't see a way how to implement it :(
msx80 commentedon May 29, 2018
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.
Jummit commentedon May 2, 2023
Closing as hard to implement.