gms_message_reporting
Usage: gms_message_reporting ( what_to_enable )
Description
Enables or disables popup windows. When providing multiple values, the values should be separated by a binary OR, written as |.
Possible values:
mt_none: Nothing
mt_achievement_get: Is triggered when an achievement is reached
mt_friend_login: Is triggered when a friend logs in to one of GameMaker Server's games
mt_friend_logout: Is triggered when a friend logs out to one of GameMaker Server's games
mt_highscore_get: Is triggered when the highest score on the highscore list is reached
mt_player_login: Is triggered when a player logs in
mt_player_logout: Is triggered when a player logs out
Example
gms_message_reporting(mt_player_login | mt_friend_login | mt_player_logout)
Replies (17)
Last message on 23 Dec 2019
This function does not work for me. Nothing shows up regardless of what value I give it. I'm using the All version of GMS.
Size43
(Administrator)
on
30 Nov 2019, 17:34:09
When are you calling gms_draw? Could the message maybe show up under other elements on the screen?
It's being called in the GMS object with a depth of -100000. I just tried creating a blank room and logging in and I'm not receiving any pop up message. gms_show_message(); does work though.
This is my GMS objects create event:
/// Initilize GameMaker Server
gms_init(GMS);
gms_settings(true, 1.0, o_player, o_other_player);
gms_show_set_allowguest(false);
gms_show_set_constant("txt_guest", "Username");
gms_show_set_fonts(arial_black_24_bold, verdana_16, verdana_10_bold);
gms_message_reporting(mt_player_login | mt_player_logout);
Size43
(Administrator)
on
30 Nov 2019, 23:08:49
You'll only see the login and logout messages for when other players join or leave, not when you yourself join or leave a session.
You could manually add a gms_show_message after the login if you want a message to show up at that point.
The problem I was running into was the achievement not popping up after using gms_achievement_reach("test"); I just created a blank project and after some testing the achievement pops up if I use the windows version of the extension but not the all version.
Size43
(Administrator)
on
8 Dec 2019, 17:50:22
I tried the new version and it's still not working for me.
Size43
(Administrator)
on
10 Dec 2019, 12:26:57
Are you testing with a new user every time? The message will only show up when gms_achievement_reach is called if the achievement has not been marked as achieved yet.
I'm deleting the achievement and creating it again before I test it. I'm also drawing gms_achievement_isreached to the room so I can see if it's been reached before I set it to achieved again. Do you want to see the project file?
Size43
(Administrator)
on
15 Dec 2019, 21:34:27
I'll have to take another look. Would you mind mailing the project file to gamemakerserver@outlook.com?
Size43
(Administrator)
on
22 Dec 2019, 19:29:36
Oops. It looks like I just forgot to include the fixed code in the actual extension. I've released update 2.1.9b to address this:
Download GameMaker Server
Size43
(Administrator)
on
4 Dec 2019, 09:16:17
Sounds like that might be a bug -- I'll investigate.
Is there also a way to DISable these pop-up windows? Many of these are shown by default, and it is really sad that you are obligated to get a giant uncustomizable pop-up every time someone logs in or out, as this greatly ruins the creative freedom that is otherwise allowed by your scripts.
Size43
(Administrator)
on
14 Aug 2014, 19:46:01
0 or mt_none will work. I'll update the documentation to correctly show mt_none as a possible value.