Openrct2: Unable to save track with colon symbol in name of ride

Created on 25 Feb 2015  路  10Comments  路  Source: OpenRCT2/OpenRCT2

Its not possible to save a track when there is a colon symbol in the name like the screen below.

Nothing happens if you press "save track design" maybe an error would be the solution if its too hard /impossible to fix.

nodoubledotsave

original bug

All 10 comments

That's possibly Windows choking on the colon, since those are reserved for drive letters. (In the same way Windows garbled the file names of Linux network shares if they contained colons).

Probably solveable by filtering the proposed file name for special characters like the colon, the asterisk, the question mark, etc. (Perhaps SDL has a function for this?)

Did this happen in the original game?

Yup it happened in the original since the file name is the ride name and vice-versa. An error would be useful though

@duncanspumpkin
If there would be a error message popping up, would it be using this string
聽聽聽聽聽聽 STR_3346 聽聽聽 :Can't save track design...
or more of a custom message that tells the user why? Like that it can't use colons in names and save

There would be no harm in making it a custom one with the limitations stated.

Or just get rid of the incorrect characters. I find an error message a lot less helpful.
This would preferable be done on platform level, as Linux can handle colons in filenames without any problems.

Or just get rid of the incorrect characters. I find an error message a lot less helpful.
This would preferable be done on platform level, as Linux can handle colons in filenames without any problems.

It isn't ideal though if you want to share those track designs. Allowing those characters should wait until we have our own format where we can store a non-constrained full UTF-8 name irrespective of file name.

So, rather than failing silently, it's best to just strip the offending characters for now, then, right?

This I think probably should be held off until during the implementation into the Standalone build (late fifth stable) as if we are already seeing the standalone build impending, plus, windows typically chokes on those things. With windows you can't actually save a file with such a name, though you can (and this is why I'm calling hold off on this since this will cause issues with backwards compatibility) have it so that the data written to the file is different than the file name, so that you can also save multiple tracks with the same name (so in the case of Goliath, the first would be Goliath, the second would have the file name Goliath1, the third Goliath2, and so forth but all would return the name "Goliath" when you go into the prebuilt ride menu for that particular type).

There is actually a very simple way to temporarily overcome the issue: use a character that is supported with a character code.

Like web pages might do %20 for "white space".
It is not ideal though because it would only work in OpenRCT2. (see http://www.w3schools.com/tags/ref_urlencode.asp for an example)

Was this page helpful?
0 / 5 - 0 ratings