Qbasicnews.com

Full Version: FB Raknet Port
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
greetings,

when i started on sshot last week i also wrote a c wrapper around RakNet so i could use it for the network part of sshot. i didn't finish it though as i didn't find the time for it.

well, now i finished it and thought i'd would be something for you ppl to play around as i noticed that many in here want to write networked games.

this is by far not a full fleged wrapper, i only ported the basic stuff that you will need. but believe me there's not really much you'll miss. the only thing that i'm going to add is the network time function that will make time synchronization of clients a lot easier ( no ping / 2 ).

i really suggest to read up on game networking programming on gamedev.net and flipcode.org, and read the manual of Raknet on the official site http://www.rakkarsoft.com

here's the source, it includes the lib and dll for the wrapper, a sample client and server, and the c-source of the wrapper have fun

http://ratatoskr.dragonhill.cc/fbirc/fbraknet.rar
Are you still going to make that sshot game networked? I'd like to see how it runs before I learn a bunch of stuff. Wink
don't rely on me i got a lot of other stuff to do. LEARN Wink hehe
Wow thanks. I've been waiting for a high-level network library.
COOL!
Heya, really cool.. i was checking the client/server example, it can't get easier than that.. unless you get someone else to do the net code for ya :P
there's a lot of stuff missing though, namely encryption, compression etc. but afaik raknet does this to some extend ( at least compression ). anybody who encounters something in the original he misses in this wrapper, just leave a message here,it can be easily added.
k updated the package, added a zipped one to by popular demand. fixed a bug ( or better a linker issue ) thx to shadowwolf:

http://ratatoskr.dragonhill.cc/fbirc/fbraknet.rar
http://ratatoskr.dragonhill.cc/fbirc/fbraknet.zip
Could you (or someone else) write an example of sending packets from server to client?
oh sorry yeah that was missing. i suggest to check out the start of the networked version of sshot.

http://ratatoskr.dragonhill.cc/fbirc/netsshot.rar
Pages: 1 2