Suggestion for Network + Physics lib

Blitz3D Forums/Blitz3D Beginners Area/Suggestion for Network + Physics lib

videz(Posted 2014) [#1]
I'm trying to make a physics multi-player game. Anyone can suggest a good combination of free libraries that is already tested?


ThePaiva(Posted 2014) [#2]
I'm using BPLite v1.14 for my multiplayer games, it was the easiest one I could find and use. Haven't had any problems with it, only thing is that it's based on a player hosting a server AND playing at the same time, but you can easily create a dedicated server with it without problems.

About the physics, I don't really use any, but I know there's Tokamak. Here's a post with some links: http://www.blitzbasic.com/Community/posts.php?topic=77712


ThePaiva(Posted 2014) [#3]
Sorry, forgot to add the link to download BlitzPlay Lite http://members.shaw.ca/blitzplay/BPlitev1.14.zip


videz(Posted 2014) [#4]
Thanks thePaiva, I already tested BlitzPlay Lite and it works ok. The version that I tried is with Enet:

http://www.blitzbasic.com/codearcs/codearcs.php?code=2586

I'm just hoping there's one that had physics already supported in it. Will it be hard to add in BPLite?

cheers.


ThePaiva(Posted 2014) [#5]
Didn't know about Enet, nice finding!

About the physics, they shouldn't be too difficult to implement, as long as you have a physics lib and know how to use it.

You could have kind of a copy of your game world and simulate the physics server-sided and then pass the results (as a position update) back to all the players.

You could simulate the physics client-sided and just send a position update packet to the other players.

or you could kind of a mix of client-sided and server-sided physics. Taking Counter-Strike as an example, I'm pretty sure they simulate objects with physics server-sided since everyones sees them at the same place and they're kinda important since you use them as cover, but the ragdolls are client-sided so you see them in a different position than other players and they're just not as important as the cover.

It really comes down to what you think best suits your game


videz(Posted 2014) [#6]
That's a lot of pointers ThePaiva, thank you. I will take these into consideration and perhaps focus more on single player games for now and circle back on these when I'm ready.

I'm leading towards Tokamak or Newton library as I see it's been used a lot.

cheers.