• 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 file questions

  1. Retron84

    Loading values from .ini not registering?

    I'm not sure why this code isn't working. I want to load the user's previous window size and fullscreen preferences on startup. These values are written whenever the user changes the settings and the file is being created correctly, as you can see in the screenshot. Perhaps it has something to...
  2. K00lman

    SOLVED Trigger-esque System

    For my clicker game, I am making, I am having a real tough time figuring out how to add a trigger-esque system to tell when upgrades and story progression can appear. What I have currently come to is storing this data manually in an ini file, then read through that. While I don't know much about...
  3. J

    HTML5 working with local storage from multiple HTML files (game maker studio 2)

    Hi all, its been few days and I am still finding no solution and thought to ask here. I am creating HTML5 game with game maker studio. my Idea is: I want to make my game to be divided into multiple HTML pages (multiple indexes); the player will be redirected between them using the url_open...
  4. flykidsblue1

    GameMaker directory_destroy not working on Android

    Hey everyone! I am currently porting my game to mobile devices and so far the intregration has been easy. However, this line is not working properly: var sav = "Save 0"; if(directory_exists(sav)){ directory_destroy(sav); } This line works perfectly on windows but not working on android. The...
  5. S

    GameMaker Reading off an ini file

    Can someone help me with this? I am getting a problem where I am trying to save controls to an ini file and load them back in so I can have custom control schemes. This is what I have so far: //Set up player controls lists var buttonTotal = 12; global.controlList = array_create(4)...
  6. B

    GML Problems loading from ini file

    I'm not entirely sure why it doesn't work. So I've got a script that is supposed to load an ini file and then transfer some variables over to an object I have but it never seems to open the file. I want to use a variable name (since its a script for multiple different events) but that seems to...
  7. B

    GameMaker Saving global variable

    hey all Just had a quick question on saving global variables to an ini file. I have some global variables that every play session they will be a different value. So during a session if there is a save I need to capture the value of those variables for the load game to work properly. Let say...
  8. D

    GameMaker Questions about ini files

    Hi! Just getting back into game maker Learning GML instead of drag and drop and enjoying it much more. I made a simple high score system using Shaun Spalding's tutorial on saving and loading ini files. The high score is being displayed and is working fine but when I search for the file I can't...
  9. B

    INI? Save Date and Compare?

    Hi, I'm trying to create some streaks in my game in which I reward the player for coming back to play the game the very next day. I know how to save scores with INI files. But how do I save the date in an INI file and then compare that date to the next date? Thanks
  10. 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")...
  11. W

    GML ini file

    Hello everyone I have a quick question regarding the use of ini files. I have 4 playable characters and they all have thier own stats. The code for writing in the ini file looks like this for the first 2 characters, they all have thier own section, but the keys that i use in the sections are...
  12. L

    Legacy GM Ini File (Solved)

    So earlier today a guy thought me that I could use ini files for saving and other stuff. And I would like if anyone would give me a tutorial how to make a ini file. I would like to know how I make a code for "On the first start there will be no ini file so it will go to room_1. Then in the...
  13. K

    Question - Code [SOLVED] Inlcuded ini files

    Hey everyone, When my game starts up, I'm trying to read from a .ini file that's in my included files, but for some reason my game can never find it. I also have a .txt file in my included files, which is accessed later in the game with no trouble. Anybody know why this might be happening...
  14. U

    Android HighScore not saving Andriod on Exit

    ive made a basic game in game maker but every time i close the game vie the task manager the highscore doesn't save which is a variable saved in an ini file. however whenever i exit the game with the exit button it saves the score. thanks in advanced
  15. L

    Legacy GM ini files Questions[SOLVED]

    I HAVE A INI QUESTION well a few anyway 1. WHAT ARE THE DIFFERENCES OF .sav .dot or .ini in a ini file I have been using .sav 2. MY INI FILES SAVE GLOBAL VARIABLES FINE AND I CAN REOPEN INI FILES FINE BUT WHENEVER I UPDATE MY PROJECT GAME TO LETS SAY VERSION 2 FROM VERSION 1 i lose all my old...
Top