Page 1 of 1

[Resolved 0.2.8] Crash on Blank Save

Posted: Sat Feb 16, 2013 9:50 am
by Verbesity
Saving with no name entered crashes the game. Could be fixed by just auto filling it with something standard like Save Game 1 or some such.

Re: Crash on Blank Save

Posted: Sat Feb 16, 2013 11:47 am
by Heinrich
Generally the game is crashing when entering illegal filename characters. I recognized this by entering the "\" character. The upcoming error message states something like: "file not found". Alos loading (even selecting) the corrupt savegame causes the game to crash.

Re: Crash on Blank Save

Posted: Sat Feb 16, 2013 12:30 pm
by kovarex
Thank you for the report, we will definitely fix that.

Re: Crash on Blank Save

Posted: Sun Feb 17, 2013 2:38 pm
by kovarex
Resolved for the upcoming 0.2.8, this is the list of allowed characters:
  • a -z
  • A-Z (capital)
  • 0-9
  • .
  • -
  • _ (underscore)
This is to keep compatibility everywhere in the future.

If you think some character should be included, let me know.

Re: [Resolved 0.2.8] Crash on Blank Save

Posted: Mon Feb 18, 2013 12:48 pm
by Narc
0-9?

Otherwise looks okay to me. /[0-9a-zA-Z._-]+/ is how I'd parse that.

Re: [Resolved 0.2.8] Crash on Blank Save

Posted: Mon Feb 18, 2013 12:56 pm
by kovarex
Sorry, 0-9 was there ofcourse, I just didn't mention it in this topic (edited).
The regular expression is more compact definition, but not everyone understands it :)

Re: [Resolved 0.2.8] Crash on Blank Save

Posted: Mon Feb 18, 2013 1:03 pm
by Narc
Heh, I just included it to confirm I had it right. :)