Project

General

Profile

Bug #2513

Client locks up when creating a new save containing a "?"

Added by iClunk over 10 years ago. Updated over 8 years ago.

Status:
Closed
Severity:
Low
Assignee:
-
Category:
Controls and UI
Target version:
-
Start date:
06/05/2014
% Done:

100%

Version:
Platform:
Win32
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

When I try to create a new save game (Sandbox or career) that contains a "?" the client tries to create the save then gets stuck: all menu options are greyed out and are not clickable such that the only way to do anything is to restart the client.

I have tried going through the process with other non-alphanumeric characters, specifically "!", "%", "\", and "." but they create a new save without issue - only in names with a "?" does this bug occur and it also occurs when the save name is just "?" or if the save name contains valid characters in addition to "?".

I noticed this in 0.23 initially and after upgrading to 0.23.5 (clean install) but I am unsure if it occurred before 0.23.


Related issues

Related to Kerbal Space Program - Bug #5844: Spaceplane Hangar IssueClosed11/06/2015

History

#1 Updated by TruePikachu over 10 years ago

Also check saves containing a '*' in the name.

Under Windows, '?' is a wildcard which can match a single character, like the regular expression /./ does. Going further, '*' matches at least one character, like the regex /.+/ (NOT /.*/) does.

It is possible that the wildcard is being passed to Windows, which either is confused, or did something which confused KSP.

I'm interested in the save file structure with a save with '\' in the name. In fact, check '/' as well, since that also works under Windows.

EDIT: The following characters can NOT be used in filenames and should be error-checked for in all file writing operations (named quicksaves, craft names, save names):
  • '\' and '/' are path delimination characters (Quicksaves can use these for subdirs though)
  • ':' is used as a suffix for protocols and special devices
  • '*' and '?' are wildcards (see above)
  • '<' and '>' are for redirection
  • '|' is for piping

#2 Updated by Squelch over 9 years ago

  • Platform Win32 added
  • Platform deleted (Windows)

#3 Updated by Squelch almost 9 years ago

  • Related to Bug #5844: Spaceplane Hangar Issue added

#4 Updated by TriggerAu over 8 years ago

  • Status changed from New to Needs Clarification

#5 Updated by TriggerAu over 8 years ago

  • Status changed from Needs Clarification to Closed
  • % Done changed from 0 to 100

Closing this report out for now. If you find it is still occuring in the latest version of KSP please open a new report (and this one can be linked to it.) For best results, the wiki contains really useful info for when creating a report http://bugs.kerbalspaceprogram.com/projects/ksp/wiki.

You can also ask questions about the bug cleanup in the forum here: http://forum.kerbalspaceprogram.com/index.php?/topic/143980-time-to-clean-up-the-bug-tracker/ and tag @TriggerAu to get my attention

Also available in: Atom PDF