• 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

  1. L

    GameMaker Disable Sandbox and Searching other files

    Hello! If I disable the sandbox I can't find a .ini file created by GameMeker in another run of my projects, I think this is true for all files (like file_text) Could someone explain to me why? And how can I save information with the sandbox disabled? Maybe use a .ini file in included files? I...
  2. K

    Why do I keep getting a request error when trying to upload an .ini file created from Game Maker Studio to a remote online server?

    It turns out that I am trying to create and upload an .ini file generated in game maker to an online hosting server (in this case, the one chosen was 000webhost), but it is getting too complicated for me. Actually the http request is made from the game itself, and I use a third-party .php file...
  3. T

    Creating a checkpoint

    So I looked at the tutorial for "How to create checkpoints in gamemaker" but there was one thing it didn't say how to do that I haven't figured out yet. Basically, the tutorial said: -Touch checkpoint -Save current values (x position, y position, current items, hp, etc.) in a .ini file -When...
  4. B

    SOLVED Problem with ini files getting reverted to default each time I run the game (IDE v2022.6.1.26)

    I've been trying to use ini files to save my progress in my game, but I've been running into an issue where the first time the program tries to read the ini file, it will always replace whatever's on it with the default value in the read_ini_real/string functions. I've tried a couple solutions...
  5. M

    INI files not working during Android testing

    Hi, I'm trying to figure out why INI files are not working while TESTING an app directly on my physical Android device. It works perfectly fine when testing on Windows AND when building any APK then copying and installing it on my Android device. Just not while testing. Does it have anything to...
  6. wilmer

    Error in variable for an ini file [ SOLVED ]

    Greetings to all: I need help please, I have the latest version of GMS2 and this code was used in previous versions and it worked but now it doesn't. Create Event: obj_control: globalvar energy_bars; energy_bars = 0 ini_open("config.cnf"); energy_bars =...
  7. 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...
  8. 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...
  9. gdkid

    [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...
  10. Rafael Augusto

    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"...
  11. 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...
  12. 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...
  13. 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...
  14. face

    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...
  15. 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); global.money = ini_read_real("stats", "money", 0)...
  16. I

    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...
  17. M

    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...
  18. O

    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?
  19. Z

    GameMaker 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.
  20. K

    GameMaker 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...
Top