Jump to content

Best way to save/load XML clientside?


Recommended Posts

Hi,

I want to finally implement save and load functions in my handlingeditor, but there's one big, big problem. I want to give users to ability to save functions on their name or account, and load handlings from other users. That last one is the big dilemma: it requires the XML with the saved stuff to be serverside to sync properly. And the client requires to retrieve the XML file to load all the stuff into a gui-gridlist.

But I'm worried about the bandwith of this. If that XML file is very big, wouldn't that be an enormous amount of bytes to send to the client? Or is there some way to reduce this efficiently which does not lagg the server?

My XML syntax idea was like this, but I didnt script anything yet, so feel free to suggest better ones.

Link to comment

maybe try not syncing everything, but only thing you actually need

for example, when browsing infernus handling configurations, sync only them, not allvehicles.

also, as we all know, xml isn't compact data storage, you could compress the data in much smaller string, then send it, and decode clientside.(for example, not having to send "", but just "something;something else".

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...