directory

  1. K

    GMS 2 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...
  2. 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...
  3. 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?
  4. RobotoSkunk

    GMS 2 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...
  5. 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...
  6. 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...
  7. Radr

    GMS 2 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...
  8. 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: -...
  9. Samuel Venable

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

    GMS 2 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...
  11. Samuel Venable

    GMS 2 [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...
  12. zendraw

    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))...
  13. 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...
  14. 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...
  15. jb skaggs

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