One day, I got in. - Kevin Flynn
The grid is the multiplayer server that runs your parcel scripts on the Cryptovoxels infrastructure. It runs the exact same API as the normal scripting engine, but it keeps track of the state on the server and sends changes to everyone connected. This means if you click a door and it opens, it will open for everyone else who is standing near you. It also means you can play multiplayer games with other players, and the server will maintain the state of the game.
The multiplayer server is free to use, and is hosted by the Cryptovoxels Corporation. Your scripts are spun up on demand, have a strict memory limit of 8MB of heap, are CPU time limited, and are killed when your parcel is idle.
The advantages of using The Grid:
Go to your parcel in the Parcels tab. Be sure to be logged in!
If you own the parcel, and if you're logged in, you should see an admin panel like the one below:
Done! Your scripts are now multiplayers.
(Example for parcel #78 - put in your own parcel ID to follow along)
grid: true(set this in parcel settings)
https://untrusted.cryptovoxels.com/grid/parcels/78/scripts.jsand evaluates it
The grid server currently dispatches messages instantly from your script back to the client, but this will be throttled to 5 or 10 hz in a future version, because sending realtime 60hz updates over a websocket over the public internet causes lots of lag and bunching up of packets.
Your logs are written to redis and persisted. They are publicly viewable (don't put any secrets in your logs ok) at:
APIs are very basic as of version 1.1.2, more will become available over time
The grid server has it's own versioning info. See the currently released version at https://grid.cryptovoxels.com/