screepers / screeps-multimeter

The most useful tool on your screeps workbench.
MIT License
89 stars 28 forks source link

Watch plugin only works with shard0 #32

Closed SystemParadox closed 4 years ago

SystemParadox commented 4 years ago

The watch plugin only appears to work with shard0 at the moment. We're currently doing api.memory.get('watch'), but this just defaults to shard0. If the player isn't on shard0, this just returns { ok: 1 }, but contains no other data.

The api.memory.get() and api.memory.set() functions appear to also accept a second argument for the shard name.

The quick-fix is to just use the shard defined in the config file, but perhaps this should integrate with /shard somehow.