Does an irc dll for gamemaker exist?
#1
Posted 18 June 2011 - 05:29 AM
There are two ways to solve this problem: either make the game to check for new chat messages every 10 to 15 seconds, or to make it use IRC. Does an irc dll for gamemaker exist?
(yes, i did search and found nothing)
#2
Posted 18 June 2011 - 08:20 AM
#3
Posted 18 June 2011 - 02:57 PM
#4
Posted 20 June 2011 - 12:31 PM
How do I do this? Is it possible? Echo function replies only to requests, I think. Besides, is it possible to make a webscript to execute without a request? And how will the game know it has recieved a message without sending a request first?Have the server send the messages to the clients, rather than have the clients request them from the server.
Can it be done with HTTPDLL2.dll, too?If you're using 39dll you can implement the protocol yourself.
#5
Posted 20 June 2011 - 03:07 PM
No. You need TCP.Can it be done with HTTPDLL2.dll, too?
If you're using 39dll you can implement the protocol yourself.
#6
Posted 20 June 2011 - 03:53 PM
I seriously hope you're not using php with http for the chat. You should just make the chat part of the multiplayer protocol that your game uses. IRC isn't really the tool for this job either, as it's intended for large networks with many users and multiple servers and channels.How do I do this? Is it possible? Echo function replies only to requests, I think. Besides, is it possible to make a webscript to execute without a request? And how will the game know it has recieved a message without sending a request first?
#7
Posted 20 June 2011 - 04:01 PM
I don't have much choice - the game has one room which has a chat for all players - that is whenever a new player joins that chat, he must see everything others are chatting and all others must see whatever he writes. Using peer to peer for this is not suitable - a common server is needed.I seriously hope you're not using php with http for the chat. You should just make the chat part of the multiplayer protocol that your game uses. IRC isn't really the tool for this job either, as it's intended for large networks with many users and multiple servers and channels.
How do I do this? Is it possible? Echo function replies only to requests, I think. Besides, is it possible to make a webscript to execute without a request? And how will the game know it has recieved a message without sending a request first?
I thought http dll 2 supports TCP and not UDP.No. You need TCP.
#8
Posted 20 June 2011 - 04:18 PM
I'm not suggesting you go peer-to-peer, but rather make chat part of your game's multiplayer protocol.Using peer to peer for this is not suitable - a common server is needed.
#9
Posted 20 June 2011 - 04:37 PM
I can't get what you are saying - do you mean I should make every client to request new messages from every other client? o.O If not, then a common server which every client to communicate to is the only way - I dont see any other.I'm not suggesting you go peer-to-peer, but rather make chat part of your game's multiplayer protocol.Using peer to peer for this is not suitable - a common server is needed.
#10
Posted 20 June 2011 - 04:48 PM
No, the client should send the chat message to the server, and the server should relay this message to the other clients. There should be no requests involved in this process.I can't get what you are saying - do you mean I should make every client to request new messages from every other client? o.O If not, then a common server which every client to communicate to is the only way - I dont see any other.
#11
Posted 21 June 2011 - 12:20 AM
HTTP is built onto TCP. You need TCP, not HTTP.I thought http dll 2 supports TCP and not UDP.
Do as crashhelper says.
#12
Posted 21 June 2011 - 09:00 AM
Yes http dll 2 supports TCP sockets, so go ahead and use it.
#13
Posted 21 June 2011 - 04:16 PM
Oh excuse me for not knowing an HTTP DLL supported TCP sockets.Ignore TheMagicNumber, he doesn't have a clue what he's talking about.
Yes http dll 2 supports TCP sockets, so go ahead and use it.
#14
Posted 21 June 2011 - 05:06 PM
IRC uses a text-based protocol, the commands are separated by a newline character (chr(10)). You can read the commands with
while socket_read_message_delimiter(socketid, bufferid, chr(10)) {
command = buffer_to_string(bufferid);
// ...
}
You can send your own commands to the server with socket_write_message_delimiter. Wikipedia has a list of all commands you can send:http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands
I also found this:
http://colinhorne.blogspot.com/2005/01/irc-protocol.html
That should be enough to get started.
Edited by Maarten Baert, 21 June 2011 - 05:07 PM.
#15
Posted 23 June 2011 - 12:57 PM
Does it matter which server I use? Most of these commands seem not to be working on rizon.You can send your own commands to the server with socket_write_message_delimiter. Wikipedia has a list of all commands you can send:
http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands
Also, will the game client have nick, join and create channels just as normal users?
#16
Posted 15 April 2012 - 03:05 PM
#17
Posted 24 June 2012 - 06:26 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











