The Daily Click ::. Forums ::. General Chat ::. Dead Reckoning Extension!
 

Post Reply  Post Oekaki 
 

Posted By Message

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
12th September, 2010 at 15:39:37 -

I just found out that Andos created a dead reckoning extension Here's the link:
http://andersriggelsen.dk/mmf2_extensions.php

Quote: "The Dead Reckoning object solves the problem of handling object movements in multiplayer games where it isn't feasible to constantly send updates over the network. The Dead Reckoning object predicts the movement of the objects in-between updates from the server and makes their movement look more natural and realistic."

Now if there was only an example file I'll have to figure it out.

 
n/a

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
12th September, 2010 at 16:13:42 -


Originally Posted by Sumo148
I just found out that Andos created a dead reckoning extension Here's the link:
http://andersriggelsen.dk/mmf2_extensions.php

Now if there was only an example file I'll have to figure it out.



Well... an inch to the right of the extension download there is an example file.
...you could try that?

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Flava



Registered
  30/07/2002
Points
  684

Has Donated, Thank You!Code MonkeyVIP MemberThe Cake is a LieThe Spinster
12th September, 2010 at 16:31:26 -

Ah thanks for posting this - dead reckoning has always been something I've never quite figured out!

 
This is a signature. Have this one on me.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
12th September, 2010 at 19:14:06 -

A little jiggly, but still cool!

/file away for later

 

  		
  		

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
12th September, 2010 at 19:41:11 -


Originally Posted by Eternal Man [EE]

Originally Posted by Sumo148
I just found out that Andos created a dead reckoning extension Here's the link:
http://andersriggelsen.dk/mmf2_extensions.php

Now if there was only an example file I'll have to figure it out.



Well... an inch to the right of the extension download there is an example file.
...you could try that?



Wow. I did not see that... My bad. Yeah it's a little jiggly but its decent i guess.

Edited by Sumo148

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
13th September, 2010 at 04:29:00 -

I'm not thrashing andos's work here, but I think you'd be better off writing your own dead reckoning system.

Dead reckoning is not a one size fits all type of thing, at least not *good* dead reckoning.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
13th September, 2010 at 23:46:26 -


Originally Posted by UrbanMonk
I'm not thrashing andos's work here, but I think you'd be better off writing your own dead reckoning system.

Dead reckoning is not a one size fits all type of thing, at least not *good* dead reckoning.



I agree 100%, thank you for saying it before I did.

 
http://www.facebook.com/truediamondgame

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
14th September, 2010 at 02:06:11 -

Yeah I know that too, but its good to have this extension if your games simple, such as a top down movement.

 
n/a

Silveraura

God's God

Registered
  08/08/2002
Points
  6747

Game of the Week WinnerKlikCast StarAlien In Training!VIP Member360 OwnerWii OwnerSonic SpeedThe Cake is a LieComputerChristmas Tree!
I am an April Fool
14th September, 2010 at 02:21:39 -


Originally Posted by Sumo148
Yeah I know that too, but its good to have this extension if your games simple, such as a top down movement.



I disagree still. I'm against using extensions unless they're absolutely necessary mainly because they're rarely reliable when it comes to maintaining backwards compatibility. Most people when they first got MMF2, MMF2 Java, MMF2 HWA, MMF2 Flash... were all suffering big time because they had to sit back and twiddle their thumbs while they waited and ultimately hoped for the extensions they relied so heavily on, to be ported up and over. An issue you wouldn't have if you learned how to do it the right way.

Extensions are excellent when you need to bring in some external programming that MMF2 is otherwise incapable of doing natively without them... for example Lacewing. MMF2 cannot communicate with the necessary outside parts of the computer through it's own native shell, so an extension was made to bridge that connection. Stuff like this is quite frankly, kind of lazy to be honest.

 
http://www.facebook.com/truediamondgame

Andos



Registered
  15/05/2002
Points
  48

Has Donated, Thank You!Game of the Week WinnerVIP Member
14th September, 2010 at 04:01:58 -

Hi all, thanks for the feedback.
There is also a thread about it here on the CT forums: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=203681#Post203681

About the jigglyness:
For the example file it is kinda intentional.
I wanted to demonstrate how it behaves while not receiving updates. For any real-world example you would send the updates about twice as fast which would almost eliminate the jigglyness completely. For the next beta version I have implemented some simple movement smoothing which should reduce the effect even more.

I'm aware that one size can't fit all stuff.
Movement prediction without any knowledge of the game mechanics can lead to unpredicted results.
This is mainly why I will encourage people to only use the dead-reckoning as a guide for their multiplayer object movements.
Another thing: You can improve the effect if you give the dead-reckoning controlled object the exact same movement as the one it should imitate. That way you can apply local clientside game rules on your object's movement (like collision with objects or backdrop) and make it stop.
The next beta will also give you very fine-grained control over every parameter. You can give x-movement completely different behavior from the y-movement for example.

Silverfire:
I can only disagree with you on never using extensions. I know many extensions have the problem of not being ported to the different runtimes (including some of my graphical ones). However I also think it's a bit of a waste to convert an extension to another runtime if there is zero interest in it. If you really need a port of an extension for a specific runtime you can always ask the author for it.
I try really hard to make this object as flexible as possible so it will fit most needs. If it doesn't please tell me.
I don't think you can call people lazy for using an extension like this. Implementing good dead reckoning is a tough job, and if something exist that does it for you then it is just stupid to reinvent the wheel. Only if the extension is inadequate then people could implement their own.

On a sidenote:
The next beta of Dead Reckoning object will have a Flash port as there was a lot of interest in that.

 
//Andos - www.andersriggelsen.dk

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
14th September, 2010 at 14:39:12 -

A flash version will be dandy!

Thanks Andos!

 
n/a

Andos



Registered
  15/05/2002
Points
  48

Has Donated, Thank You!Game of the Week WinnerVIP Member
1st October, 2010 at 16:46:41 -

I have just released Beta 2 of the extension along with a Flash port
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=207553&#Post207553

What do you think?

 
//Andos - www.andersriggelsen.dk

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
1st October, 2010 at 19:48:37 -

Great thanks!

This'll be handy for small online flash games!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click