Here's a script that demonstrates the issue (WARNING, THIS WILL TRASH THE STATE FOR A GAME). Be sure to run it in a fresh game with a fresh state: on('ready',()=>{
let testSize=15519;
log(`Current: A[${state.a ? state.a.length : '<empty>'}], B[${state.b ? state.b.length : '<empty>'}], setting: ${testSize}`);
state.a='A'.repeat(50000);
state.b='B'.repeat(testSize);
});
It creates a state with two properties: a and b It writes a string of 50,000 'A's in state.a, then writes a string of testSize 'B's into state.b. It turns out 50,000 'A's and 15520 'B's is fine, but no more than that can be written. Reporting is one step behind, so change testSize and save the script, then wait a few seconds to be sure persistence has happened and save the script again to make sure the sizes were written. Here's a transcript of what this should look like: Spinning up new sandbox... "Current: A[<empty>], B[<empty>], setting: 15519" Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Current: A[50000], B[15519], setting: 15519" Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Current: A[50000], B[15519], setting: 15520" Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Current: A[50000], B[15520], setting: 15520" Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Current: A[50000], B[15520], setting: 15521" Restarting sandbox due to script changes... Previous shutdown complete, starting up... Spinning up new sandbox... "Current: A[50000], B[15520], setting: 15521" Note the pairs of bold lines where I ran the script to see the output, then bumped up the testSize by 1 and saved it to make the change. Notice that bumping from 15520 to 15521 did not result in B increasing in size by 1.