E
ExtremeCheddar
Guest
Hello!
Since Game Maker Studio 2 now has the ability to disable the sandbox, I am now able to work on the built in level editor for my current game project. (It was possible before but the file restriction made it circuitous)
I was succesful trying to read content of a text file that was pre-created on my desktop. No problem at all.
However, when I'm trying to create a text file on the desktop (or any other directory outside the sandbox), it
still doesn't work. No file will be created.
Is this an undocumented limitation that prevents games from damaging anything or is there something wrong with my code?
There is nothing wrong with the program_directory formatting. Debugging shows a correct path.
Thanks for your help!
Since Game Maker Studio 2 now has the ability to disable the sandbox, I am now able to work on the built in level editor for my current game project. (It was possible before but the file restriction made it circuitous)
I was succesful trying to read content of a text file that was pre-created on my desktop. No problem at all.
However, when I'm trying to create a text file on the desktop (or any other directory outside the sandbox), it
still doesn't work. No file will be created.
Is this an undocumented limitation that prevents games from damaging anything or is there something wrong with my code?
Code:
var file=file_text_open_write(program_directory+"test.txt");
file_text_write_string(file,"hello world");
file_text_close(file);
Thanks for your help!