So I'm probably just being dumb but I'm having difficulty loading my included ini files into my script. I've tried several things and they haven't been working.
Currently I've got:
var curini = file_find_first(program_directory + "/events/",0);
which returns the error:
Error! not allowing file...
I have been looking for a while now, and I cant seem to find a way to save surfaces to, or even move a saved surface file to a sub-directory I created. Am I missing something? or the folder creation only for text files?
The reason I want this is because upon exiting a room in my current game...
Hello everyone, I have a question, how can I create folders outside the working_directory on several devices? I already tried to do a test trying to create a folder in Windows "documents" and I could not create it
I'm trying to have my game access files which i have included with the executable. For the life of me i cannot figure out how to find the directory that the executable is in (program_directory doesn't return what i'm looking for). Not sure if im just being silly or if this is another gamemaker...
I have made two applications which link with each other using 2 text files they create by themselves on start. Each application creates one text file, and the other reads it.
The applications run fine and are able to read each other's text files on Mac, but when I exported it on Windows, the...
I feel like I'm missing something very obvious and easy here but I've been trying to figure this out for a couple of hours now and can't take it anymore.
I'm using the load_csv function to import a .csv file that I have in my Included Files folder.
obj_LootTableDatabase is going to hold all...
Game Maker: Marketplace
Windows Only [DLL]
In Game Maker you can use get_open_filename to browse for files, but there is no way to browse for folders. This extension allows you to open a folder browser dialog.
There are 2 functions that comes with the extension:
Is this a bug or is it intentional?
These include the last slash:
These don't, oddly enough:
I think they should all include the last slash personally, for consistency's sake.
Hello, I struggled with this simple issue for a bit because I was unable to find anything on the forums about this so here is just a small post for your education.
To create a subdirectory using directory_create() you will need to use a double backslash like this to separate your directories...
Hello all. :)
I read somewhere here that the sandbox directory on Mac can be retrieved using game_save_id but it's apparently different on Windows because game_save_id returns an invalid/non-existent directory. I was wondering if anyone has made a script that returns the correct path to the...
where does game maker save the surface using this function? the manual doesnt tell.
is this code going to work anyway?
for now nothing is saved in the working_directory. if thats where it supposed to save then somthing is probably wrong with the code
Demo (itch.io): https://yellowafterlife.itch.io/gamemaker-nsfs
Modules: Windows (is a DLL)
This extension offers quite a number of functions that allow the...
Hello. I have been trying to find out why the function directory_destroy() is not working for me (it just does nothing), and I read on a forum post that this happens when the directory's path includes non Latin characters (which happens to be true in my case).
Is there another way to erase...
When I programmed in the old gamer maker (ver 8 and before) I could easily choose to save to directories. That does not seem to be the case now. The manual says that files have been sandboxed by STEAM. The files save instead to appdata dir.
Am I understanding that correctly?
I am currently...
Hi, I'm trying to understand the path of the included files directory
I have to read a txt file included manually in game maker but I have to read it by code
if(directory_exists(working_directory + "\I need this path of the included files directory\"))
also here I'm not sure about the...