Stormworks Text to Screen Tutorial (LUA BASICS)
HTML-код
- Опубликовано: 16 окт 2024
- Join myself today where we show you the basics of how to use the new LUA script to draw the map on screens here in Stormworks.
MrNJersey Gaming Offical Discord Server Link: / discord
MrNJersey Gaming Offical Merch: teespring.com/...
MrNJersey Patreon Page: / mrnjersey
Stormworks Community Discord Link: / discord
STORMWORKS: BUILD AND RESCUE
Join a world where you design, create and pilot your own sea-rescue service. Release your inner hero as you battle fierce storms out at sea to rescue those in need. Stormworks: Build and Rescue is a rich and dramatic physics playground. Take your custom-designed, block-based and programmable vehicles into fierce oceanic storms. Plan and execute thrilling rescues in a variety of challenging crisis scenarios. Export and share your meticulously designed vehicles and missions with other players via the Steam workshop. Stormworks: Build and Rescue - create, rescue and release your inner hero! Stormworks: Build and Rescue - Create, Rescue and release your inner hero!
Intro Audio: Holy Tension Batman (RUclips Audio Library)
Series Audio: Peace (RUclips Audio Library)
Outro Audio: They Might Not - Puddle of Infinity (RUclips Audio Library)
hey cool lua trick: if you do screen.drawText(1,5,"Compass:"..Compass) it will automatically attach the string "Compass:" to the value Compass into a single line
hey cool lua trick 2: if you do math.floor(Compass+0.5) it will change the compass value from 0.546345645 to 1 and 0.234234 to 0
or maybe do math.floor(Compass*100)/100 and that will change 0.546345645 to 0.54
Another nice trick which lets you place it anywhere in a string (text) is :
local name = "Stevob21"
screen.drawText(4,4,string.format("hi, my name is %s, how are you", name))
This will output "hi my name is Stevob21, how are you", it will also throw an error if the value isn't a string which can be handy!
For more, read up on "lua string interpolation"
Was just about to ask why he didn't just concatenate
i was about to ask if that works, for java it would be (1,5,"Compass: "+Compass)
I would really like to see how the artificial horizon works as shown in your “Update News - Video”, where you showcased your drone.
Could you do a HUD tutorial? So it like took inputs for speed and stuff and then it displayed it over the top of a video input? Even better if we could have on-screen throttle and stuff. Love the tutorials!
you just hook up the video to the lua input. you do it the same way
The best stormworks tutorial guy!
You didn't need a microprocessor for each screen with the 'screen size' microprocessor. The script acts like it's embedded in the screen itself, if you wired one of the video outputs of that microprocessor to all the screens, it will individually get the height and width of each screen and print in on each screen. Try it!
I've used it to allow my scripts to detect screen sizes of multiple screens at once, depending on the size different outputs will occur.
So it is only sending the script and monitor is actually calculating it?
@@jakubpollak2067 it acts like it. ish.
This is because onTick is called multiple times, one for each screen try to increment a counter in onDraw, and reset it in onTick
9:28 ‘A little double dots’ Wait that’s illegal!
?
@@slimjimnichols9265 :
For the 10:53 you can do screen.drawText(1,5,”Compass: ”..Compass)
to give some proprtion: 1 block=250mm=32 pixels so 1 pixel=7,8(125) mm
Idk how bout others but I think next thing they could/should add in the game would be sails I would LOVE to make a sailboat!
You're a legend of this! I tried to write "screen.getText(loading, loading)" before I saw this video😂
Best Stormwork Tutorial channel on RUclips
Another good tutorial. I'm french but the explications are so nice that i can understand everything. Could you make a tutorial on how to move rectangles or circles like rotating them and sliding them, please ?
I think you also can write"screen.drawText("Compass: " .. Compass)".
14:39
(Just a note for me bc I always forget the monitor resolutions)
To simplify compass and time output use concatenation: screen.drawText(1, 5, "Compass: " .. Compass)
This will result in both values being displayed by a single line, and spaced with the extra space inside the quotes.
Once again a great tutorial! :)
you can also do math.floor(Compass*100+0.5)/100 to change long numbers like 0.34533453 to 0.35
The Sky Gamez New to lua, but wouldn’t it be easier to use math.ceil than add an extra .5?
This channel needs more subs
Hi.
Can you please make a HUD tutorial in which you explain how to make an Artificial horizon.
could i take my radar or sonar signal and write it on top of map on screen ?
I do roblox scripting so lua is very close to me so this is easier to learn!
nice i did not know this before and it took me a day before it worked xD
how do you read a on/off comp signal in the script
Very handy
How do you clamp the number as he says??
Kinda like python, i can work with that....
Wonderful program maker(referring to python) isn’t it
HELP, How do I use the value of the screen height and width after grabbing it finding it in the tick function. i want to make code so it accesses the screen height of any monitor it uses and follows the code from there... lol
just a quick question... when you build a gigant boat how do you make into separate parts and how do you put it together?
Use connectors
modded workbenches
How do you get rid of all those random numbers?
Hey! You said i can do the numbers shortr that are on screen with math,but how? Can u help me out i really like ur channel ur my favourite youtuber.
So I heard someone say, that you could use a LUA script to make a "hospital" on your ship. Is this true?
no
Can you make one with the Tuch on the screens
Yes more lua, I really can't understand it
Thx
thanks!
Just when i needed it hahaha
nice
Very helpful thanks :)
I wish I could do this lol
DAM ! this man in 1 minutes make 15 views ! well 15th.. ;-;
288 x 160 / 160 x 96 / 64 x 64 / 32 x 32
Just putting the sizes up to cut & paste.
1 hour in and still 0 dislikes great job I love your tutorial videos
Love your vids
Where is the next top 5?
You dont say how to use textbox
YES
microprocessors arent micro
how do i use the Lua to make touch screen?
Please can you show camodo gaming your ways he starting to build things edit: you know everything.
first
First
Early squad
First :D
how do i use the Lua to make touch screen?
Tiem Tino use the screen’s composite output in your microcontroller, all variables are listed under the help menu along with a touch example.