Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
Hi, I am looking on the counting of string bytes for official saving -
cr.logexport("Saved state to IndexedDB storage (" + savingJson.length + " bytes)");[/code:2i459fxf]
"savingJson.length" is the characters count of a string(savingJson). It might not the bytes count of this string.
Develop games in your browser. Powerful, performant & highly capable.
It's just for information purposes, I don't think it's that important. Besides the real byte length depends on the encoding, and IndexedDB may use something else like UTF-8 for storage, so you can't actually really tell!