ini file

  1. TheRealMrSketch

    SOLVED Ini Files not working.

    I am having a problem with saving and loading files in my game. I am building a bullet hell game where your only goal is to survive as long as you can. I want to have a file save your longest time surviving. The results speak for themselves. I have code set for the orange box that appears that...
  2. TheRealMrSketch

    GML Loading data for a script is not working.

    I am building a clicking simulator game and I want the game to save and load to where you left off last time you played. The amount of clicks stored is working just fine and want to check if I pressed a button already. Pressing a button will give me more "clicks" per second which is checked in a...
  3. gdkid

    GMS 2.3+ [SOLVED]Saving encrypted INI files to the Steam Cloud

    Hi guys I use Steam Cloud to save and load the player data and stuff. However, the data is saved using INI file, which is very easy for players to modify. Is there a way to encrypt an INI file before uploading it to Steam Cloud ? There's one possible solution using the Steam Auto-cloud...
  4. R

    Windows Save add with no overwrite

    This code always overwrite the last! What a need to do for add without erase the last saved? Exist method to do it without ds_grid? If you don't have a solution, how can you translate the code below to ds_grid or list_grid Thank You ini_open("savefinal.ini"); if ini_read_real("Mon"...
  5. 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...
  6. D

    HTML5 Ini Files

    Hello, i have a really big Problem with my App, wrote in GMS 1:4. So i decided to manage the Save File from a Webfilehoster. On my Phone and my PC it works fine. BUT on HTML5 it doesnt work... I know its because HTML5 have only the local Storage, but i need to update the Save File from time...
  7. 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...
  8. 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...
  9. 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)...
  10. 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...
  11. 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...
  12. 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?
  13. 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.
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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.
  19. 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...
  20. 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...