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)

Комментарии • 72

  • @TheSkyGamez
    @TheSkyGamez 5 лет назад +63

    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

    • @TheSkyGamez
      @TheSkyGamez 5 лет назад +11

      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

    • @mwmm
      @mwmm 5 лет назад +5

      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"

    • @Styles2304
      @Styles2304 5 лет назад +3

      Was just about to ask why he didn't just concatenate

    • @redpug5042
      @redpug5042 4 года назад +1

      i was about to ask if that works, for java it would be (1,5,"Compass: "+Compass)

  • @BobtheBuilder0
    @BobtheBuilder0 5 лет назад +17

    I would really like to see how the artificial horizon works as shown in your “Update News - Video”, where you showcased your drone.

  • @loeuf
    @loeuf 5 лет назад +25

    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!

    • @marshallguillory7076
      @marshallguillory7076 5 лет назад

      you just hook up the video to the lua input. you do it the same way

  • @robigan
    @robigan 5 лет назад +22

    The best stormworks tutorial guy!

  • @doctorjado8406
    @doctorjado8406 5 лет назад +4

    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.

    • @jakubpollak2067
      @jakubpollak2067 5 лет назад +1

      So it is only sending the script and monitor is actually calculating it?

    • @doctorjado8406
      @doctorjado8406 5 лет назад

      @@jakubpollak2067 it acts like it. ish.

    • @veda-powered
      @veda-powered 5 лет назад +1

      This is because onTick is called multiple times, one for each screen try to increment a counter in onDraw, and reset it in onTick

  • @actorpus
    @actorpus 5 лет назад +12

    9:28 ‘A little double dots’ Wait that’s illegal!

  • @colder7603
    @colder7603 5 лет назад +5

    For the 10:53 you can do screen.drawText(1,5,”Compass: ”..Compass)

  • @vale.44peru
    @vale.44peru 5 лет назад +4

    to give some proprtion: 1 block=250mm=32 pixels so 1 pixel=7,8(125) mm

  • @martinspolek8591
    @martinspolek8591 5 лет назад +3

    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!

  • @larsimann3032
    @larsimann3032 5 лет назад +2

    You're a legend of this! I tried to write "screen.getText(loading, loading)" before I saw this video😂

  • @mattturn6590
    @mattturn6590 5 лет назад +2

    Best Stormwork Tutorial channel on RUclips

  • @alexnder2670
    @alexnder2670 5 лет назад +5

    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 ?

  • @larsimann3032
    @larsimann3032 5 лет назад +3

    I think you also can write"screen.drawText("Compass: " .. Compass)".

  • @simplemark
    @simplemark 4 года назад +4

    14:39
    (Just a note for me bc I always forget the monitor resolutions)

  • @KristofferHallgren
    @KristofferHallgren 5 лет назад +6

    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! :)

    • @TheSkyGamez
      @TheSkyGamez 5 лет назад

      you can also do math.floor(Compass*100+0.5)/100 to change long numbers like 0.34533453 to 0.35

    • @KristofferHallgren
      @KristofferHallgren 5 лет назад

      The Sky Gamez New to lua, but wouldn’t it be easier to use math.ceil than add an extra .5?

  • @Dasmus
    @Dasmus 5 лет назад +2

    This channel needs more subs

  • @Max-ky2dt
    @Max-ky2dt 5 лет назад +2

    Hi.
    Can you please make a HUD tutorial in which you explain how to make an Artificial horizon.

  • @akilsholm
    @akilsholm 4 года назад +2

    could i take my radar or sonar signal and write it on top of map on screen ?

  • @HazzyHazeI
    @HazzyHazeI 4 года назад +1

    I do roblox scripting so lua is very close to me so this is easier to learn!

  • @jaspersgames4094
    @jaspersgames4094 5 лет назад +4

    nice i did not know this before and it took me a day before it worked xD

  • @BargNargLol
    @BargNargLol Год назад +1

    how do you read a on/off comp signal in the script

  • @properdodgybird3611
    @properdodgybird3611 4 года назад +2

    Very handy

  • @kaimcauley958
    @kaimcauley958 4 года назад +2

    How do you clamp the number as he says??

  • @Cimanator
    @Cimanator 5 лет назад +13

    Kinda like python, i can work with that....

    • @castlebravo4627
      @castlebravo4627 4 года назад

      Wonderful program maker(referring to python) isn’t it

  • @oooMELTONooo
    @oooMELTONooo 2 месяца назад

    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

  • @tulvatjoet5533
    @tulvatjoet5533 5 лет назад +2

    just a quick question... when you build a gigant boat how do you make into separate parts and how do you put it together?

  • @nightraider4138
    @nightraider4138 4 года назад +1

    How do you get rid of all those random numbers?

  • @pelvismen5510
    @pelvismen5510 4 года назад +1

    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.

  • @JakupFLJ
    @JakupFLJ 3 года назад +1

    So I heard someone say, that you could use a LUA script to make a "hospital" on your ship. Is this true?

  • @tomik499
    @tomik499 5 лет назад +1

    Can you make one with the Tuch on the screens

  • @DeepfriedChips
    @DeepfriedChips 5 лет назад +1

    Yes more lua, I really can't understand it

  • @Lazygames2
    @Lazygames2 7 месяцев назад

    Thx

  • @Lingon_
    @Lingon_ 5 лет назад +1

    thanks!

  • @cyangaming6078
    @cyangaming6078 5 лет назад +1

    Just when i needed it hahaha

  • @mattiasrask1575
    @mattiasrask1575 5 лет назад

    nice

  • @louis7459
    @louis7459 5 лет назад +1

    Very helpful thanks :)

  • @philipblake5609
    @philipblake5609 4 года назад +1

    I wish I could do this lol

  • @mig8287
    @mig8287 5 лет назад +2

    DAM ! this man in 1 minutes make 15 views ! well 15th.. ;-;

  • @robmuzz
    @robmuzz 5 лет назад +1

    288 x 160 / 160 x 96 / 64 x 64 / 32 x 32
    Just putting the sizes up to cut & paste.

  • @matiaskukkonen920
    @matiaskukkonen920 5 лет назад +1

    1 hour in and still 0 dislikes great job I love your tutorial videos

  • @hermanulstein908
    @hermanulstein908 5 лет назад

    Love your vids

  • @marcusbuckley4171
    @marcusbuckley4171 5 лет назад

    Where is the next top 5?

  • @iluaskvortsov1486
    @iluaskvortsov1486 4 года назад

    You dont say how to use textbox

  • @billy-blij-1-2-36
    @billy-blij-1-2-36 5 лет назад

    YES

  • @AROWAYPlaysiscool
    @AROWAYPlaysiscool 5 лет назад

    microprocessors arent micro

  • @emilrosen6679
    @emilrosen6679 5 лет назад +1

    how do i use the Lua to make touch screen?

  • @firescoutgaming2274
    @firescoutgaming2274 5 лет назад

    Please can you show camodo gaming your ways he starting to build things edit: you know everything.

  • @sawyerbuss637
    @sawyerbuss637 5 лет назад

    first

  • @zartec6810
    @zartec6810 5 лет назад

    First

  • @hermanulstein908
    @hermanulstein908 5 лет назад

    Early squad

  • @krijndees
    @krijndees 5 лет назад

    First :D

  • @emilrosen6679
    @emilrosen6679 5 лет назад

    how do i use the Lua to make touch screen?

    • @KristofferHallgren
      @KristofferHallgren 5 лет назад

      Tiem Tino use the screen’s composite output in your microcontroller, all variables are listed under the help menu along with a touch example.