gms_logout
Description
Will log the user out, without disconnecting from the server.
Replies (19)
Last message on 5 Jul 2018
Size43
(Administrator)
on
11 Nov 2016, 12:08:32
Seems like a bug in GM:Studio. For some reason it thinks you've typed m3d_projection_draw. Have you tried restarting your PC?
thx, yea that was problem. :D
I've tried to use this function but i'm afraid it doesn't exactly work as i expected, due to the fact that the player can only login once and when i try to login again after logging out it only allows him to log back in with the username he previously logged in with, then he can login with any username again after he's relaunched the game. I don't know, maybe i'm using it inproperly or something, can ya help? Seems to me like there's some kind of login data saved that the login is based around but i don't know how to delete it so i get the default state of the login, I tried deleting the .ini file that saved the "username" and "password" but it didn't seem to work.
Size43
(Administrator)
on
27 May 2018, 16:37:48
You should be able to log in to any other account after logging out.
Do you see an error when logging in with a different username?
nope, just nothing happens when im trying to click [Login], it doesn't even ask for password when the player account exists unless its the one i've logged in with before logging in, after a restart it works fine, at first i tought it was me removing the GMS object but then i removed the script that did that and it still didn't work. I can only log onto a different account when i relaunch the game unless i want to login with the same username and password then i don't need to restart the game for some reason.
Size43
(Administrator)
on
24 Jun 2018, 17:19:06
Apologies for the delay.
Would you mind mailing me your project? (gamemakerserver@outlook.com)
gmail didn't let me send you the file directly because its too big and got blocked, can you access the file without a google mail account?
Size43
(Administrator)
on
29 Jun 2018, 14:34:34
Got it! I'll take a look as soon as I have some free time.
Size43
(Administrator)
on
5 Jul 2018, 17:16:52
Hi,
This issue should now be fixed. It was caused by a bug that prevented the server from sending anything back to the client when not logged in.
yes, it works great now, thanks for fixing it, man
I'm not sure why but every time I use this logout function (not while ending the game) with others still online, I receive this error:
_________________________
ERROR in
action number 1
of Begin Step Event
for object __newobject1827:
The server is sending corrupt data: The player that's disconnecting is not connected. (id = ??????, ?)
_________________________
Note: I have everyone logging in as a guest.
Size43
(Administrator)
on
2 May 2015, 12:47:26
Please send me a mail at gamemakerserver@outlook.com, so I can send you a copy of the 1.8.5 update I'm working on. It may fix this error.
Did you receive my email?
Size43
(Administrator)
on
14 May 2015, 17:47:48
I haven't received anything. I've also checked my spam folder, but unfortunately I can't find anything from you.
The 1.8.5 update has been released, but it seems to have a few problems. I'm fixing those right now.
That's strange, well I'll try using my other email address. I still have some questions to ask, and if you still want me to test out anything, just send it to that email address.
Hello Size43, when I run logout, other players still see the same number of players before logout.
thanks Size43
Size43
(Administrator)
on
23 Mar 2015, 19:44:14
On what export is this? Do you see the "x has logged out" message at all?