Page 1 of 16

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

PostPosted: Sat Jul 23, 2011 6:57 pm
by scidave
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

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

PostPosted: Sat Jul 23, 2011 7:57 pm
by newt
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.

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

PostPosted: Sat Jul 23, 2011 10:50 pm
by Jayjay
Amazing! =D I can't wait to play around with this

Thanks a tonne SciDave!

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

PostPosted: Sun Jul 24, 2011 12:03 am
by tulamide
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 )

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

PostPosted: Sun Jul 24, 2011 4:58 am
by Arsonide
Is there any kind of prediction in this?

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

PostPosted: Sun Jul 24, 2011 5:31 pm
by Goh
Wow!, nice job scidave

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

PostPosted: Sun Jul 24, 2011 11:20 pm
by Phobos002
Awesome! Can't wait for a tutorial.

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

PostPosted: Mon Jul 25, 2011 1:48 pm
by scidave
[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

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

PostPosted: Tue Jul 26, 2011 6:26 am
by Chris018
This is freaking awesome!!!
Already reworking on some projects now thanks to this!! Amazing scidave

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

PostPosted: Tue Jul 26, 2011 7:40 am
by lucid
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