Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
[NEW WEBSITE] Image to Lua converter (performance friendly)
By Mr Lennyn
Image to Lua converter with excellent performance. Can draw to tens of screens without affecting TPS!
2
   
Award
Favorite
Favorited
Unfavorite
NEW WEBSITE!
Link:
https://mrlennyn.github.io/imagetolua/imagetolua.html

The old algorithm has been updated for even better performance and compression!

New web-tool features vs old desktop-tool:
  • Rectangle Algorithm (compresses image into rectangles instead of lines)
  • Support for multiple scripts
  • Support for bigger images
  • Smaller scripts
  • Faster performance

Tested with 200+ screens (2x2) before noticing lag
Image to Lua (old)!
This desktop version has been upgraded to a website, see above.

Version: 1.0v
Download Link:
For Windows 64bit:
https://github.com/MrLennyn/Image-to-Lua-Stormworks/blob/main/imagetolua.zip

Description:
As easy as dragging and dropping an image to the window, this program will convert your .png files into Stormworks Lua in seconds. Automatically copying the code to your clipboard, ready to paste in game! I tested with up to 100 2x2 screens before there was any lag!





Instructions:

Instalation:
  • Download the .zip file from the link above
  • Extract all files inside the .zip
  • Execute imagetolua.exe

Using the app:
  • Drag & drop an image (.png file)
  • Code is automatically copied to your clipboard
  • Paste your code in-game, into a Lua-block inside a microcontroller.
  • Connect the Lua block to video and to screen

Important notes:
  • Use only .png files.
  • Resolutions should be around 64x64 pixels or less.
  • Images with few and solid colors are recommended.
  • Stormworks character limit is 4096.
  • The transparency option will increase the character count of your images.
  • There are options that add zoom and position variables to the code, which you can use to move and scale the image.
  • Gama Correction is used. Thanks to XLjedi.
  • Source Code is included in the Link, you can modify it, laugh, do whatever you want with it.
  • App was built with LOVE2D engine, written in Lua.
5 Comments
Mr Lennyn  [author] 11 Nov, 2021 @ 2:31pm 
The tool now uses a new improved algorithm and is hosted on a website!
https://mrlennyn.github.io/imagetolua/imagetolua.html
Mr Lennyn  [author] 14 Sep, 2021 @ 4:39pm 
Happy to help!!
.bishop 14 Sep, 2021 @ 10:49am 
Great Work! Thank you, will be fun to make some cool Displays now.
Mr Lennyn  [author] 19 Jul, 2021 @ 8:03am 
Thank you!
Bakuretsu 18 Jul, 2021 @ 5:04pm 
great work!