Rincevvind Posted May 13, 2014 Share Posted May 13, 2014 (edited) Topic means "to profile" I have mod that required to share settings between different sessions there a questions : - is it safe to add custom data to profile? any size restrictions? - is there serialize/unserialize functions for it. looking into http://lua-users.org/wiki/TableSerialization, but most of them too complex for such task. just need array2str(array) and str2array(string) functions, where array can have array of array of array inside without functions,customdata,pointers and other "useless" things . Just standart types like string,boolean,number and table. i can made ugly functions with string concatenation with ugly "unique" key for each array dimension to split them, but maybe there a beauty solution? Edited May 13, 2014 by Rincevvind Link to comment https://forums.kleientertainment.com/forums/topic/36400-saving-data-for-profile/ Share on other sites More sharing options...
Rincevvind Posted May 13, 2014 Author Share Posted May 13, 2014 well i made my own. string size around 1700 bytes, save load without problems Link to comment https://forums.kleientertainment.com/forums/topic/36400-saving-data-for-profile/#findComment-479743 Share on other sites More sharing options...
squeek Posted May 13, 2014 Share Posted May 13, 2014 You could use the DataDumper function in dumper.lua, which is what Don't Starve uses to convert a table to Lua code. Link to comment https://forums.kleientertainment.com/forums/topic/36400-saving-data-for-profile/#findComment-480286 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now