trouble with Chat

Posted by ziad87
Hey Size!
Can you tell me how to make a optimal normal chat system?
Im having trouble with it :(

ALSO - Can you make a way for player names to hover over players and other players?

Replies (15)

Last message on 10 Jan 2017

Size43 (Administrator) on 16 Dec 2016, 21:06:41
What would you consider "optimal"?

You can draw the player names by drawing the "name" variable.
ziad87 (Topicstarter) on 26 Dec 2016, 20:56:22
OPTIMAL CHAT SYSTEM - Just a regular chat system that can be toggled,and just press enter to write/send.
Thats all.
But I dont really understand grabbing names of other players and drawing the on each obj_othplayer instance.

Also a new problem popped up - or not really - just a question - is it possible to have multiple objects shared? And to show specific players only?
Size43 (Administrator) on 3 Jan 2017, 12:55:18

draw_text(x, y, gms_other_get(player_id, "name"))

in the other player object to draw the name.

You can sync more instances by using gms_instance_sync. See the tutorial (under Documentation) for an explanation.

You can group players in sessions so they only see other players in the session. You can use the VS mode for this, or manually create sessions using the gms_session functions.
ziad87 (Topicstarter) on 4 Jan 2017, 20:27:32
I just copied this off you, works just fine, but one problem: Before we didnt have names, correct?
Now we dont have any players but we have the names, Solutions.
And yes, my chat is still broken,
but, this is still one of the best Gamemaker extensions Ive used though, It just gets a little complicated, thats all.
And you are completely entitled to call me a noob, because I think Im asking you too many questions and feel like Im using you,
Thanks anyways!
Size43 (Administrator) on 6 Jan 2017, 10:05:37


to the draw event of the other player object.

As for the chat -- did you try using the built-in chat system. If so, what's wrong with it?
ziad87 (Topicstarter) on 6 Jan 2017, 12:07:08
Yes - I am using the built in chat system - and I can get it to toggle, but pressing enter to type/send does NOTHING...... Any solutions?????
ziad87 (Topicstarter) on 6 Jan 2017, 12:10:32
The only code I use is currently:
T key event:

And the Esc key event:

And the draw event:
ziad87 (Topicstarter) on 6 Jan 2017, 12:11:22
Is this the built in chat or not - as I'm not sure...
Size43 (Administrator) on 6 Jan 2017, 12:13:21
You do not need to call gms_chat_draw() separately. Doing so will run it twice, so when you press enter it opens the chat the first time, but then immediately closes it again the second time. Remove gms_chat_draw(), and it should work.
ziad87 (Topicstarter) on 6 Jan 2017, 12:23:48
Now thats a record breaking time for me! Wow that was a quick response, fixing it now and Ill see what it does!
Thanks again!
ziad87 (Topicstarter) on 6 Jan 2017, 12:28:47
Is there a way to change the send/type key to anything else as enter opens the pause screen?
ziad87 (Topicstarter) on 6 Jan 2017, 12:30:19
ziad87 (Topicstarter) on 6 Jan 2017, 13:30:02
Great... I COMPLETELY BROKE my dev pass, can you reset it??? Like unregister it and I can reregister???
ziad87 (Topicstarter) on 6 Jan 2017, 13:47:10
My chat seems to keep getting millions of messages saying
[SERVER]:Please do not spam whitespace.
And this happens whenever I type a regular message like:
these are just test messages That I use when I type to test
Size43 (Administrator) on 10 Jan 2017, 15:23:25
Seems like you're not actually sending those messages, but whitespace (or an empty message) instead. The extension uses keyboard_string for the chat, so make sure you're not accidentally resetting that somewhere.

You can visit this page to reset your passwords: