• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

ini

  1. D

    GML Problem with array usage in .ini files

    // SAVE: ini_write_real("game", "item_array_length", array_length_1d(game.item)); for(i = 0; i < array_length_1d(game.item); i++){ ini_write_real("game", "item[" + string(i) + "].type", game.item.type); } // LOAD: for(i = 0; i <...
  2. G

    Open World Save / Load

    I've been developing an open world game with one large room and a main menu. My room has multiple NPCs in it and so far I have used room persistence effectively to be able to quit the game to the main menu and continue from there, however I have recently implemented a simple save and load...
  3. NathanAuckett

    Windows INI File with Base64

    Hi! Our current project uses ini files to save all it's data. I decided to try and encode it using the basic base64_encode/decode functions and made some scripts to make that process simpler. The script would take the normal ini arguments, encode the section, key and value, and then save as...
  4. 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...
  5. Posho

    Legacy GM "Save As"

    I'm currently working on a small project where the player can load/save INI/Text files and save PNG screenshots of the game. These are currently saved in the working directory but I'd like to know if there is a way to let the player "Save as". You know, the player clicks "save", then a pop-up...
  6. D

    Ini Problem (Read from ini)

    Hello.I made a simple gml script that will store the global.gamemod variable in an ini file. if !file_exists('mods.ini'){ ini_open('mods.ini') ini_write_string('Main','mod',global.gamemod) ini_close() } The ini file looks like that : [Main] mod="strike" mod="dm" The problem here now is, I am...
  7. zbox

    Asset - Extension SafeSave - INI and Data Structure Encryption

    Safe Save Itch.io: https://taylordale.itch.io/safesave-ini Marketplace: https://marketplace.yoyogames.com/assets/4685/safesave-ini-more Category: Extensions Price: $5.99 $3.99 Modules: All Description: Securely save data on your user's devices! Whether you are used to using INI files or are...
  8. 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...
  9. W

    File system[solved]

    I took a break from my platformer game to work on something else for a bit but now I'm back at it and can't understand why my saving/loading setup isn't functioning right. Specifically this part : if(new_game_file == true) { //Overwrite...
  10. Jezla

    HTML5 ds_grid_read causing game to freeze

    I'm implementing a local high score system for my new game using a ds_grid. When the player is out of lives, his name and score are saved to a ds_grid and displayed on a high score screen. The ds_grid is written to a string and saved to an ini file. When the game is starts, the ds_grid is...
  11. F

    Legacy GM How to optimize ini/dat file?

    Hello again I have some problem with unneeded data stored in ini and dat files. My saved structure is like this: [ 1.000000, 128.000000, 160.000000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 1.000000, 0.000000, 2.000000, 1.000000, 0.000000, -100.000000, "obj_man", 100.000000, "idle"]...
  12. P

    HTML5 Included ini files can not be read

    Any included ini file in an HTML5 build can not be read. I've tried adding working_directory when opening and it still fails. The code opens and and grabs data correctly in the GameMaker: Player but does not read in a HTML5 build. ini_open ("mValues.txt"); message =...
  13. R

    Legacy GM INI file won't read

    SO I want to make a save game feature where it saves the level you are on and your score so you can continue in the next session. But I am coming across this problem I can not fix: I want it to read this INI file called "playerdata.ini": [savedata] name = "" score = 100 level = 0[/CODE] In...
  14. L

    Android Saving rooms

    I am making an RPG and need help saving my rooms. Lets say i drop an item from my inventory and save and quit the game. How can the object that was on the floor re-appear next time?? Do i need an object in charge of all objects that get loaded? how do i approach this, obviously the object has to...
  15. L

    How can I : Saving and loading instance creation

    For example if an enemy shoots a bullet at me. how can that bullet be recreated and placed in the same X and Y spot as when i exited the game?
  16. K

    Getting sprite from ini file?

    Hi. I'm trying to get an object obj_menu to draw a sprite I got from an ini file. I use the ini_read_real and ini_write_real to load/save the sprite index to the file. However whenever (that rhymes lol) I try to draw the sprite it returns the "trying to draw non-existing sprite" the code I use...
  17. Z

    Working directory keeps changing unpredictably

    Whenever I compile and run my game, the working directory changes to some random directory in local app data. Why can't the working directory be the directory where the project is? This makes me unable to load an options.txt file in which my game's settings such as player controls and language...
  18. Q

    Legacy GM Best way to save/serialize object instances

    I have been developing a game in my own engine for a few years and we are considering switching over to GM Studio, so I'm doing some research. My game is open-world and chunk based, so it needs to load/save chunks as the player walks. Chunks contain terrain, which is easily serialized as...
  19. P

    Legacy GM Problem with the register of my game

    o_O
  20. M

    Legacy GM Saving highest score to ini file

    I'm trying to do something really simple, but have never used ini files before so can't work it out. When the player loses all their lives, their score saves to an ini file: if (lives < 1) { if (file_exists("Save.sav")) file_delete("Save.sav"); ini_open("Save.sav"); //opens file for writing...
Top