kalakus
(kalakus)
May 2, 2018, 8:52pm
239
The database operation will happen at the server side and the data on client will change with Notifies. There is no client connection to a database and should not have. Whenever you need data, you just ask for it or when a data which needs to be update on client, the server will notify the change, then the client has to catch that notify and provide the change. You can have a separate client and server solution, but we are using the built in networking for now, so it is the same executable, but started different in the command line to act as a server.
The data Im going to generate using the NPC generator is to feed the main database only accessible in the server. So, when the quest system ask for the NPC attributes to build the appearance, it will use a server service call, when the server has gathered the data it will notify the client the requested data is ready. The client must not wait for any data or hitches can occur, so the notify system is the best suitable.
Also we will build a layer for the SQL database so later we can change it for a more robust one.
Make sense in this way, i working without a dedicated server but my project is not big as your (not an mmo), so i just prefer to use listen server and local save system at this time, i was interested in implementing steam but i got some problem with testing (seem’s that i need two computer for testing multiplayer), so i think i will just develop it without steam implementation.
let’s wait for the update