Togu
Advanced OT User
For example:
We have modules/gamelib/spells.lua in OTClient with all spells information.
And in TheForgottenServer we have data/spells/spells.xml with the same information.
If you change on server, you have to manually change on client.
How do I remove that duplicated data?
I know how to send and parse info from server to client, one approach I thought was send all spell data at the moment of the login and store on client. But I don't know if this is the best approach.
The other I thought was copy spells.xml and paste on client and make the client read the .xml file. But I don't know how to do that, maybe it will need to compile client with a xml library (?).
We have modules/gamelib/spells.lua in OTClient with all spells information.
And in TheForgottenServer we have data/spells/spells.xml with the same information.
If you change on server, you have to manually change on client.
How do I remove that duplicated data?
I know how to send and parse info from server to client, one approach I thought was send all spell data at the moment of the login and store on client. But I don't know if this is the best approach.
The other I thought was copy spells.xml and paste on client and make the client read the .xml file. But I don't know how to do that, maybe it will need to compile client with a xml library (?).