Had a thought, bytes 11-14 on the ATR file format are not used.

use bytes 11 and 12 to specify a single sector which can be marked as read-write, despite the mounted mode of the disk image. 

The purpose is to mark a sector that can store high scores on public TNFS servers.

If sector is accessed, cache is always flushed, and WRITEs to this sector cause a temporary re-open as read-write using a secondary file descriptor, which is then immediately closed.

Games that could utilize this, for example:

* Jumpman
* Track Attack
* Serpentine
* BC's Quest for Tires

thoughts?

I am the systems guy behind IRATA.ONLINE. http://irata.online/

2 Ostatnio edytowany przez tschak909 (2022-10-09 22:38:32)

The code to implement legacy saving of high scores in games, has been pushed to master.



Anyone who has done a software bring-up and can pull from master, can test:

(1) pull master, and build.
(2) go to apps.irata.online
(3) go to /Atari 8-bit/Games/High Score Enabled/ and select Jumpman.atr as READ ONLY.
(4) play a somewhat decent game of jumpman (at least 3000 points)
(5) plop score in hi-score table.
(6) See if score sticks.

Also, the documentation has been posted on how this is implemented:
https://github.com/FujiNetWIFI/fujinet- … gacy-Games

-Thom

Post's attachments

my_photo-1.jpg 47.2 kb, nikt jeszcze nie pobierał tego pliku. 

Tylko zalogowani mogą pobierać załączniki.
I am the systems guy behind IRATA.ONLINE. http://irata.online/

3

@16kram and I played a few rounds of Jumpman. Seems to work. :)

I am the systems guy behind IRATA.ONLINE. http://irata.online/

4

The current crop of high-score enabled games on apps.irata.online

Post's attachments

my_photo-3.jpg 47.56 kb, nikt jeszcze nie pobierał tego pliku. 

Screenshot from 2022-10-10 17-37-11.png 896.89 kb, nikt jeszcze nie pobierał tego pliku. 

Tylko zalogowani mogą pobierać załączniki.
I am the systems guy behind IRATA.ONLINE. http://irata.online/

5

A video showing the High Score Enabled feature now available for the #atari8bit #fujinet.

By using a few previously unused bytes in the header of ATR files, a range of sectors can be specified to be read-write, even if the disk image is mounted read only. With this feature, games on public TNFS servers can have high score tables on their disk images marked read-write, and scores will be written back to the server, transparently, without needing to change the game.

In addition, web pages can be set up to post high score table changes, as demonstrated in the video.

You can see the scores for these games here, and they refresh every 30 seconds: http://scores.irata.online/

Youtube video: https://www.youtube.com/watch?v=eOVfPQiFx7c

I am the systems guy behind IRATA.ONLINE. http://irata.online/