MMORPG messages

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
sanctus2099
Posts: 18
Joined: Sat Nov 17, 2007 11:34 am

MMORPG messages

Post by sanctus2099 »

Okay so this is not very much Irrlcht related...
I'm trying to make a MMORPG using Irrlicht and Raknet.
Its going preety well but I'm not shure my way of getting messages from the server and vice-versa is the best. I'm using a lot of if's and message indentifiers and stuff like that.
Do any of you know some books/sites that might help me out?
And please don't tell me I need more experience. I've been programming games for a lot of time...(altough I'm new to Irrlicht and RakNet)
Thank you :)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

RakNet's RPC mechanism is quite neat. Are you using that?

Perhaps if you post some sample code, we could suggest specific improvements.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
psyco001
Posts: 10
Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:

Post by psyco001 »

rpc is a bit slow to handle such networking stuff.

read the tutorials from raknet on rakkarsoft.com and use bitstreams
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

In what way is RakNet's RPC mechanism slower than doing a big switch() / if() yourself? Have you looked at the implementation?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
psyco001
Posts: 10
Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:

Post by psyco001 »

no i haven`t looked into implementation, I`ve tested and used the RPC and Bitstream parts of raknet.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Can you be a bit more specific about how RakNet RPC is "a bit slow"? I'm really not sure what would lead you that conclusion, or what metric you're using.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
psyco001
Posts: 10
Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:

Post by psyco001 »

hmm i don't know how to explain.
I mean i can hanlde more packets per second when i use bitstreams.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

psyco001 wrote:hmm i don't know how to explain.
I mean i can hanlde more packets per second when i use bitstreams.
How many more?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
psyco001
Posts: 10
Joined: Mon Oct 29, 2007 11:20 am
Location: Germany
Contact:

Post by psyco001 »

bitstream was 2 times faster when i've used it for practice.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

That's... astonishing. Thanks, I'll be sure to look into that.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply