(Created page with "A '''save''' is a file that contains data about the current state of the game.")
 
No edit summary
Line 1: Line 1:
A '''save''' is a file that contains data about the current state of the game.
A '''save''' is a file that contains data about the current state of the game.
== Inside a save ==
In a save there's 2 JSON objects, in this particular order:<syntaxhighlight lang="json">
{"version":"1.8.0","roomName":"WHAT","coin":20,"room":3,"gravity":true,"hardcore":false,"playtime":393.96258544921877,"temperature":20.0,"ac":false,"light":true,"sign":""}
</syntaxhighlight>This is the metadata of the save, the version, the name, the money...<syntaxhighlight lang="json">
{"playerData":{"x":18.179142,"y":53.66691,"z":-19.0156765,"ry":45.9237671,"rx":3.599485},"itemData":[{"spawnId":"FlatMonitor","id":599758571,"pos":{"x":-12.6691809,"y":-5.67894745,"z":-6.1120553},"rot":{"x":0.301219523,"y":0.6397389,"z":0.639739752,"w":-0.3012209},"data":{"damaged":false,"glue":false}},{"spawnId":"Crate_Case_ATX(Black)","id":-1533475361,"pos":{"x":-20.67389,"y":-4.288955,"z":-4.298242},"rot":{"x":-0.694708645,"y":-0.6947081,"z":0.131834447,"w":0.131834432},"data":{"glue":false}},{"spawnId":"Crate_Case_ATX(Black)","id":-152446665,"pos":{"x":9.498936,"y":-3.28893352,"z":-14.94713},"rot":{"x":0.466130942,"y":0.5317162,"z":-0.5317156,"w":0.46613133},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":2054203474,"pos":{"x":-9.163823,"y":-4.288947,"z":3.95957255},"rot":{"x":-0.420856327,"y":0.4208559,"z":0.568225265,"w":-0.5682257},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":304328838,"pos":{"x":-25.4728374,"y":-3.538967,"z":-2.117688},"rot":{"x":-0.999964237,"y":1.62052629E-08,"z":0.008463376,"w":4.45753869E-07},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":-186328891,"pos":{"x":-16.6291122,"y":-3.53895044,"z":4.95441628},"rot":{"x":0.966063857,"y":-7.191433E-08,"z":-0.258303642,"w":-4.358661E-07},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":1943010128,"pos":{"x":10.1579437,"y":-3.538948,"z":-11.09863},"rot":{"x":-2.79101926E-07,"y":0.861216545,"z":-2.9261443E-08,"w":0.5082382},"data":{"glue":false}},{"spawnId":"Part_4","id":1403376016,"pos":{"x":-21.9800987,"y":-5.738934,"z":9.090099},"rot":{"x":-0.363654733,"y":0.606421649,"z":-0.606433451,"w":-0.363657117},"data":{"glue":false}},{"spawnId":"FlatMonitor","id":454197252,"pos":{"x":23.9229488,"y":50.6969147,"z":18.5413284},"rot":{"x":-0.6095349,"y":0.358423084,"z":-0.358423173,"w":-0.609535},"data":{"damaged":true,"glue":false}},{"spawnId":"CPU Celeron G3920","id":485677439,"pos":{"x":-7.07684851,"y":-5.76832533,"z":20.71779},"rot":{"x":-5.5949954E-07,"y":-0.9114966,"z":-7.67247E-07,"w":-0.411307633},"data":{"damaged":false,"glue":false}}],"scene":{"elv":{"pos":{"x":6.491913,"y":64.27802,"z":18.4224415},"goA":false}}}
</syntaxhighlight>This is where the scene objects are stored (e.g. monitors). Additionally if your save is a Factory one there is a special '''scene''' object, containing the position of the elevator and if it should go up or not.

Revision as of 15:31, 22 March 2026

A save is a file that contains data about the current state of the game.

Inside a save

In a save there's 2 JSON objects, in this particular order:

{"version":"1.8.0","roomName":"WHAT","coin":20,"room":3,"gravity":true,"hardcore":false,"playtime":393.96258544921877,"temperature":20.0,"ac":false,"light":true,"sign":""}

This is the metadata of the save, the version, the name, the money...

{"playerData":{"x":18.179142,"y":53.66691,"z":-19.0156765,"ry":45.9237671,"rx":3.599485},"itemData":[{"spawnId":"FlatMonitor","id":599758571,"pos":{"x":-12.6691809,"y":-5.67894745,"z":-6.1120553},"rot":{"x":0.301219523,"y":0.6397389,"z":0.639739752,"w":-0.3012209},"data":{"damaged":false,"glue":false}},{"spawnId":"Crate_Case_ATX(Black)","id":-1533475361,"pos":{"x":-20.67389,"y":-4.288955,"z":-4.298242},"rot":{"x":-0.694708645,"y":-0.6947081,"z":0.131834447,"w":0.131834432},"data":{"glue":false}},{"spawnId":"Crate_Case_ATX(Black)","id":-152446665,"pos":{"x":9.498936,"y":-3.28893352,"z":-14.94713},"rot":{"x":0.466130942,"y":0.5317162,"z":-0.5317156,"w":0.46613133},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":2054203474,"pos":{"x":-9.163823,"y":-4.288947,"z":3.95957255},"rot":{"x":-0.420856327,"y":0.4208559,"z":0.568225265,"w":-0.5682257},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":304328838,"pos":{"x":-25.4728374,"y":-3.538967,"z":-2.117688},"rot":{"x":-0.999964237,"y":1.62052629E-08,"z":0.008463376,"w":4.45753869E-07},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":-186328891,"pos":{"x":-16.6291122,"y":-3.53895044,"z":4.95441628},"rot":{"x":0.966063857,"y":-7.191433E-08,"z":-0.258303642,"w":-4.358661E-07},"data":{"glue":false}},{"spawnId":"Crate_FlatMonitor","id":1943010128,"pos":{"x":10.1579437,"y":-3.538948,"z":-11.09863},"rot":{"x":-2.79101926E-07,"y":0.861216545,"z":-2.9261443E-08,"w":0.5082382},"data":{"glue":false}},{"spawnId":"Part_4","id":1403376016,"pos":{"x":-21.9800987,"y":-5.738934,"z":9.090099},"rot":{"x":-0.363654733,"y":0.606421649,"z":-0.606433451,"w":-0.363657117},"data":{"glue":false}},{"spawnId":"FlatMonitor","id":454197252,"pos":{"x":23.9229488,"y":50.6969147,"z":18.5413284},"rot":{"x":-0.6095349,"y":0.358423084,"z":-0.358423173,"w":-0.609535},"data":{"damaged":true,"glue":false}},{"spawnId":"CPU Celeron G3920","id":485677439,"pos":{"x":-7.07684851,"y":-5.76832533,"z":20.71779},"rot":{"x":-5.5949954E-07,"y":-0.9114966,"z":-7.67247E-07,"w":-0.411307633},"data":{"damaged":false,"glue":false}}],"scene":{"elv":{"pos":{"x":6.491913,"y":64.27802,"z":18.4224415},"goA":false}}}

This is where the scene objects are stored (e.g. monitors). Additionally if your save is a Factory one there is a special scene object, containing the position of the elevator and if it should go up or not.