game_id
is supposed to return the Project GUID in Main Options, it is failing miserably at its job. Seems like a bug one way or the other. Either it's not returning that string value, or it represents a value that has no edit box to set it to something else. Bug report time...#macro game_id 183797
You have to generate it in the game options, so the box is there.Ifgame_id
is supposed to return the Project GUID in Main Options, it is failing miserably at its job. Seems like a bug one way or the other. Either it's not returning that string value, or it represents a value that has no edit box to set it to something else. Bug report time...
If it's supposed to be a GUID, the example code from the manualYou have to generate it in the game options, so the box is there.
...But it doesn't work.
Now I don't know if it's the keyword that<s broken, or the GUID is never assigned to the app. There would be a way to test it with an app to see if GUIDs match, tho.
ini_write_real("Scores","0",score + game_id);
score
is presumably a number, and you can't add a number to a string, and you can't "on reading it back into the game you would deduct the game_id" by performing subtraction. You'd need to use string copy to get part of the string and call real()
on the result. All in all, the variable is poorly documented.Well, from what I can gather it's either the GUID or the Steam ID. But It wouldn't make much sense to return the Steam ID if steam is not enabled, so Im not 100% sure.If it's supposed to be a GUID, the example code from the manual
does not make much sense.GML:ini_write_real("Scores","0",score + game_id);
score
is presumably a number, and you can't add a number to a string, and you can't "on reading it back into the game you would deduct the game_id" by performing subtraction. You'd need to use string copy to get part of the string and callreal()
on the result. All in all, the variable is poorly documented.