Saving a game without a name breaks the game.

Fixed
CumpsD [github] · 5 years ago

Describe the issue

When you save a game without a name, you destroyed the game.

To Reproduce
Steps to reproduce the behavior:

  1. Save a game without a name.
  2. Restart
  3. Get into an infinite loop because it tries to load saved games, but has a check to refuse empty strings.

Expected behavior

A game which starts :)

(Reproduced on discord)

Captain Filip Captain Filip · 5 years ago

Thanks, this was fixed in v0.2.0a pushed just now. Can I ask how did you manage to save game without name? Normally the save button is grayed-out when the name is empty.

Str3amR [github] · 5 years ago

Thanks, this was fixed in v0.2.0a pushed just now. Can I ask how did you manage to save game without name? Normally the save button is grayed-out when the name is empty.

You were able to hit enter to generate the empty save even if the button was grayed out (not tested on the latest version)

CumpsD [github] · 5 years ago

Yes, sounds possibly. My hand slipped when I wanted to type and I hit enter :)

Str3amR [github] · 5 years ago

Ok I tested it again on the latest alpha and there is still a bug in the save screen where you can click "New save", click on the textbox and press Enter without entering anything and it bypass the disabled save button.

Maybe this should be filled as another bug and let this one close since it no longer break the game?

Captain Filip Captain Filip · 5 years ago

Maybe this should be filled as another bug and let this one close since it no longer break the game?

It's fine, I will try to fix this one as part of this issue, but it is a little mysterious what is causing the enter to submit the button, since we don't do that. It must be some default behavior in Unity.

Closed as ✅ Fixed

5 Showing 1–7 of 7