Stormworks: Build and Rescue

Stormworks: Build and Rescue

89 个评价
Interactive map
3
   
奖励
收藏
已收藏
取消收藏
Vehicles: Air, Sea, Land
标签: v1.6.13
文件大小
发表于
更新日期
142.185 KB
2021 年 1 月 17 日 上午 8:00
2023 年 2 月 6 日 上午 11:53
3 项改动说明 ( 查看 )

订阅以下载
Interactive map

在 Firyst 的 1 个合集中
Firyst's microcontrollers
8 件物品
描述
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 条留言
DM.β Industries Corp. 5 月 2 日 下午 12:04 
jezus the logic on this is a mess, also for the love of god give it normal inputs
Firyst  [作者] 4 月 15 日 下午 12:31 
@WillTP tried to make controller more compact
WillTP 4 月 15 日 上午 6:52 
Why arent here just Number inputs for the gps???
casper 3 月 17 日 下午 2:14 
GOOD
Midnight Ace 2 月 16 日 上午 5:42 
Hey How do you have your waypoint controller set up?
RomanK 2024 年 9 月 25 日 上午 10:49 
Классная карта. Только почему-то X с Y перепутаны.
Firyst  [作者] 2024 年 4 月 21 日 上午 5:20 
@FARADAY спасибо! Цвета нужно обновить, они раньше были темные, а после какой-то из обнов поплыли
FARADAY 2024 年 4 月 19 日 上午 3:48 
офигенная карта, очень порадовала возможность зума и свободного перемещения. Я чутка подредачил код чтобы карта цветная была, и теперь вообще идеально!
WonderfulWafflez 2023 年 5 月 4 日 下午 7:44 
Super cool! Great job. Maybe could be a little more descriptive on the instructions for the advanced setup.
AdamFMX 2023 年 4 月 9 日 上午 3:34 
Oh ok thanks