• 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 and loading

  1. SpookySquid

    SOLVED Trouble maintaining save file compatibility between GMS 1.4 and GMS 2 LTS version of a game.

    I have a game released on Steam created in GMS 1.4.9999 it's getting an update soon created in GMS 2 LTS. The save/load game code is identical between the two, however I've discovered that while the new version of the game can load old saves fine, it's now saving them in a new format that can't...
  2. The Major Squadron

    SOLVED Reloading box positions in room

    Hello, I have a platformer where I wanna be able to press a button (for example R) and have the current room reset to its original state. I have followed Shaun Spaldings tutorial and have his exact code already, I just need some help with loading box positions. The issue is that my rooms are...
  3. G

    GameMaker Question about saving and loading instance references

    Hi all, I am working on a saving and loading system based around game maker's built-in json_stringify and json_parse. The saving part is working well, but I'm having trouble loading the components of my game that reference instances. For example, I have an instance inst_battle with a variable...
  4. The Major Squadron

    SOLVED Saving which room you're in

    Hello, I'm following Shaun Spaldings tutorial on saving with JSON. I have that exact code except I also want to save which room you're in at the time of saving. I don't need to save anything about the room, just which room it is. Thank you in advance!
  5. KyleRansford

    Windows Microsoft GDK Example - gdk_save_buffer

    Since I was able to get the GDK example project running, I was looking at the features and while I was going over how the saving/loading works, and it keeps showing error in the debug, like the saving is not working. I also don't see a place where save data is entered. For example, on the UWP...
  6. AcroGames

    What Event to put save game action in?

    So im unsure where to place save_game() action since if I put it at the start of the room in Create (first object in the room) when I load the game the room doesnt progress. If I place the save action in Room End, it also doenst progress. Like, nothing after the game-save action plays out. I...
  7. H

    Help saving on ios

    Hello. I am working on a game which is to run on ios. It is nearing completion, but I am having a small issue. I wrote some code to save and load values including highscores, coins, and items purchased using .txt and .ini files. I tested them on windows and on android virtual devices, and it...
  8. D

    SOLVED Saving files (i need to save a grid)

    hey so i have leaderboards in my game and i surly sucks if you get a good time close the game and then you open it again the leaderboards are blank. so i wanted to save the grid i store everything in i watched a bit around and so but i dont think i understand it. i found this saveStruct = {...
  9. Nick der mit hut

    Trouble with saving ds_lists and arrays to a struct based (json) saving system

    So I have done a video explaining things but the most important things are in the post itself. In the video I show the content of the json file though Hi, I have multiple problems using a save and loading system using json. My Saving code looks like this function SaveTest(){ if...
  10. S

    Getting Vars From and To The Proper Instance

    So I have been trying to work on a "save" system based off of structs and have reviewed many tutorials and the GM manual regarding these related topics. I can get the data I need to save into my structs "technically" but I am having issues when I try to get the data from a specific instance. I...
  11. SirCaliber

    SOLVED Loading sprites as real number from file results in wrong sprites being displayed

    The scribble is meant to be a cheer emote. Basically, I save the cheer emote as a real number in an INI file, then read that number and set the player's emote sprite as that number. However when adding new sprites, textures get mixed up and so the number actually correlates to the scribble now...
  12. Toulhane

    Problem saving and loading data structures with json

    Hi, I followed this Shaun Spalding tutorial to try to implement a saving system in my game while adapting it a bit : My game being a card game, I wanted to save my card inventory which is a ds map (I should probably have made it as a ds list instead but I don't think that's the problem here)...
  13. G

    SOLVED Saving Ds_lists not working

    I've been having issues with creating a reliable save system for the current project I'm working on. I'm trying to save an array which holds all the players stats, like an rpg. I already have ds_lists set up but I've had this consistent problem: Once I have the game, storing all the values into...
  14. L

    save the state of a randomly generated world?

    some time back I created a game that featured a cave that randomly generated itself every time you left and came back, it was a crappy game but I want to make a game similar to terraria or that one obscure scuba flash game but I haven't been able to save my randomly generated worlds and reload...
  15. P

    GML Correctly loading rooms from a save file

    So I am new to Game Maker Studio 2 and have had little experience with coding I was using ds_maps and ds_lists to save the information of my game but whenever I save the room data then go to a different room and load the save the character object spawns on the right of the screen. He will always...
  16. A

    SOLVED Saving and Loading Arrays (please dont 'dont use arrays, use ds_map' copy pasta me)

    Hi, I know, I know, don't use arrays to save, use maps. But the tutorials and help are all implying that the variable that stores the array isn't the core functionality of the game. I'm making a sandbox game and the way I have it is that there is a variable called world, an array worth about ten...
  17. A

    Legacy GM problem when loading game

    Hi, i got the problem when loading game: instance_create argument 2 incorrect type (undefined) expecting a Number (YYGF) at gml_Script_scrLoad (line 17) - var Inst = instance_create(SaveGrid[# a, 1],SaveGrid[# a, 2],SaveGrid[# a, 0]); //Create Instance at X/Y...
  18. Dr_Nomz

    GML How do I save a ds_list to a ds_grid?

    I thought I knew how to do this, but lot's of testing shows I have no idea how to do this. for (var o=0; o<4; o+=1){ var _row = scr_DSGAR(save_blue_dialogue); save_blue_dialogue[# save_blue_dialogue_enum.option, _row]=option[|o]; } Basically it should just go through each and every value...
  19. MeltingCat

    GameMaker Saving a ds_grid in a ds_map

    Hi, I'm having trouble saving my inventory system in a ds_map as part of a JSON. I found this thread: https://forum.yoyogames.com/index.php?threads/adding-a-ds-grid-to-a-ds_map.50573/ where the answer to my question seems to be written, but I can't make it work. As of lack of experience I...
  20. P

    How do I Save and Create my character and objects in a Room Using JSON

    I just followed a tutorial by Shaun Spalding and it was kind of confusing for me to understand and transition my game from an ini saving system to JSON. If anyone can help me figure out what I'm doing wrong with my code that would be a huge help. What I would like to happen is that the game...
Top