[PLUGIN] Chat (with SocketIO)

Post your completed addons to share with the community

Post » Mon Apr 16, 2012 8:19 pm

[QUOTE=valkyriegames]... The problem is not with installing node.js, but with using dbm to install socket.io ...[/QUOTE]
dbm? Try npm: 'npm install socket.io' will do it under Win7.

Velojet2012-04-16 20:22:10
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Tue May 15, 2012 7:32 pm

What is this Unique ID ?
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Tue May 15, 2012 11:58 pm

@Schoening

Uh? I don't understand your question, could you explain more detail?
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Wed May 16, 2012 11:19 am

The Chat Plugin has a Event Function Called Unique ID.

Is this just the Server Giving the Joined User an ID, OR is it something more advanced, the IP?

Would be great to know, if it is the IP I could BAN people.

Also, please take a Look at my Topic: Simple Chat Window with Rex's Plugin   in the "How do I...?" Section, if you got time
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Wed May 16, 2012 3:11 pm

@Schoening

Uh, I guess this "Unique ID" is just an "UID", each instance has an UID given by engine.

I had created another socket.io plugin, look at this thread.
http://www.scirra.com/forum/yetanother-multiplayer-demo_topic51622.html

Yes, plugin will give each joined player an user id. You can see this part in sample capx at this thread.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Thu May 17, 2012 10:56 am

Ty.

So with the new Server I simply use it, no worries about the Server you say?
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Thu May 17, 2012 11:15 am

@Schoening

I think so. The server still alive now.

In my plan, designer use bottleneck plugin to connect to server, then use sync-function plugin to transfer/handle commands.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Thu May 17, 2012 11:23 am

I am getting A LOT of help from Wastrel right now to make a good chat.

I am trying to get your Plugin to work in it.. But I fail..

Could you point me in the Right Direction?

http://dl.dropbox.com/u/53738503/Chat%20Fail.capx

B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Thu May 17, 2012 11:23 am

whoops! this is still the old server btw
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Thu May 17, 2012 11:52 am

@Schoening

Got it!

Since "on data received" is a trigger with a green arrow, it can not put after other event I thought.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: AndreasR and 1 guest