Clickteam Fusion 2.5

Clickteam Fusion 2.5

Rakashis 14 Apr, 2017 @ 1:25am
Bug? .ini not saving for HTML
I am trying to save in a .ini file on a simple project in which I want to keep some hi-scores for a game I will upload to my hosting page but I am unable to even create the file or fill it. Is there another method I am losing sight of here or a way around this problem?

Thanks in advance!

P.D. I am using the standard method to add .ini files data, the one explained in the tutorials.
Last edited by Rakashis; 14 Apr, 2017 @ 1:27am
< >
Showing 1-6 of 6 comments
kisguri  [developer] 14 Apr, 2017 @ 9:46am 
Make sure you are not pointing the ini file to a specific location, just give it a name (example.ini) or what ever. Then at runtime when on your server it will instruct the browser to save the ini like a cookie.
Rakashis 14 Apr, 2017 @ 2:14pm 
Yes, that's what I am doing, at "start of frame" I set the file with no path "hiscores.ini", when I make a high score and the program asks for a name, I write it and click "ok" button, then, inside the .ini I command it to set the group, the item and set two things: a string (or name of the person) and the score value the person got, but for some reason it does nothing, not even make the "ok" button invisible back as that instruction commands, it's like it wouldn't be reading it at all.

P.D. I am not using the built in hi-score object, maybe I should?

Second edit: just remade my program using the built in hi-scores and it works in my machine but it doesn't when I upload the content to the hosting as html.
Last edited by Rakashis; 14 Apr, 2017 @ 3:10pm
Rakashis 16 Apr, 2017 @ 10:58pm 
couln't find a way around this, I have tested a lot of options, from apppath to appdrive, to nothing but the .ini file name inside "" in different ways and even changing single characters like -> "/scores.ini" or "\scores.ini", but nothing works, I would like to save the .ini file inside the server data, so it works as an online score board for the game. Any ideas here?, I am running out of ideas and I think it's just not working for some other reason that it's not me.
Last edited by Rakashis; 16 Apr, 2017 @ 11:01pm
kisguri  [developer] 17 Apr, 2017 @ 11:26am 
Last edited by kisguri; 17 Apr, 2017 @ 11:32am
Rakashis 17 Apr, 2017 @ 3:32pm 
Worked fine! thanks! :)
Daybreak 17 Oct, 2024 @ 12:11pm 
Hi kisguri,

When testing the HTML5 INI example using 'Run Application' the 'Load' button works as programmed (loading the saved data from the info.ini file). However, the 'Load' button doesn't work when using 'Build and run'.

Notes:
I'm using Fusion Developer (Steam version) with HTML5 Export Module and changed the build type to HTML5 Final Project for testing. Letting you know I also tested the following but got the same result as 'Build and run':

-First uploaded and tested HTML5 Final build to server as is

-Added the info.ini file to Data Elements > Binary Data

-After that test, in the Event Editor, I edited the first action of the 'Start of Frame' event to 'Set current file to: Apppath$ + "info.ini"' and placed info.ini in the main folder, beside index.html.
-Then I tested 'Set current file to: Apppath$ + "resources\info.ini" and placed the info.ini file in the 'resources' folder.
-Uploaded those versions to the server also but same result as 'Build and run.'

-Tested this on Firefox, Chrome, and Edge browsers. When inspecting their Console logs they had the following TypeError (it appears in the log when the 'load' button and 'save' button is clicked):

Uncaught TypeError: k.L.h.rQ is not a function
at b.type.N.bh.b.type.N.qj.e.onclick (Runtime.js:642:496)
b.type.N.bh.b.type.N.qj.e.onclick @ Runtime.js:642

Based on that TypeError, does the HTML5 Export Module need an update to resolve that issue? If so, would I receive an automatic update through Steam? If applicable, could you please share an updated version of the HTML5 INI example?

Looking forward to your reply in resolving this issue.
< >
Showing 1-6 of 6 comments
Per page: 1530 50