Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Units to Master communication [customizable framework]
   
Award
Favorite
Favorited
Unfavorite
Description
This system is meant to be CUSTOMIZED BY YOU!


Features
1 Master supports up to 60 identifyable units out of the box.
A unit sends it's data once per second.
Each unit can transmit ~25 number and ~25 boolean channels.
The master accesses the data in lua.


How the example works
In this example, the unit send their gps position to the master.
First the master must be spawned in, and in range of the unit.
Uppon spawning the unit, they request an id from master. Master will give every unit a unique id.
The master defines how is allowed to send, every tick another unit sends his information to the master.
The master collects all data in a lua script. Inside this script all the positions are drawn onto a map.
In this example, the maximum range between unit and master can be 20km (you can change to 40km too).

If a unit is not sending data for 20 seconds, it will be removed from the map and the id is available for new units.

Every unit can simply request a new id. The master will free the old one after 20 seconds.

The master has two monitors:

IDS IN USE
This monitor shows which locators are active, but its not needed for the system to work. You can remove the monitor to save space.

Interactive Map
red circles: the units
green rectangle: the position of the master

Map interaction:
move map: use the pink arrows on the edges
zoom: move + - at the bottom left
center on master positon: use the X in the top left

Configurations
Antennas / Range
Depending on the antennas used, up to 40km range is possible.

use automatic id registration
You can disable the automatic id registration, but then you have to manually set a id for every unit you spawn.
The advantage of non automatic ids is, that the master does not need to be spawned in already.

allow already existing ids
when enabled it is very helpfull when you respawn master and the units already have their id. After 60 ticks the master will know all the old ids again.

passive listen mode
enable this if you only want to receive data from units.
Only works when an active master is spawned in.


Custom Lua Code
The places where you should write your custom code is marked with comments inside the lua scripts.

A more advanced example implementation
Distributed Emergency Beacon Sensors
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2060370662
Items (2)
In 1 collection by CrazyFluffyPony
Pony Emergency Beacon Locator System
5 items