• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

saving

  1. cdgamedev

    GameMaker Sorting Save Files By Creation Date

    Hi all, I'm currently working on a save/load function to my game but have run into a problem.What I want to do is sort all of the save files created by the user by the date in which they were created. Using file_find_first() and file_find_next() seems to sort them by their name. This doesn't...
  2. cdgamedev

    GameMaker [SOLVED] Get Names of Folders in working_directory for Loading Game Saves

    Hi all! I'm currently working on a load game section for my coursework and am wondering if its possible to check the working_directory (i.e. C:\Users\<user>\AppData\Local\) to see how many saves are in the location - similar to what quite a lot of games do. I'm not particularly after code, more...
  3. C

    Windows (Question) Can you save to another game's ini file.

    Title says it all, can you open up an ini file of another game you've made and alter it through the second game? If so, can you give me the code to do that. Would appreciate if you could change this game code to do that. if (file_exists("Save2.sav")) file_delete("Save2.sav")...
  4. M

    Android Does the highscores system work on android?

    It works perfectly on windows and also it works on android, but when i close the app the data dissapears. Im just using this: highscore_add(global.nombre, global.puntuacion); global.puntuacion = 0; Should i use ini files better?
  5. W

    GML ini file

    Hello everyone I have a quick question regarding the use of ini files. I have 4 playable characters and they all have thier own stats. The code for writing in the ini file looks like this for the first 2 characters, they all have thier own section, but the keys that i use in the sections are...
  6. S

    Saving Level Information to INI file

    I've been working on an ini save system that's been coming along nicely. I'd like to store multiple things for each level, like a byte for level completion, five or so New Super Mario Bros. style Star Coins, high scores, etc. I recognize that I could just use a 2D array, but I'm wondering if...
  7. V

    enemy' ID

    Hi! i'm working on a game about killing lots of dudes in a building (with multiple rooms) and i'd like to make checkpoints but the space in the game is pretty open. I need to save all the player's stats (health and number of kills) and I know how to do it in an INI.file. what I don't know is how...
  8. A

    [SOLVED] Saving room state to ini file

    I'm making a game with persistent rooms, where the player can go back and forth between them. I've decided to use ini files to save the game when entering each room. Is there any way to save the state of a room upon exiting it, and then writing that state to an ini file when running the save...
  9. P

    Legacy GM What would happen if your hard drive ran out of space?

    I was wondering if anyone could tell me what would happen if you had a full hard drive in your PC and then you ran an application in game maker that saves data to a file, would game maker show an error message and/ or would the data not save at all? Because I'm working on a game which will...
  10. G

    Cloud Saving... Myth or Reality?

    I know GMS does not support Google Cloud Saving, but still I have Cloud Saving code in my game, hoping that someday it finally supports that feature, because I know it is a massively requested one. I also know that the Cloud Saving functions do actually (and only) work in the Amazon Fire...
  11. Luke Pierson

    (SOLVED) Saving and Loading ini files

    Hello! So I've been working on saving and loading my game using ini files: Here's what I have so far: I set saving to false at the end because saving variable for obj_save is triggered when the player reaches a checkpoint. I change that to false so that it doesn't constantly save. Anyways...
  12. G

    Legacy GM Cloud Saving

    I am looking for a way to include cloud saving in my game, but can't figure out how to do that. As far as I've checked, although there is a checkbox in the Android tab in Global Game Settings to "Enable Google Cloud Saving" (the apk does not even compile if the box is unchecked), this feature...
  13. alexde5th

    GM: Studio saving design choice

    After going through the release notes for 1.x, I finally saw it mentioned multiple times that the resaving of all objects is on purpose. I at first thought it was a bug and was too stubborn to check the release notes because I was too convinced it was a bug. Anyways, now that I know that it's...
  14. B

    Legacy GM Saving Objects

    Would anyone know how to save objects. Even if it's individual objects one by one. I would assume you would use .ini files.
  15. R

    Some issues with setting up a save/load system?

    Hi Everyone! Sorry if this is a painfully rudimentary issue, but I am having some issues with setting up a save function for my current project. I am currently trying to implement a simple saving/loading system that saves a variable "affection" to a file to be loaded when the project is...
  16. W

    File Saving to Directory/Downloading

    So as an example, Say that I've took a screenshot using the "screen_save(fname)" command but I don't want this file in my working directory. I want it in my documents or downloads or on my external HDD. Is it possible? How? What happens across various exports and devices? As in how would...
  17. Q

    Legacy GM Help using INI files to store high scores.

    Hello, I'm currently trying to make a persistent local scoreboard for a game I'm working on. I'm fairly sure I have most of my code right, as it loads the default values, saves those to an INI file when there is no INI file to be found, and shows those values on the end-screen, but whenever i...
  18. E

    Saving Problems...

    Hi, I'm making a country management game and I need some help. I have a 1 in 1000 chance to spawn enemy ships that move towards the country, and if they hit it the countries health variable decreases by one. I decided to add a shop so if you are low on health, you can spend some in-game money on...
  19. cdgamedev

    Legacy GM [FIXED] DS Grid Levels

    I just finished creating my level editor and want to know if there is any way that I could add the levels to my actual game, possibly using Included Files? I have tried but couldn't reference the files. They work by saving the contents of a DS grid Any ideas? Thanks, Callum
  20. E

    [Solved] Saving to an ini

    I'm trying to save my data to an .ini but It gives me the error ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of Other Event: User Defined 0 for object...
Top