ini file

  1. A

    Problem with saving level (room) - ini file

    Hi. I am trying to implement a system where the last level (room) will be saved. Say, a player reached level 15, it will be automatically saved if the player clicks a next button. And then when the player exits the game, reopens the game and clicks the play button, the player will be loaded in...
  2. Genesys Generation

    Android How to export the font and ini files?

    When I create the executable (APK), I run into 2 problems: 1st - no text appears in the game. That's because the font is not exported with the APK. 2nd - the game does not recognize any ini file. For desktop I upload the ini files together with the game's executable (zipped file), but it...
  3. face

    GMS 2.3+ Code that detects the first time game runs

    GM Version: Studio Target Platform: Windows Download: code below Links: n/a Summary: Code that detects the first time the game is run. Certain games don't like players to go back in their path. You can see in games like the Amnesia Series where it's all about autosaves and not having much...
  4. K00lman

    SOLVED ini files not working

    I was trying to make a save system for my clicker game using some ini files, and put in this code: ini_open("data.ini"); global.code_lines = ini_read_real("stats", "code_lines", 0); global.programs = ini_read_real("stats", "programs", 0); = ini_read_real("stats", "money", 0)...
  5. I

    GMS 2.3+ INI comment broke next non commented line

    We used before comments in INI files. We do that by ";" or "#" use. After 2.3 update - next line after comment brokes. Ifyou use comment before group, you will lose full group. So we will lose full gameMenu group: #\n - line break [gameMenu] controlScrollUpBtn = Scroll up. You can also scroll...
  6. Meowanator

    GML Upload and Download Ini Files?

    My game has a level maker that saves as an ini file. I was wondering if it would be possible to be able to upload the file to a server and then be able to download it within game, similar to Super Mario Maker. I'm using GMS 1.4.9999 and I have no experience with things like this. It's okay if...
  7. onlyketch

    Protecting points in localStorage from editing

    Hello everyone! I use GMS 2 to create html5 games, at the moment I use ini files to save the best score in LocalStorage. But anyone can open the developer console in the browser and replace my values. How can I protect this data? Are there easy solutions?
  8. zendraw

    GMS 2 Get list of files

    How do you fill a list with the names of files? like you have multiple saves, then you do a loop and store theyr names in an array. i done this before but cant remember how was it done.
  9. K

    GMS 2 Problems loading included files (ini) into the code

    So I'm probably just being dumb but I'm having difficulty loading my included ini files into my script. I've tried several things and they haven't been working. Currently I've got: var curini = file_find_first(program_directory + "/events/",0); which returns the error: Error! not allowing file...
  10. Dwighty4000

    GMS 2 a problem with the alarm[0]

    why does it take twice as long for a settings sav until alarm [0] is triggered if the whole program has a "settings.sav" in "% appdata%" although this does not maintain any contact to this and yes the text message is triggered immediately right at the beginning which must mean that alarm [0] is...
  11. Dwighty4000

    GMS 2 ini file problem

    I have the following command: "ini_write_real (" global_language "," value0_1 ", global.newsParameter [0,1]);" the ini-file is given the value "1" in a previous gameplay and the game then ends. Now the game should read the registered value when starting from the "user.sav", but why he does not...
  12. H

    GMS 2 What am I doing wrong with my data saving/loading?

    Hello fellow indie devs! This problem has had me stumped forever now (feels like it anyway). I've looked up several "how-to" vids on saving and loading data in gms2. I've dabbled in using json-ds_map, ds_grid_read/write, and even ini files (hate them). For some reason, that has me truly...
  13. M

    HTML5 Ini file require server to get loaded [SOLVED]

    Hi, I'm making a html5 game and I have a problem with my included files. When I use the function ini_open, the game asks the file to the game server but I want the game load or store the included files at the splash screen and then it don't need to make these requests to the game server.
  14. witches

    GML [SOLVED] INI Values Not Being Drawn Correctly

    hello all, first time posting. I'm running into issues when relaying ini values to the draw event of my menu object. And the strangest part is that it is only 4, 5, 6, and 9. I have a menu system set where I directly write into the ini file and have that value set for the audio_group_set_gain...
  15. Adrien carrou

    GMS 2 Saving Dialogue using INI

    Hi everyone, I am kind of new to game maker but took some courses and really enjoyed it, I took what I had created from those courses and decided to build off of it, so I implemented a dialogue system for my game but I want to learn more about how to create my own functions. My question is how...
  16. royer14

    GML how to save and load the position "x,y" the player?

    Hello, in this question, I am working with ini files, so to save, I use: ini_open("sav.ini"); ini_write_real("Posicion","X",obj_player.x); ini_write_real("Posicion","Y",obj_player.y); ini_close(); Now I need to clarify that I use a player object and I place it in each room. So I do not know how...
  17. Daniel Mallett

    GMS 2 ini filehead ache

    I have some code which has been working for ages and now does not seem to work at all. I tried opening a new project from scratch to test the following code. ini_open("test.ini"); ini_write_real("test", "test", 6); ini_read_real("test", "test", ""); ini_close(); This gives me the following...
  18. Daniel Mallett

    GMS 2 Including ini files within a project

    I have an ini file which I have created using a level editor which I have created using GMS2. This contains tile data, object data, all sorts of stuff. The only way I can load the ini is to copy it from my manually from the %localappdata% to the required location. The problem is when an a...
  19. 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...
  20. L

    Android How to save the INI database in Google Cloud Saving

    My game has a database stored in the INI file, I would like to save this file in the Google Cloud. I thought it would be something simple to do, but I'm already 2 days away with this headache. Eu quero salvar o banco de dados INI, para ser recuperado ao reinstalar o jogo novamente. =(