how to dump friend list storage

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

grhwood
Posts: 116
Joined: 15 Mar 2011, 04:43

how to dump friend list storage

Postby grhwood » 02 May 2013, 15:54

Hi,

I'm using default SFS2x friend list storage now. But at some point, I may be need to use custom storage. So my question is: is it possible to dump the friend list storage to import it to another custom storage.

Thanks
User avatar
Lapo
Site Admin
Posts: 21700
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: how to dump friend list storage

Postby Lapo » 02 May 2013, 18:48

The sources of the default, file-based storage system are available in this tutorial:
http://docs2x.smartfoxserver.com/Advanc ... y-list-api
so you can easily build an exporter and re-import them into your new system.

It's basically using SFSObject/Array to serialize the data and write it as binary files on disk.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 25 guests