Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
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!