HyperRogue
Barbe-bleue Jun 18, 2023 @ 8:05am
How many local Highscores?
Yes, it's not a vital question. :bulbysmile: Curiosity doesn't kill cats, because felines have 7 lives.
I'm just starting out (2nd day) and I see that I've obviously played 47 runs. I found it hard to stop playing last night, even though I was accumulating blunders due to tiredness and the desire to sleep. In short, the number of games quickly increased. Are all scores kept or just 50, 100 or more? How many?
Last edited by Barbe-bleue; Jun 18, 2023 @ 8:19am
< >
Showing 1-5 of 5 comments
__m__Yn_F_onY__d Jun 18, 2023 @ 1:19pm 
Skimming the C++, looks like the log parser uses an std::vector of type struct {std::string; int[500];}, which on my system yields a theoretical limit of 4539061041759240 entries.

My log file goes back to March, 2015 and I have 421 entries in my highscores list.
Barbe-bleue Jun 18, 2023 @ 2:53pm 
Thanks, Monad.

It's going to take a while before some of my lousy scores are erased by new ones. If I consider that a run currently takes me about 30 minutes, I can do 2 every hour. In the best scenario, 10 hours a day already sounds like a lot. So I divide the astronomical number by 20. I'll be dead before those billions of years are up. :cleanhourglass:
zeno  [developer] Jun 20, 2023 @ 6:08am 
Generally all your scores are appended to the file hyperrogue.log, and old scores are never removed.

Before the limit mentioned by monad, you would probably exhaust your disk space. I am not sure how much disk space per run it takes for a typical player. But apparently I have 20747 records, and the file hyperrogue.log takes 18 MB.

Other than exhausting your disk space, another disadvantage of this is that loading this file might take a while -- it takes a few seconds for me. (And it has to be loaded on every startup.) So it might be good to implement some limit, or some other remedy, but I have not seen anyone complaint about this yet.
__m__Yn_F_onY__d Jun 20, 2023 @ 7:09pm 
Originally posted by zeno:
Before the limit mentioned by monad, you would probably exhaust your disk space.
Surely memory allocation would impose a stricter practical limit. I'm curious, is 20747 your number of "local highscores", or total log records? My log has 772 records overall, weighing 1.4 MB, which would be somewhat more pessimistic.
zeno  [developer] Jun 22, 2023 @ 12:53pm 
Total log records, so that includes earlier versions of saved games and games in cheat mode. There are 3440 entries in the local highscores.

In earlier versions of HyperRogue games would be recorded even if the player made no moves (that entries would be small), or when they were using the cheat mode. (It still records normal "cheat mode" but not "god mode" which I normally use for dev purposes; I generally enable "god mode" and use no log file for dev purposes now, but in the past, the file would grow.)
< >
Showing 1-5 of 5 comments
Per page: 1530 50