Stormworks: Build And Rescue

< Wiki‎ Building

Build, Plan, Rescue. Stormworks is the game where you design and pilot your own sea-rescue service, in a rich and dramatic physics playground. Steer or fly your custom-designed, block based, programmable vehicles into fierce oceanic storms. Plan and execute thrilling rescues in a variety of challenging crisis scenarios. In Stormworks: Build and Rescue you build your own rescue base and equip your vehicles for the missions. Together with your friends, you will face the challenges of everyday life of a rescue unit on your own Stormworks: Build and Rescue Server from 4Netplayers. Ready to play in no time. The Stormworks Free Beta is now available to play to everyone! To play the Beta, go to the Stormworks Steam page and click "Download Demo": The Free Beta is the full version of Stormworks and will be available for a couple of weeks. Thank you for supporting the game and for your patience waiting for this release. We are really excited to share this, and would love to hear your feedback. Stormworks: Build and Rescue Stormworks Custom Content Workshop Find, rate and try out the best community vehicles in Stormworks! The sandbox vehicle building game, coastguard search and rescue! 36,244 members.

This article is a stub. You can help Stormworks: Build and Rescue Wiki by expanding it.

This article is a stub. You can help Stormworks: Build and Rescue Wiki by expanding it.

Wiki

Building

Lua Programming

Stormworks build and rescue review

Lua Programming [ edit page ]


  • 5Special Lua Editors


Lua in Stormworks

Lua programming in Stormworks is done inside microcontrollers.'Lua Script' is a logic component like every other, it has 2 inputs (composite and video) and 2 outputs (composite and video).The lua script can draw stuff onto the video feed and it can read and write composite values.These two functionalities are also split in the code, all the video related stuff is done inside the 'onDraw()' function while all composite related stuff is done inside the 'onTick()' function.


Programming Lua in Stormworks comes in with some special rules:

  • each lua script component can contain a maximum of 4096 characters of Lua code
  • only basic Lua libraries are supported: pairs, ipairs, next, tostring, tonumber, math, table, string


Additonally there are functions you can call to draw onto the video or interact with the composite input and output:

  • screen.drawXxx() functions
  • map.xxx() functions to manipulate a drawn minimap
  • input.xxx() functions to read input composite
  • outpy.xxx() functions to read values from properties in this microcontroller


Stormworks offers some code examples and documentation for all functions in the lua code editor (visible when you edit a Lua script component), but you should already have a basic knowledge of programming (any language).


Guide


Learn Lua

If you have no experience in programming learn Lua here: https://www.lua.org/pil/contents.html

Stormworks: Build And Rescue Free Download

MrNJersey offers some tutorial videos:

Special Lua Editors

lua.flaffipony.rocks

CrazyFluffyPony offers a website where you can develop Lua code for Stormworks. It behaves 99% like in Stormworks and makes developing code easier.https://lua.flaffipony.rocks

ZeroBrane

Alternatively you can download ZeroBrane, a Lua IDE for Windows, Mac and Linux. Just be aware that its made for general Lua programming and not specialised for Stormworks.https://studio.zerobrane.com/


Stormworks Play Now

Retrieved from 'https://stormworks.gamepedia.com/Wiki/Building/Lua_Programming?oldid=2607'