NeoLemmix > Closed

[Bug][Player] Others' replays should not overwrite own records

<< < (2/2)

namida:
Okay, let's discuss how to handle this.

In regards to how to handle this - I assume we want one's own replay to update these records. But someone else's replay, we don't. What about if we load someone else's replay, partially play it, then interrupt it?

If we're going to do this - how do people feel about a name (which can, of course, be a pseudonym) being stored in the replay file? If we use the profiles feature, the name could simply be obtained from the current profile. If not, it would be entered on first run, and could be edited in the settings menu. A name would not be required if the profiles feature is not also in use - but replays saved without a name would not be possible to detect whether they're your own or not. If people want the "detect own replays" feature, but also want to be able to share replays without their name in them, they could edit the name out and (aside from not being able to pass a "Is this my own replay?" test) the replay would still work.

namida:
I've made a branch "feature/username" which implements this. (EDIT: Not to be confused with "feature/profiles", which was the rejected multiple-profiles feature.)

On a user's first run of this version of NeoLemmix, the configuration window pops up. This window now has a prompt for a username. If a config file already exists, the window will pop up with only the username prompt (if no config file exists, it will prompt for a username and the usual first-run prompts). The username can later be changed in the Settings menu.

This username will be saved in replay files. Any replay, whether in the mass replay checker or by actually running in-game, will only update records / talismans / completion state if the username in the configuration matches the username on the replay file.

The default suggested username is "Anonymous", which also has some special treatment. The username "Anonymous", case-insensitive, will not be written to replay files, and will be considered to never match the username in a replay file.

If the user attempts to enter an empty username, it will instead treat it as if they entered "Anonymous".

If NeoLemmix is run with the command line parameter "-match-blank-replay-username", any replay file that doesn't contain a username will be treated as if it matched the current user's username (even when the username is "Anonymous"). This only lasts for the current session, and will return to normal behaviour once NeoLemmix is restarted without that parameter.

There is no multiple-profile support (that feature didn't have enough interest to be worthwhile), just a single username setting.

Navigation

[0] Message Index

[*] Previous page

Go to full version