Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
I was editing a script in a world when I suddenly got an error. Now I can't edit the world anymore since whenever I try, it pops up this error within seconds:

Invalid string length

RangeError: Invalid string length

Stack:

at JSON.stringify (<anonymous>)

at t (app://local/assets/index-D-q-SAWQ.js:6701:1569)

at app://local/assets/index-D-q-SAWQ.js:6701:1729

at Array.reduce (<anonymous>)

at n (app://local/assets/index-D-q-SAWQ.js:6701:1713)

at n (app://local/assets/index-D-q-SAWQ.js:6701:1879)

at app://local/assets/index-D-q-SAWQ.js:6701:1930

at app://local/assets/index-D-q-SAWQ.js:6701:1994

at t (app://local/assets/index-D-q-SAWQ.js:6701:3025)

at Object.run (app://local/assets/index-D-q-SAWQ.js:6701:3571)

Component stack:

at pms (app://local/assets/index-D-q-SAWQ.js:7692:105005)

at KKr (app://local/assets/index-D-q-SAWQ.js:6670:68000)

at D$e (app://local/assets/index-D-q-SAWQ.js:6676:35626)

at xJr (app://local/assets/index-D-q-SAWQ.js:6671:28634)

at SQt (app://local/assets/index-D-q-SAWQ.js:7692:132316)

at I0 (app://local/assets/index-D-q-SAWQ.js:1176:37543)

at div

at app://local/assets/index-D-q-SAWQ.js:1136:8849

at DismissableLayer (app://local/assets/index-D-q-SAWQ.js:1136:9757)

at app://local/assets/index-D-q-SAWQ.js:1136:5902

at app://local/assets/index-D-q-SAWQ.js:1136:8849

at FocusScope (app://local/assets/index-D-q-SAWQ.js:1136:15052)

at FocusScopeBranchProvider (app://local/assets/index-D-q-SAWQ.js:1136:17108)

at DialogContentImpl (app://local/assets/index-D-q-SAWQ.js:1176:8182)

at DialogContentModal (app://local/assets/index-D-q-SAWQ.js:1176:6864)

at Presence (app://local/assets/index-D-q-SAWQ.js:1136:19793)

at DialogContent (app://local/assets/index-D-q-SAWQ.js:1176:6618)

at app://local/assets/index-D-q-SAWQ.js:1136:5902

at app://local/assets/index-D-q-SAWQ.js:1136:8849

at Portal (app://local/assets/index-D-q-SAWQ.js:1136:19400)

at Presence (app://local/assets/index-D-q-SAWQ.js:1136:19793)

at Provider (app://local/assets/index-D-q-SAWQ.js:1136:892)

at DialogPortal (app://local/assets/index-D-q-SAWQ.js:1176:5669)

at app://local/assets/index-D-q-SAWQ.js:1524:2597

at Provider (app://local/assets/index-D-q-SAWQ.js:1136:892)

at Dialog (app://local/assets/index-D-q-SAWQ.js:1176:4711)

at div

at kSs (app://local/assets/index-D-q-SAWQ.js:7820:148429)

at I0 (app://local/assets/index-D-q-SAWQ.js:1176:37543)

at CSs (app://local/assets/index-D-q-SAWQ.js:7828:33738)

at nlr (app://local/assets/index-D-q-SAWQ.js:2126:41164)

at tlr (app://local/assets/index-D-q-SAWQ.js:2126:39965)

at K9n (app://local/assets/index-D-q-SAWQ.js:1836:48262)

at aDn (app://local/assets/index-D-q-SAWQ.js:1540:119370)

at hWn (app://local/assets/index-D-q-SAWQ.js:1765:49553)

at bie (app://local/assets/index-D-q-SAWQ.js:1521:31456)

at PV (app://local/assets/index-D-q-SAWQ.js:1521:31245)

at xMe (app://local/assets/index-D-q-SAWQ.js:1521:30799)

at DNn (app://local/assets/index-D-q-SAWQ.js:1521:62402)

at VVn (app://local/assets/index-D-q-SAWQ.js:1765:42019)

at LMn (app://local/assets/index-D-q-SAWQ.js:1524:14795)

at YPn (app://local/assets/index-D-q-SAWQ.js:1540:44336)

at ZPn (app://local/assets/index-D-q-SAWQ.js:1540:45695)

at qNn (app://local/assets/index-D-q-SAWQ.js:1524:1520)

at qen (app://local/assets/index-D-q-SAWQ.js:41:66677)

at OSs (app://local/assets/index-D-q-SAWQ.js:7828:35586)

Version: 3.3.3

Platform: Desktop

System: Windows · Chrome

is there any way to edit the world to remove the part of the script which caused this error? I didn't save a backup of the world and I'd really like to get it back.

Do you know what the error was? i can possibly fix it before today’s release. and yes, you can edit the .json directly. just export the world and then open it in a text editor. find the code and remove the key its in and save it. then import the world and see if that fixes it.

The original message was a collapsible section which had the error copied and pasted, you can click the little arrow at the beginning of the message to expand it. Also I could not export the world either since I also got the same "RangeError: Invalid string length." error.
I did manage to find the world again in an earlier installation for formamorph that I downloaded incorrectly, so I was able to export the world through there and import it into the new version.