Space Engineers

Space Engineers

Not enough ratings
Data Storage Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.035 KB
3 Jan, 2015 @ 3:44pm
10 Jan, 2015 @ 1:26pm
10 Change Notes ( view )

Subscribe to download
Data Storage Script

Description
Example script for storing arbitrary data in a block's name. Will later use something less dumb,
but as this is the only method available right now, that's what we got.

This data will get persisted across save/load boundaries! :)
6 Comments
pipakin  [author] 10 Jan, 2015 @ 1:27pm 
Should work again now (after the change/fix to GetBlockWithName), changed implementation to class. Data should not need migration.
pipakin  [author] 4 Jan, 2015 @ 10:40am 
Updated code so that values aren't visible on the control panel (They are shifted off screen by whitespace).
pipakin  [author] 4 Jan, 2015 @ 9:58am 
Fixed major bug where it didn't work right with blocks not named "Data Storage".
pipakin  [author] 3 Jan, 2015 @ 4:56pm 
and...added a quick check for the list not existing, now you'll get an empty list instead of a nasty exception.
pipakin  [author] 3 Jan, 2015 @ 4:52pm 
Now with lists! That's pretty much everything I needed out of it. If you guys need anything from this, lemme know and I'll add it.
pipakin  [author] 3 Jan, 2015 @ 4:32pm 
Updated with generic API. you'll need to change your scripts that use it if you update them.