RakNet Help needed!

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
Post Reply
James Proctor
Orc
Posts: 406
Joined: Fri May 16, 2008 7:33 pm
x 5

RakNet Help needed!

Post by James Proctor »

As any of you know, who have been keeping track of my project in the showcase forum, I am rewriting the Player Demo into a multiserver configuration. The client connects just fine to the world server and upon the successful Authentication of the users account it connects to the correct region server based on the region stored in the database for the avatar. My problem is that when it goes to create the avatar the client never receives the SERVER_ENTERWORLD packet so it never creates the avatar and just crashes the client. What are some causes for a client to never receive a packet and what are some things that I should do to try and fix this problem?
Follow me on Twitter - https://twitter.com/EmpireGames
Follow my Blog on Blogger - http://empiredevelopment.blogspot.com/
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: RakNet Help needed!

Post by DanielSefton »

You should really post in the appropriate forums... If you want to post here, do it in off-topic, but you should post in the RakNet forums. This is for Ogre stuff only.

Anyway, check that in your Packet enum you have exactly the same packets in exactly the same order on both the client and server. Also make sure that the first packet in the list is assigned to ID_USER_PACKET_ENUM.
James Proctor
Orc
Posts: 406
Joined: Fri May 16, 2008 7:33 pm
x 5

Re: RakNet Help needed!

Post by James Proctor »

Considering this has to do indirectly with the player demo in a way it does have to do with Ogre. I will not post in the Raknet forums because the first time I tried posting a question there I got what I thought was a very rude response from the owner. In fact I had decided against ever using Raknet again until I started messing around with the player demo.

The Server and Client share a common file that has the Packet enum so they are in the same order and the first Packet type has ID_USER_PACKET_ENUM.
Follow me on Twitter - https://twitter.com/EmpireGames
Follow my Blog on Blogger - http://empiredevelopment.blogspot.com/
User avatar
DanielSefton
Ogre Magi
Posts: 1235
Joined: Fri Oct 26, 2007 12:36 am
Location: Mountain View, CA
x 10
Contact:

Re: RakNet Help needed!

Post by DanielSefton »

James Proctor wrote:Considering this has to do indirectly with the player demo in a way it does have to do with Ogre.
Nope, the Player Demo has nothing to do with the Ogre library -- it's a user-contributed project which uses Ogre. You are not encouraged to ask questions even about the Ogre addons here, which have their own forums. Just post in off-topic next time if you must. :P
I will not post in the Raknet forums because the first time I tried posting a question there I got what I thought was a very rude response from the owner.
I just had a browse out of curiosity, came across that topic and... Where's the rudeness? :? He's right... Run it in debug and post a stacktrace. :P how is that a rude response?
James Proctor
Orc
Posts: 406
Joined: Fri May 16, 2008 7:33 pm
x 5

Re: RakNet Help needed!

Post by James Proctor »

In one of his posts he came across IMO as the problem couldn't possibly be His Raknet it had to be something I was doing. Like Raknet was perfect or something. I don't know maybe it was just the way I took it.
Follow me on Twitter - https://twitter.com/EmpireGames
Follow my Blog on Blogger - http://empiredevelopment.blogspot.com/
Post Reply