ini file

  1. 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...
  2. 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...
  3. 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?
  4. 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.
  5. 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...
  6. 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...
  7. 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...
  8. hughrock_projects

    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...
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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. =(
  17. P

    Legacy GM INI Mod Framework Attempt trouble

    I'm trying to create a framework for modding a game I've been working on, and I ran into a spot of trouble. The goal is to create a system that reads object statistics from a file and writes them to a data structure, so that objects can access this information in-game. I'm trying to do this in...
  18. EvanSki

    Legacy GM (Solved) Can a variable pick a string at random?

    Basically what I want to do is Have an object call a script (scr_decry) The script holds a variable (decry_phrase) and a list of strings such as "apple", "password","pinepplesarebad" Then the script will make (decry_phrase) = a random string from the list Any help is appreciated, Thanks!
  19. Edwin

    Legacy GM [SOLVED] .INI-files saving directory.

    Hello. What to do if my .INI-files are keeping in... Users/*UserName*/AppData/Local/GameName/ ...folder? How to write && read them in different disks, folders and directories? Thanks for for your advises.
  20. Bladestorm Games

    \n (line break) is not being save to ini file

    Hello, I have a small issue where if a string contains \n and that string is saved to an ini file, the loaded later, the string wont contain the \n portion. Example: description_string = "Hello Test \n This is a test"; ini_open("test"); ini_write_string("section", "key"...