Update 2.1.2 released


  • Fixed a caching issue that could prevent INI and variable data from transferring properly

  • Fixed an issue where the Y position of an object would sometimes not be synced properly when y > 510

  • Added support for the gms_protect methods to the (All) version of the extension. The functions can be used to hide values from tools like Cheat Engine, and can prevent basic memory scanning cheats.



Download GameMaker Server

Replies (26)

Last message on 2 Jul 2019

UnderJustin on 20 Jul 2018, 17:11:50
I have a bug.
1-I have various gms_ini_player_write after login. One of these save gms_ini_game_write("player",string(gms_self_playerid())+"soul",0) 1 time but if exists is not rewritted.
2-That key is writted again when you change skin, gms_ini_game_write("player",string(gms_self_playerid())+"soul",soulslot_main.soulselect), it works as should do it, change the variable value to some number.
3-There is only 2 gms_ini_game_read and the previous 2 gms_ini_game_write.
Then there is no way when you log in again the ini key value is 0.
Every time i login again the key have 0 as value. But if its changed it keeps while im logged.
Then i think this is not a bug of my game, instead is of the server. "Fixed a caching issue that could prevent INI and variable data from transferring properly", maybe there is another Cache issue.
UnderJustin on 2 Jul 2019, 05:24:07
Too late to post this but, was my bad, i had the instance GMS deactivated while saving data to INI. (Used instance_deactivate(1), the instance GMS was deactivated, and wasn't update data in the ini)
Size43 (Administrator) on 22 Jul 2018, 14:47:26
When are you reading the variable? If you read it too quickly it might not have arrived from the server yet, so it will show up as 0.
UnderJustin on 23 Jul 2018, 04:02:28
The variable is read along with more variables at same time but it's the only with value 0.
Also, when i check the player ini it shows 0 as value.
Size43 (Administrator) on 28 Jul 2018, 16:32:56
Try adding a few show_messages to see exactly which values are being written to the INI, and when. If soulslot_main.soulselect somehow ends up being an undefined value (or not a string/real) it won't save properly.
UnderJustin on 20 Jul 2018, 17:13:07
Sorry for bad translation, i dont speak english.
jdev on 18 Jul 2018, 23:13:35
GameINI's and not sending information every second. Instead I have to re-log to get new data from GameINI's.

I need a fix as soon as possible as it is causing down-time on my end because things cannot function properly.
Size43 (Administrator) on 18 Jul 2018, 23:14:12
GameINIs seem to be working fine.

Is this an issue you're only experiencing with this update?
jdev on 18 Jul 2018, 23:16:18
Seeing as noone else has brang this up, possibly so.
Size43 (Administrator) on 18 Jul 2018, 23:19:38
Please try switching back to 2.1.1 to see if this fixes the issue -https://gamemakerserver.com/staticcontent/GameMaker Server 2.1.1.zip
jdev on 18 Jul 2018, 23:22:58
I was planning on releasing an update at 9pm GMT but I noticed this occurring which makes it impossible for my game to run efficiently without the constant GameINI data being transferred to the client (using 2.1.1 at this point) so I updated to 2.1.2 and the issue is still occurring.

I have 10000 API requests available per hour, but could this possibly be the issue?

Either way, this is causing big problems for my community and game and not entirely sure why it's happening, maybe more GameINI space is needed, I am not sure.
Size43 (Administrator) on 18 Jul 2018, 23:26:33
I have just tested GameINI synchronization, which appears to be working fine both in the Windows and All versions of the extension.

Are you maybe altering sending behaviour using gms_optimize_set_sending_policy?
jdev on 18 Jul 2018, 23:28:08
I have not used that code anywhere in my entire project.
Have I ran out of API requests or storage on my Developer account?
Size43 (Administrator) on 18 Jul 2018, 23:30:16
You're using 21KiB of GameINI storage, which is far below your limit.

API requests are unrelated to GameINI storage.

Are you able to alter the example project in such a way that it has the same issues that you're having? If so, please mail it to me at gamemakerserver@outlook.com so I can take a look.
jdev on 18 Jul 2018, 23:39:49
I have tested the Blocks example in 2.1.2 and I am using this in a step event and it seems to be giving me the exact same issue where when I edit the GameINI it is not reading the new value until I relog.

This is not an issue with any code and now seems to be an issue with my Developer account.

message = gms_ini_game_read("Message", "Read me");
show_message(message);
Size43 (Administrator) on 18 Jul 2018, 23:41:37
Can you post the code for editing the INI too?
jdev on 18 Jul 2018, 23:46:22
Have you got Discord so that we can communicate better and get this solved as soon as possible as it is causing downtime for my users and I had a really big update planned tonight?
TypicalAndy on 18 Jul 2018, 23:48:24
hey did you shutdown your servers? if so, how do you do that?
jdev on 18 Jul 2018, 23:42:17
There is no code for editing the GameINI, I am editing the value in the website and it is not sending that new value to the client in-game.
Size43 (Administrator) on 18 Jul 2018, 23:49:11
You shouldn't be relying on the site for updating GameINIs with such precision. You should add something to your game so you can edit the GameINI directly in-game for this purpose.

I've enabled a workaround to re-introduce this behaviour, but do note that updating the GameINI from the site while it is also being written from in-game can cause old values to reappear.
jdev on 18 Jul 2018, 23:51:47
I am not writing anything to the GameINI's, all my GameINI's are used for is for reading the values stored within them.

My issue is that when I update a GameINI, the new value is not read in-game until I relog.
Size43 (Administrator) on 18 Jul 2018, 23:56:56
Updating the GameINI on the site should work again for now.

Though once again, long-term you should be adding something for that in-game.
jdev on 19 Jul 2018, 00:01:36
OK, values are now being sent instantly which fixes my issues.

Did you change something in the past few hours on your end which made this occur? Because everything has been working fine for the past 7-9 months until today.
Size43 (Administrator) on 19 Jul 2018, 00:10:28
Many changes were made over the past few days to improve server efficiency and reduce server load.

No changes were made in the past few hours.
jdev on 19 Jul 2018, 00:14:46
Weird, I wonder why I was the only person experiencing this issue...

I hope this does not happen again, and if it does I will update you here on this thread.

Thank you very much Size for your services.
TypicalAndy on 18 Jul 2018, 20:47:17
Awesome!