Author Topic: Planeshift Game server architecture - design of network and database  (Read 919 times)

virajithj

  • Traveller
  • *
  • Posts: 17
    • View Profile
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
« Last Edit: November 30, 2010, 09:17:38 pm by virajithj »

weltall

  • Moderator
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: Planeshift Game server architecture - design of network and database
« Reply #1 on: November 30, 2010, 06:27:29 am »
messages.cpp
it's used to store everything which can be saved somehow

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Planeshift Game server architecture - design of network and database
« Reply #2 on: November 30, 2010, 02:37:38 pm »
note that those are 2 answers ;)