Stormworks: Build and Rescue

Stormworks: Build and Rescue

88 ratings
Interactive map
3
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land
Tags: v1.6.13
File Size
Posted
Updated
142.185 KB
17 Jan, 2021 @ 8:00am
6 Feb, 2023 @ 11:53am
3 Change Notes ( view )

Subscribe to download
Interactive map

In 1 collection by Firyst
Firyst's microcontrollers
8 items
Description
This is a lua based map with lot of functions, such as free movement, drawing routes and grid, connecting external modules etc.

Specs
Supports 2x2+ monitors (sorry, no 1x1).
Controller size: 3x2.
Free moving around map.
Following player.
Drawing waypoints.
Drawing shortest path.
Drawing grid (size can be chosen).
Returning current coordinates.

Basic setup (no waypoints)
0. Subscribe to this item.
1. Install the controller.
2. Connnect "touch" from your monitor.
3. Connect "input data". For making composite just use "composite write". Index 1 is compass, 2 is X, 3 is Y.
4. Connect video signal to your monitor.
5. Make sure everything is connected properly and supplied with electricity.

Advanced setup (with waypoints/external controller)
0. Do all previous steps.
1. Place a keyboard (large) and composite write for two numbers or use any other way of input. Odd indexes are for X, even for Y. Max - 8 waypoints (indexes 1-16).
2. Connect the composite to the map controller.

Controls
Click on the map to move. Map centers to the point you clicked.
Plus and minus buttons are used for zooming in/out.
"W" button centers you to waypoint №1, if it is set.
"C" button centers you to your current location (requires input connected).
Holding "C" button toggles player follow mode. To stop following. just click somewhere.
"S" button opens settings menu:
  • Path (PTH): draws line paths between waypoints.
  • Player (PLR): draws the player triangle.
  • Points (WPS): draws waypoints.
  • Grid (GRD): draws grid.
  • Grid size (GSZ): select the length between two grid lines.

Notes
Output node return world's X and Y of current map center.
Map can be customized on the 122-128 lines of main code.
Grid sizes may be changed in settings menu code, line 6.
Waypoints are shown only if its coords aren't equal to 0.
I know that code is literally unreadable and the whole controller is trash. Thanks devs for this stupid 4096 symbols limit. Or maybe i'm a bad coder.

Feel free to use, but if you use this controller in your workshop product, please credit me!
80 Comments
DM.β Industries Corp. 2 May @ 12:04pm 
jezus the logic on this is a mess, also for the love of god give it normal inputs
Firyst  [author] 15 Apr @ 12:31pm 
@WillTP tried to make controller more compact
WillTP 15 Apr @ 6:52am 
Why arent here just Number inputs for the gps???
casper 17 Mar @ 2:14pm 
GOOD
Midnight Ace 16 Feb @ 5:42am 
Hey How do you have your waypoint controller set up?
RomanK 25 Sep, 2024 @ 10:49am 
Классная карта. Только почему-то X с Y перепутаны.
Firyst  [author] 21 Apr, 2024 @ 5:20am 
@FARADAY спасибо! Цвета нужно обновить, они раньше были темные, а после какой-то из обнов поплыли
FARADAY 19 Apr, 2024 @ 3:48am 
офигенная карта, очень порадовала возможность зума и свободного перемещения. Я чутка подредачил код чтобы карта цветная была, и теперь вообще идеально!
WonderfulWafflez 4 May, 2023 @ 7:44pm 
Super cool! Great job. Maybe could be a little more descriptive on the instructions for the advanced setup.
AdamFMX 9 Apr, 2023 @ 3:34am 
Oh ok thanks