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

ini files

  1. M

    INI files not working during Android testing

    Hi, I'm trying to figure out why INI files are not working while TESTING an app directly on my physical Android device. It works perfectly fine when testing on Windows AND when building any APK then copying and installing it on my Android device. Just not while testing. Does it have anything to...
  2. B

    INI File Size Limit and Compatibility

    Version: Game Maker Studio 2 Full - IDE v2.2.1.375 - Runtime v2.2.1.291 Hello! I'm currently developing a game with a pixel by pixel character creator and need to log every pixels x, position, y position, and color however, I have read that .INI files have a 64KB limit of the data they can...
  3. W

    Legacy GM How to encrypt .ini files?

    Hey! I just want to know the easiest but good way to encrypt .ini files. I don't want to play for an extension. I also don't want to use 64bit encoding because anyone can use a translator. This is my save file script: if (file_exists("Save.ini")) file_delete("Save.ini"); ini_open("Save.ini"); //...
  4. LucasSchachtMusic

    Legacy GM [(i think it's) SOLVED] ini file for every single object?

    Hey guys! It's me again with another noob question :D I'm going to explain you what exactly I'm looking for first. Here I have a picture of a lot of buttons, to which I'd like to assign a string and two coordinates. So rightclicking one of these buttons saves the last stored mouse...
  5. C

    Legacy GM Global variable unknow error

    So I am just trying to make a simple score system, that saves the highest score but I keep get this error. Not sure if I am making it wrong or if it's how my code is. here is the error message and my code. FATAL ERROR in action number 1 of Draw Event for object obj_plz: global variable <unknown...
  6. C

    HTML5 How do I save the highest score to an ini file

    I have tried just about everything to get this simple solution. I even looked at this https://forum.yoyogames.com/index.php?threads/saving-highest-score-to-ini-file.2823/ but it didnt work for me. So I tried to do it myself but nothing is working. Here is my code it's in a dialog not sure if...
  7. 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")...
  8. JasonTomLee

    Asset - Demo [FREE] Simple Pause Menu v2

    SIMPLE PAUSE MENU v2- ( Marketplace or Itch ) Hello fellow Gamemaker Devs! This asset was created to alleviate the stress of adding a functional PauseMenu when starting a new game project. It includes working Settings, Sounds and Controller submenus that can be rearranged anyway you want...
  9. D

    Ini savefile question

    I'm having trouble finding if and where my game create a ini save file to store the player preferencies This is the code ini_open(working_directory + "preferences.ini") ini_write_string("Options","DPAD", "false") ini_close() I also tried without putting working_directory in ini_open This is the...
  10. G

    GML Problems in reading INI files

    Hello, I created a code in which, when an object collides with another object (obj_X) and you press spacebar something happens. Here is the code: My problem is that it will always send me to the room "Menu" even when in the ini file it says 1. What is happening??! Thank you so much
  11. J

    Saving data separately from each game session

    Hello! I am making a platformer game, where some timestamps are recorded each time a player clears the level or some event in the game happens. But I would like to have the timestamps saved to separate files (so the data wouldn't overwrite itself after every new game start). I am using...
  12. M

    Score bord won't save.

    Hi I am working on a little school project here, but for some reson my ini files wont save. I wonder why. I am using a booth room with the folowing code: ini_open("scores.ini"); for(i = 0; i < 10; i++) { global.score_array[i, 0] = "unknown"; global.score_array[i, 1] = 0; } ini_close()...
  13. V

    Restart the game and return to the last chapter

    Hi! my games is split in chapters (rooms linked together that you can explore). all the rooms are persistent and chapters starts with a room that read ''chapter x'' for 3 sec and then the chapter start. here's what I can't do: i would like that when you lose, you restart the chapter. but since...
  14. M

    INI file contents get deleted on their own

    I've been having this disturbing issue with my game. I've been developing it for 2 months on GMS2 and have put massive amounts of effort into it, but there is just one issue that is constant, and no matter what I do, it won't go away... The game would run, and everything appears to be fine. I...
  15. 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...
  16. Z

    Legacy GM Q:Ini files

    Hi, i have 2 questions about ini filies 1. when you open an ini file does the size of the ini file matter? does it affect performence? 2. is it wise to use ini files without specifying a directory? and is it wise to use ini`s atall for saving ds_grids? my game will use ini`s alot.
  17. 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...
  18. J

    Android Saving with android (Ini)[Solved]

    Hi! I am having trouble saving in my android app, this is my code: Collision Event(Writing): if (score>global.saveScore) { if (file_exists("savegame.ini")) file_delete("savegame.ini"); ini_open("savegame.ini"); global.saveScore = score...
  19. C

    How to update an iOS App keeping game datas?

    Hi guys, I'm programming a game with GM 1.4 and the iOS Export module. I will publish my game,for the first time, soon. In my game I save some informations about the player (last level, best score, etc.). My question is : what is the best way to save these informations (GML code) to work fine on...
  20. 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...
Top