directory

  1. Rafael Augusto

    Windows Save Location - Game Directory

    How to make game maker save files in game root directory? It only has the function of saving in "appdata" Is there any solution "programmatically" simple?
  2. H

    Creating directory with a number

    I try to make a save/load system for my game, and there will be 16 slots for saving the game. I want to make the directory names like: "save1", "save2", "save3", ... , "save16" I made a code for checking if there are free spaces left to save the game, and if there are one free space, there will...
  3. JoeStormEL

    How to find all subfolders within a folder

    I already know how to find directories using file_find_first() and file_find_next(). Though I want to find every subfolder within a folder, which includes other subfolders in other subfolders. I need this to find files with a specific extension across all the folders.
  4. Rafael Augusto

    Windows Add file to directory

    How to "install" a compressed video in the root directory of your game?
  5. K

    GameMaker Problems loading included files (ini) into the code

    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...
  6. S

    Legacy GM Surface_save to a sub directory? (SOLVED)

    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...
  7. Posho

    Legacy GM Loading GIF as Sprite from Filename

    Hello, I'm trying to load multiple animated GIF files from a directory. According to the manual, the function sprite_add only loads the first frame of the GIF. Is there any workaround method for this?
  8. R

    GameMaker Use other directories on different devices

    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 switch(os_type){ case os_windows...
  9. S

    Including Files

    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...
  10. S

    Question - Code [Windows] How to access a created file from another game's Local Data

    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...
  11. Radr

    GameMaker load_csv(); file paths for included files?

    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...
  12. Zek

    Asset - Extension Folder Browser Dialog

    Game Maker: Marketplace Itch.io Price: $1.99 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: -...
  13. S

     directory-related constants not including final backslash?

    Is this a bug or is it intentional? These include the last slash: - game_save_id - working_directory These don't, oddly enough: - program_directory - temp_directory I think they should all include the last slash personally, for consistency's sake.
  14. Kaliam

    GameMaker GMS2 subdirectories using directory_create();

    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...
  15. S

    GameMaker [SOLVED] get sandbox directory? (all platforms)

    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...
  16. Z

    Legacy GM [SOLVED]Q:Surface_save

    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 if (keyboard_check_pressed(vk_printscreen))...
  17. YellowAfterlife

    Asset - Extension Non-sandboxed filesystem access

    Marketplace: https://marketplace.yoyogames.com/assets/5172/non-sandboxed-filesystem Demo (itch.io): https://yellowafterlife.itch.io/gamemaker-nsfs Documentation: http://yal.cc/r/17/nsfs/ Price: $3.99 Modules: Windows (is a DLL) This extension offers quite a number of functions that allow the...
  18. T

    directory_destroy is not working

    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...
  19. J

    Legacy GM file directory to save to? (solved)

    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...
  20. Heavybrush

    Included Files Directory

    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...
Top