[PLUGIN] Zack0Wack0's Socket.io mod

Post your completed addons to share with the community

Post » Thu May 09, 2013 4:58 pm

I have been working on a design. A Multiplayer Space-Sandbox RPG Game with elements of Real-Time Strategy.

Using socket.io and your plugin I was able to implement Smooth Movements for players and miners(AIHarvestingDrones). Also I handled the following features:
Energy
Shields
Bullets and Rockets
Battle(aiming, targeting, seeking)
Map
Building
Harvesting-AI
Exploring-AI
Producing Units

As I was not able to send and receive text, my players have no name but "Player 0,1...". Also, I have built everything updating some old example found here and the example does not handle disconnecting players, so, on connect, a lot of ghosts spawns on new player's screen.

There are others really minor and easy solving bugs, but they doesn't matter. In the current state, If you guys could help me out I would be able to host my simple "server.js" some place and then start an alpha.
, that would be a huge burst.

http://www.youtube.com/watch?v=PkKNakWSgpo

Thanks
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Fri May 10, 2013 4:29 am

Solved the Ghosts.

Now only the onDisconnect bug and Crashes between layout change may stop me!
Any solution for this ones?
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Sun May 12, 2013 4:21 pm

I have question. I have set up a tcp server in delphi and i can send and receive normal TCP messages but i tried setting it up with this plugin and it can connect fine but it doesnt seem to be able to send data.

When it connects i get this message :

GET /socket.io/1/?t=1368371983491 HTTP/1.1
Host: 127.0.0.1:1050
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
Origin: http://localhost:50000
Accept: */*
Referer: http://localhost:50000/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

This proves communication is possible but when i send some string it doesnt show up.

If someone could help it would be great.

B
9
S
2
Posts: 100
Reputation: 1,335

Post » Sun Jun 02, 2013 3:57 pm

I made a Tutorial for Socket.IO
You can take a look at it here:
https://www.scirra.com/tutorials/571/modded-socketio
Hope you like it
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
23
S
9
G
7
Posts: 253
Reputation: 4,831

Post » Tue Jul 16, 2013 1:59 pm

How can I sent multiple data using one event?

Something like:
On "Button" clicked -> Send "playermove", player.x,player.y

And then on server:
socket.on("playermove",function(data)
{

x = data.player.x
y = data.player.y

});

B
37
S
15
G
6
Posts: 238
Reputation: 7,735

Post » Fri Jul 11, 2014 9:45 pm

Any update for this plugin guys ?

Cheers.
B
11
S
3
Posts: 32
Reputation: 814

Post » Tue Sep 06, 2016 1:56 pm

breackzin wrote:Now only the onDisconnect bug and Crashes between layout change may stop me!
Any solution for this ones?

Hi breackzin,
have you found any solution fot the onDisconnect bug?
Thank you!
B
10
S
3
Posts: 32
Reputation: 666

Post » Sat Nov 05, 2016 3:53 pm

@ciao121 use the scirra system.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Sat Nov 05, 2016 4:15 pm

I'm using the scirra own websocket plugin now. :)
Thanks!
B
10
S
3
Posts: 32
Reputation: 666

Previous

Return to Completed Addons

Who is online

Users browsing this forum: Kcpunk666 and 4 guests