saving and loading

  1. 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...
  2. L

    GMS 2.3+ 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...
  3. 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...
  4. aristhemage

    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...
  5. 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...
  6. 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...
  7. MeltingCat

    GMS 2 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: where the answer to my question seems to be written, but I can't make it work. As of lack of experience I...
  8. 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...
  9. K

    GMS 2 Saving rooms with JSON

    I'm using JSON to save and load objects and their position, sprite, and any other variables included with them but I cant seem to save and load the room that the save was initiated from and load to that room in-game. Would appreciate any suggestions.
  10. Rizlad

    TimeStamp on saved file.

    So I was throwing some polish on my save menu/features and wanted it to put a date/time stamp into the save.sav file and was wondering how best to approach saving / loading of date_datetime_string information. Any insight is much appreciated !
  11. K

    Setting Array to Global Value

    Well I have a problem but not really sure where to start. Basically I have a weapon system set up in an array with ds_maps in the create even of oWeapon. //AR weapons[2] = ds_map_create(); ds_map_add(weapons[2],"sprite",sAR); ds_map_add(weapons[2],"recoil",25)...
  12. J

    Creating a DS_list within a list and loading from that list

    Hi all, I have figured out how to do saving and loading for a position within a ds_list with the help of Shaun Spaldings excellent tutorial Saving to position 0 var _root_list = ds_list_create(); var _map_player = ds_map_create(); ds_list_add(_root_list, _map_player)...
  13. N

    GMS 2 Saving and Loading JSON

    Whenever I startup my game, I get this error: Data structure with index does not exist. at gml_Script_load_game (line 21) - for (var a = 0; a < 36; a += 1;)[a] = levelslist[? a]; That's funny, because in my save game code I have this: var levelslist = ds_list_create(); for (var a =...
  14. N

    GML [SOLVED] Where is a ds_map saved?

    So i've been working on a dsmap-based save sytem for my game recently and there's a nasty mistake somewhere in my code, because everytime I use ds_map_find_value it just returns an udefined value, even though I use it with keys that should have values attached to them. Knowing where my games'...
  15. D

    GML Saving And Loading Help

    Hi! I'm a bit inexperienced with saving and loading things, the tutorials online i watch and do 100% as they do, but the game acts like i did nothing after writing the code (No errors, but nothing in the console or noticeable changes) Can someone help me, i just need something that can save...
  16. T

    Legacy GM Adding DS_LISTs to DS_MAPs [SOLVED]

    I'm about to start writing the save/load system for my game using ds_maps and was wondering how I'd add an entire ds_list to a ds_map? The documentation says to use ds_map_write to store the list as a string and ds_map_read to transfer it to another data structure, but I'm getting this error...
  17. G

    How Do I Make An Undertale Styled Save Point With Physics World Properties Enabled ?

    I'm also kind of new to coding... but I was just asking how would I code in a simple saving statue/save point that asks me to save the game.... I tried adding a save option but the room physics wouldn't let me... It looks like this: Here's the error
  18. C

    [SOLVED] Saving and loading via Checkpoints

    This is the video i used for making the checkpoints. So here is my problem. I have a proper checkpoint system setup, however i want a saving and loading system that loads to the checkpoint when i load it. All the tutorials i have seen haven't covered this yet so please give me some sort of code...
  19. C

    Proper Saving and Loading Function in GM8

    I need a really good saving and loading code that can save the exact coordinates of the player when saved. All of the tutorials i have seen works only with studio and not 8. Can anyone suggest me a simple code to do this. Any help would be appreciated.
  20. Josef Scroggins

    GMS 2 (SOLVED) Save System Help

    I was watching one of Shaun Spaulding's videos so I could figure out how to make a .ini save system. After working for hours I can't seem to figure it out. I either don't get a .ini in my data folder or I get an error for an undefined global variable. Here is the code I am using now, any fix...