Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep hiscores with games with no native support #2

Open
eadmaster opened this issue Mar 26, 2020 · 0 comments
Open

keep hiscores with games with no native support #2

eadmaster opened this issue Mar 26, 2020 · 0 comments
Labels
enhancement New feature or request planning

Comments

@eadmaster
Copy link
Owner

eadmaster commented Mar 26, 2020

followup from this discussion:

there are 3 kind of games:

  1. games with hiscores keeping and viewing support + builtin save support for them (e.g. snes,F-Zero)
  2. games with hiscores keeping and viewing support, but no builtin save support, so they are lost once the machine is powered off (like nes,Super Mario Bros and the others in this list)
  3. games with no hiscores keeping and viewing support (like nes,Super Mario Bros 3 which only keep the score of the current session)

Games of the 3rd kind could be supported by adding the logic to decode the current player score and compare with the previous hiscore.
A separate datfile should be created to provide such infos (e.g. console_score.dat).

Possible entries format:

nes,advisln2:
nes,Hudson's Adventure Island II (U) [!]:
nes,crc32=5d8f80c7:
@:maincpu,program,7D8,5,00,00,decimal_powers

The new field decimal_powers describes how the score is stored in RAM.
The hiscore plugin will keep monitoring this address and compare the stored value with the one in the .hi file .

Since there is no native support to view the hiscore in these games, OSD messages could be used instead.

In some cases a custom script may be required to properly decode the value, so it should be possible to embedded minified lua.

EDIT: as alternative the hi2txt XML format could be used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planning
Projects
None yet
Development

No branches or pull requests

1 participant