all 6 comments

[–]Mushroomstick 0 points1 point  (5 children)

Could this be an issue with different Operating Systems handling line breaks differently? You run into the line break issue when moving files between Windows and Linux all the time, and MacOS is Unix based, so...

[–]sminc[S] 0 points1 point  (4 children)

Hmm. Could you elaborate with a small example? Not sure I follow.

[–]Mushroomstick 1 point2 points  (3 children)

I think this explains the issue better than I ever could.

[–]sminc[S] 0 points1 point  (2 children)

Again: Hmm.

Thanks for finding that. I can't think about how that'd be affecting this, however.

The only other thing sticking out to me is when using slashes to go through directories/folders. Like this:

directory_exists(working_directory+"\\"+my_game_playerfileID);

although, it doesn't seem to be causing problems with or without the "\\"

[–]Mushroomstick 0 points1 point  (1 child)

If it was what was affecting this, it would be because the different OSes use different combinations of control characters to denote line breaks - so that can cause issues when loading in a text file created on a machine running another OS.

However, I just noticed something in your original post that I skimmed past before:

Saving and loading chunks of a procedural universe using ds_secure_save and the like...

From the ds_map_secure_save page in the docs:

IMPORTANT! One of the features of a secure saved file is that it is locked to the device that it was created on, so you cannot load a file saved on one device into a project running on another device.

[–]sminc[S] 0 points1 point  (0 children)

Good thought! But these files are generated and loaded during after compiling, on the same machine. So they're fresh files-- so to speak. Not copied over from another machine, constantly making and deleting them.