• 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!

save file

  1. J

    GameMaker get_save_filename wont create file...

    hi i'm writting a saving file code for a test project and when i call get_save_filename for saving the file it wont create it, i checked and the file is nowhere to be found... am i doing something wrong?, here is the small code for it: map_file = get_save_filename("*.json","") if map_file !=...
  2. skeddles

    Legacy GM How to wait until surface is resized before screenshotting (Studio 1.4)

    I'm trying to take a screenshot of my entire room. I pieced together this code from another thread: view_xview[7] = 0; view_yview[7] = 0; view_wview[7] = room_width; view_hview[7] = room_height; view_enabled[7] = true; window_set_rectangle(0, 0, room_width, room_height)...
  3. otterZ

    INI Save File Not Recognized After GM re-install?

    I had to re-install windows and all applications on my Windows PC recently (as it froze - black screen), with all my files still being intact. However, when I loaded my project it does not recognize my game save progress anymore. I worry that on the next update I upload to Steam, players will...
  4. RipRoarinBoogerBenis

    What data structure are tilemaps stored as?

    Basically I want to save the tilemap to a txt file (or json) and then load it back into the game so player created / destroyed blocks have persistence. Currently I use a pair of nested for loops to go through the tilemap and store each tile value into a grid, then store that grid as a string...
  5. A

    Save data not able to load

    Hey guys, I'm stuck with a problem where my load object is unable to read from the save object. Following is my code: I create a persistent object called o_save. I put this in the create event #macro SAVEFILE "Save.sav" and then put the following code in the step event to create a save...
  6. N

    GML saving/loading variables with array error

    Hi, I was following Shaun Spalding - better saving tutorial Although I needed only save button config, but mine has array (since I'm working with GM:S1.4 there's also joystick category): global.p1_jump = array(0,0,0,0,"none"); // (input device, device index, button type, button, "display...
  7. T

    clarification on game_save_id

    Hey all - I'm looking for some clarification on the game_save_id variable. In the Docs it says: The NOTE there is what I'm curious about. What is meant by this exactly? Because then it seems to me that "getting a file path" is exactly what is being done in the example listed on that same...
  8. M

    Android How to save a screenshot in the Downloads folder

    Hey there, quick question. I have been reading up on the whole game maker sandboxed situation, because my project requires saving a file in the Download or another accessible directory. I can not use the default working_directory, because its unaccesible to the user without root. Any ideas...
  9. Daniel Mallett

    saving screen shot

    The following code should make objects invisible and only take a screen shot of what is left. It does make them invisible and takes a screenshot, but then will leave the visible objects on the output. I have tried fudging this with a delay but this is not good. As the visibility code runs first...
  10. Daniel Mallett

    Saving to alternate locations

    I have a piece of code that takes a screen shot. num = 0; screen_save(working_directory + "\Screens\Screen_"+string(num)+".png") Please can someone tell me how to save this is a sensible place like the my pictures folder. I fear this can't be done please tell me i'm wrong.
  11. tjuven

    Android Save and load 2D array (load fails on android device)

    Hi! I have a game up on the app store and google play and I've recently got a couple of bug reports from players on android devices. Everything has been working fine up until just now (game went live in late november) so it's rather strange. For some players opening the game they are greeted...
  12. S

    Mac OSX Need to find save files on my Mac[SOLVED]

    Right now I'm testing the save file system for the first time and I can't find it anywhere on my computer. I have a macOS High Sierra if that helps. Also, I'm extremely new to coding so forgive me if I don't understand at first.
  13. TheOnlyWRT

    GameMaker Using DS Grid's to save tilemap data

    Hello there! Well, once again i am here posting! So, in my current project, there is an editable tilemap and each tile has roughly 30 variables that need to be saved so the same map can be loaded into the game later. I was reading up on the functions ds_grid_write and .ini files, but i am still...
  14. L

    Legacy GM Draw event doesn't update when value gets from ini file

    Hello GMS 1.4 Community! I have a really weird and annoying problem. I am just beginner in Game maker Studio and maybe I am doing something wrong. I have a save object (like in Undertale) which saves me and the room name where I am located. And in future I need to draw the room name where i were...
  15. P

    Question - Code Where are files saved to in GM2?

    Hey all, If I use the GM2 function: file_text_open_write("save.json") Where will the "save.json" file actually be saved to? I'm having a problem with autosaving and I need to manually check that the file is actually being created and written to properly. Thanks for any help! G
  16. E

    Legacy GM [SOLVED] Save file is broken

    For some reason my game have 1 out 100 chance to broke my save file. I am using ini file to store information. And normal section in my ini file looks like this: [PLAYER] global.maxEnergy="40.000000" global.energy="40.000000" global.catalyst="0.000000" global.maxFuel="30.000000"...
  17. A

    Windows How to save every point of path in a file?

    Hi everyone, UPDATE: Please scroll down to 7th post for my question and code.
  18. P

    Question - Code Does game_save() produce an encrypted file?

    I know it's a basic implementation of a save feature, but for my basic game, it works just fine. However, I would like to know if game_save("filename.dat") generates an encrypted dat file; one that cannot be tampered with to change scores and whatnot. Viewing the file in a text editor produces...
  19. C

    Legacy GM How to save inventory

    So I have several lists. Wondering how to save them though so that the player has the same gear from last time. Any help is greatly appreciated.
  20. 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")...
Top