Stationeers

Stationeers

Not enough ratings
Hostile Lisp
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.077 MB
23 Oct @ 8:57am
26 Oct @ 10:38am
3 Change Notes ( view )

Subscribe to download
Hostile Lisp

Description
Allows programming the computer using lisp. Interpreter is sandboxed and is both memory and compute constrained so it is safe for use in multiplayer.

This requires StationeersLaunchpad to run: https://github.com/StationeersLaunchPad/StationeersLaunchPad/

The lisp interpreter is programmed using Common Lisp but still has parts of the standard library unimplemented. (Most notably setf, please use setq instead)

Available commands
  • (stationeers:device-container-id) => deviceid
  • (stationeers:device-enumerate &optional prefix) => (deviceid ...)
  • (stationeers:device-store deviceid logictype value) => T/Nil
  • (stationeers:device-load deviceid logictype) => Value/Nil
  • (stationeers:device-prefab-name deviceid) => String/Nil
  • (stationeers:device-stack-put deviceid address value) => T/Nil
  • (stationeers:device-stack-get deviceid address) => Value/Nil
  • (stationeers:device-stack-clear deviceid) => T/Nil
  • (stationeers:device-name-load deviceid) => String/Nil
  • (stationeers:device-name-store deviceid name) => T/Nil
  • (stationeers:device-slot-count deviceid) => Int/Nil
  • (stationeers:device-slot-store deviceid logictype value) => T/Nil
  • (stationeers:device-slot-load deviceids logictype) => Value/Nil
  • (stationeers:device-batch-load deviceids logictype value) => Value/Nil
  • (stationeers:device-batch-store deviceid logictype) => Value/Nil
  • (stationeers:device-batch-prefab-name deviceids) => Value/Nil
  • (stationeers:device-batch-name-load deviceids) => Value/Nil
  • (stationeers:game-time) => Number
  • (stationeers:string-hash string) => Number

Examples
Turn off all devices:
(stationeers:device-batch-store (stationeers:device-enumerate) 'on 0)