Sign in to follow this  
  • entries
    32
  • comments
    30
  • views
    10732

Update

Sign in to follow this  
Lacutis

75 views

Ok, so tonight I worked on the communication protocol between the server and Torque2d.

So far I have made the following message types:

enum EComType
{
COM_NONE = 0,
COM_HELLO,
COM_DISPLAY,
COM_LOGIN,
COM_LOGOUT,
COM_BANNED,
COM_MENU,
COM_CHARLIST,
COM_CREATECHAR,
COM_CHOOSECHAR,
COM_ENTERGAME,
COM_CREATEENT,
COM_UPDATEPOS,
COM_REQUPDATE,
COM_REMENTITY
};



They all pass from the server to the client properly, and I have created the stub functions in the engine to parse them and pass them to a callback in the scripting engine of T2d.

So far, so good. Tommorow I will start implementing the new functions in script. I spent a good hour or so reading through threads on the garagegames message boards to figure out the best way to handle the entities so I can reference them, loop on them, and create them properly without losing track of them.

Fun, fun!
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now