[PLUGIN] Network v0.3a update***

Post and try out addons that are currently in development.

Post » Sat Jul 23, 2011 6:57 pm

Here it is folks...I think I've worked out enough bugs to be comfortable posting an Alpha.



I implemented the plugin on top of ENET (a very fast lightweight UDP library). ENET was specifically designed for fast online multiplayer gaming. http://enet.bespin.org/ It can be used for free or commercial games w/o cost just reference me and the ENET license http://enet.bespin.org/License.html.

The plugin uses UDP (both a fast unreliable (e.g. position updates) and a slower reliable (e.g. chats)) for communication. It also supports virtual channels so you should never put reliable and unreliable comms on same channel.

I built an example net shooter game w/ CC v1.1 to show you how it works and also included a short README.



Network Plugin - Download

Updated v0.3a - Aug 14th to add condition "On connect failed" for the client and fixed chat bug (you can type any characters now).

Enjoy! scidave2011-08-14 21:38:39
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sat Jul 23, 2011 7:57 pm

Wow, its nice and simple as well.
Runs off to play.
Makes new thread on forum called "Lets talk turn based games".
Nice job there Scidave, Construct is officially now multiplayer.
Image Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

Post » Sat Jul 23, 2011 10:50 pm

Amazing! =D I can't wait to play around with this

Thanks a tonne SciDave!
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Sun Jul 24, 2011 12:03 am

YES! Finally!

Networking with Construct. Hopefully this will become a standard plug for future releases of CC

Can't wait to test it myself. Your work is much appreciated. Thank you.

(But don't you dare to take a break now )
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sun Jul 24, 2011 4:58 am

Is there any kind of prediction in this?
B
5
S
2
G
5
Posts: 221
Reputation: 2,272

Post » Sun Jul 24, 2011 5:31 pm

Wow!, nice job scidave
B
4
S
1
G
1
Posts: 3
Reputation: 836

Post » Sun Jul 24, 2011 11:20 pm

Awesome! Can't wait for a tutorial.
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Mon Jul 25, 2011 1:48 pm

[QUOTE=Arsonide] Is there any kind of prediction in this?[/QUOTE]

Nope. It does keep track of ping RoundTripTime (although I haven't exposed that yet) so I could add prediction, but I have no plans to. There is no lag compensation built into the plugin.

If you are wondering if you should finish the Online plugin..I'd say definitely yes! That plugin is much different than mine with player tracking, uses parameter actions to push new parameters, and with your plan to add lag compensation would make online much better.

I see my plugin being more for really simple games/turn based games or users who know how to add prediction/lag compensation to their games.

@Phobos and all   Thanks! I don't know how many hours I put into this plugin so it feels good to have released it. :-) The readme combined with the net shooter.cap should serve as the tutorial. It is super simple to use.

Edit: Although, I probably will due a tut once the final plugin is released.. but who knows when that will be. ;-)scidave2011-07-25 17:26:39
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Tue Jul 26, 2011 6:26 am

This is freaking awesome!!!
Already reworking on some projects now thanks to this!! Amazing scidave
B
2
S
1
G
3
Posts: 49
Reputation: 1,098

Post » Tue Jul 26, 2011 7:40 am

still haven't had the chance to try this, and I really haven't look into network code yet, but I would definitely want to be able to add my own prediction. I'm assuming this RoundTripTime is needed to be able to attempt any real prediction, could you please add an expression for it?

thanks again for this
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Next

Return to Work-in-progress addons

Who is online

Users browsing this forum: No registered users and 0 guests