LixD icon indicating copy to clipboard operation
LixD copied to clipboard

Display completion of level directories

Open Wuzzy2 opened this issue 6 years ago • 2 comments

Concept art of suggestion

Lix has a large number of levels, so I think this suggestion would be useful:

In the level selection, if you see directories listed, I suggest you shall see the completion status of the levels contained in the directory (level set). Display the number of levels completed vs the number of total levels in this directory. Write it on the button with the directory name on it, on the right side.

The directory name should be left-aligned (instead of centered) to make sure it doesn't overlap with the number.

Like so:

Lovely 40/40 Daunting 7/40 Quirky 2/40 Cunning 0/40 ...

This means 40 out of 40 levels have been completed in Lovely, but only 7 levels were done in Cunning, etc.

Completion of subdirectories is added to the total score of a directory as well. All levels in this directory and all its subdirectories count.

E.g.

lemforum 49/240 rubix 0/200 clam 1/113 ...

(see example image above)

If a directory contains no levels (including subdirectories), don't display a score.

There might be an alternative way to display completion. Instead of completed/total, display a percentage. E.g. 50% for a directory with 10/20 levels completed. If the shown percentage is not 100%, but would be rounded to 100%, display it as “>99%” instead to avoid confusion. The player could select between raw numbers and percentage display mode in the settings.

Wuzzy2 avatar Jun 23 '18 02:06 Wuzzy2

This is very reasonable. I agree with the GUI ideas. I'd probably stick with the exact fraction and would not offer percentage.


This suggestion comes at a good time: I have long-term plans to rewrite the trophy-to-level matching (association of checkmarks) and the level search (in the singleplayer browser). In 0.9.17, the level search indexes the levels on demand, and re-indexes from scratch every time user visits the level search. This is OK when the machine indexes 1000 files per second, but not all machines are this fast.

I'm considering to index the entire level tree in the background, and use a cached index (maybe even save the indexing to file) while the next indexing is still running. This makes the level search much faster and nicer.

For the tropy-to-level matching, 0.9.17 matches by full path alone. I'm considering to match by (author + level title + filename without path). This will require level indexing because we must open and read levels to know author and level file. More about this here: Lemmingsforums: Key of a level: How to map replays/trophies to levels

This #343 (Display completion of level directories) can then profit from the indexed level tree.

SimonN avatar Jun 24 '18 11:06 SimonN

I like this, this would be a nice way to see my achievements in a glance.

stavrossk avatar Jun 24 '18 13:06 stavrossk