file handling

  1. G

    Cannot copy included files on Linux build

    I am building a program for Linux. Last time I did this was before the appimage build system update. Before then it was working-ish. It is also working on Windows and Mac. But now, I cannot get included files to work properly on appimage linux builds. Here's the specific issue. I have a file...
  2. tylerbertz

    GMS2 file handling on Ubuntu

    do the file handling function [ directory_exists(), directroy_create() ..] Work on Ubuntu? if so were is the working_directory located? and possable get a simple example of createing a directory "apples" So far I have: Create Event: Step = 0; Step Event: if(Step == 0){...
  3. Xalezar

    SOLVED ini_read_string causing Yoyorunner to crash

    So I'm having this weird issue where my game loads up for a brief fraction of a second (I see the splash screen) then it closes immediately. I've identified the point where it crashes and it's right when I call the function ini_read_string(). if ( file_exists("savedata.ini") ) {...
  4. C

    GameMaker Hiding or encrypting Included Files from players

    Hi everyone, With my team we are about to publish the first chapter of our game, but we need to make sure players cannot access the "Included Files", as they contain the dialogs and other game data that is meant to be secret. We could obviously transform those files into scripts somehow, but...
  5. Valrad

    GameMaker Write into a specific position of a text file

    Hello, I have a problem with the whole system of file handling of GMS2. Actually, I don't know how add things to a pre-existent text file in a specific position in it. With the functions we already have, we can only open it, write something that will automatically delete everything else, and...
  6. T

    [SOLVED]Help with File Handling

    Hi. I am trying to make a function that will loop through any scripts in a project, and read them as a text file into a data structure. The intent is to be able to edit the data structure content: remove unused variables / duplicated variables / correct errors and so forth, and then write the...
  7. N

    What folder do file functions point to by default?

    Hi there, I'm trying to use sprite_add() to load a file named test.png, it's in my project folder but Game Maker seems unable to find it (I'm on Mac). When feeding a file path as a string to a function like sprite_add(), where does game maker look if you don't provide a full path? Thanks
  8. Mr Giff

    GML File Drag&Drop to Window / Get file location string by dragging to window target

    Hey guys, I'm looking for an extension or help making an extension that adds the functionality of dragging and dropping a file on a window to game maker on Mac OS. Essentially, when you drag, say, an audio file or a text file onto the game window, I want to retrieve a string for that file's...
  9. F

    surface_save() .... but to where?

    So when it comes to surfaces I'm a complete beginner, and when it comes to file handling I am a complete beginner... With that in mind, I'm working on a plant evolution simulation for my biology class, and every generation I want to save (preferably a png) image file of all the 50x50 grids...
Top