PlaneShift

Development => Development Deliberation => Topic started by: virajithj on November 30, 2010, 03:50:55 am

Title: Planeshift Game server architecture - design of network and database
Post by: virajithj on November 30, 2010, 03:50:55 am
Hi,

I was trying to figure out how exactly does the network and database communication work in Planeshift.

1. For the network, are the messages sent between client and server just those given at http://planeshift.ezpcusa.com/pswiki/index.php?title=Network_messages?

2. For the database communication, in which file can I find the code using which the server communicates with the sql server? Is everything in /planeshift/src/server/database/mysql/dal.cpp ?
Also what exactly is the database used for? I have seen that it is used for client authentication and for storing info about things that the player picks up etc. Is it used for anything else? I guess if you could let me know the details of the former question, I can figure out that of the latter looking at the code.

Thanks
Virajith
Title: Re: Planeshift Game server architecture - design of network and database
Post by: weltall on November 30, 2010, 06:27:29 am
messages.cpp
it's used to store everything which can be saved somehow
Title: Re: Planeshift Game server architecture - design of network and database
Post by: RlyDontKnow on November 30, 2010, 02:37:38 pm
note that those are 2 answers ;)