MichaelSinsbeck / platformer

A ninja platformer written in LÖVE
7 stars 0 forks source link

Unwanted output in config.txt #215

Closed michalove closed 10 years ago

michalove commented 10 years ago

I found some unwanted output in the config.txt. Could you please check, where this comes from?

In case, this is written for the editor or the level-list, then we also might want to open a new file for these, such that the actual game state (current level...) is separate from that. bandana_bad_output

Germanunkol commented 10 years ago

Uh, that's weird. Thanks for reporting!

The author entry is the name of the author who last saved a level in the editor (where you enter your name). It's a convenience function to make sure the user doesn't need to re-enter his name for every level, so it's saved.

Germanunkol commented 10 years ago

I believe this has been fixed. Please delete the config.txt to test if it works now.

The issue was (afaik) that the author string is, by default, an empty string. Writing that empty string was no problem, but reading it back didn't work, so the game thought there was no author entry in saved and created a new one.