1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

HTML5 Can't use ini files with html5

Discussion in 'GameMaker Studio 2 Community Tech Support' started by Jase1968, Feb 8, 2018.

  1. Jase1968

    Jase1968 Guest

    My game requires a lot of data stored, so I use .ini files. The game works fine as a .exe but makes this error when running on the micro web server.
    ERROR: /html5game/test.ini

    It seems to work with internet explorer, but not at all with Chrome.

    Here is the code that causes the error:
    ini_write_real("Test", "test", "test");
  2. Michael Bateman

    Michael Bateman Member

    Jun 25, 2016
    Real is not a string, it's a number. Change the default value to 0.

    Ini will work on html5, I've used it lots.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice