Lua Build Series - Loading Screen - Stormworks

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 85

  • @whiteland9992
    @whiteland9992 4 ปีที่แล้ว +40

    Just to make something clear.
    math.floor(load)
    gives you the same number as
    string.format("%.0f", load)
    i would only use string.format when i want an x amount of decimal points to be shown. if i want to remove them i would use math.floor.

    • @Mathathat
      @Mathathat 4 ปีที่แล้ว +4

      Ehhhhmmmm no? string.format("%.0f", load) would round depending on the value, whilst math.floor(load) would always round the number down

    • @whiteland9992
      @whiteland9992 4 ปีที่แล้ว +1

      @@Mathathat i tested my statement and it seems like string.format for some reason do round to the closet value. but my last sentence is still valid. why would you have the monitor show 100% when it's 99.5%?

    • @v0xl
      @v0xl 4 ปีที่แล้ว +1

      string.format is slower and returns string, not number

    • @Mathathat
      @Mathathat 4 ปีที่แล้ว +2

      @@v0xl Lua don't care to much about variable types

    • @Mathathat
      @Mathathat 4 ปีที่แล้ว

      @@whiteland9992 then make it show 1 decimal

  • @ghoste2755
    @ghoste2755 ปีที่แล้ว +1

    Idk why but this is so cool to me, I even took time to make another screen "initializing" and after a bit of time, got it working

  • @EnderMalcolm
    @EnderMalcolm 4 ปีที่แล้ว +4

    Adding a capacitor to make the system send a screen signal a few seconds after powering on would be fun. Like a normal computer going through it's bios before loading the OS.

  • @toast3
    @toast3 4 ปีที่แล้ว +10

    One tutorial I'd really appreciate is one on operating memory. I've been trying to create some fancier systems from scratch, and I'm a decent programmer, but I think I've been hitting race conditions or infinite loops from editing and reading the same values.

  • @poklianon
    @poklianon 2 ปีที่แล้ว

    I was inventing all of my scripts by myself without guides, and it was very interesting to see another way of realization, which has huge difference with mine

  • @freightersonthegreatlakes995
    @freightersonthegreatlakes995 ปีที่แล้ว +1

    You are the most underrated TH-camr I have ever seen. You make things so simple and explain lots of things to us that make sense

  • @alpha2874
    @alpha2874 4 ปีที่แล้ว +1

    I've been trying to learn this when I started building things and this really helped me out thanks for making this vid MrNJersey

  • @Dutch-Duke
    @Dutch-Duke 4 ปีที่แล้ว +3

    This will help me soo much thanks NJ!

  • @opeix
    @opeix ปีที่แล้ว +2

    8:43 why does he sound so much like Jordan Peterson 🤣 😅😅😅💀💀💀

  • @kmous
    @kmous 4 ปีที่แล้ว +8

    I am sorry that I am late
    I had german lesson
    Thanks for the video
    I needed this
    How do you know what I need every time........haha😂👍

  • @TAKV_gaming
    @TAKV_gaming 4 ปีที่แล้ว +12

    Interesting...... I wonder what you can teach us. Keep going strong!

  • @A-Random-Guy23
    @A-Random-Guy23 4 ปีที่แล้ว +4

    Can you show how to make the logo

  • @Ak-ve3kw
    @Ak-ve3kw 4 ปีที่แล้ว +1

    Nice

  • @dwoodman26
    @dwoodman26 4 ปีที่แล้ว

    Also really useful for graphical fuel level displays 👍👌

  • @Element4ry
    @Element4ry 3 ปีที่แล้ว +1

    Magic and witchcraft! I want some.

  • @klimgor
    @klimgor 4 ปีที่แล้ว

    wow, thanks for the video, now I can make more interesting buildings!

  • @chickencraft101
    @chickencraft101 4 ปีที่แล้ว

    Thanks this made Lua not so scary anymore I got soon confused when I first saw Lua

  • @Uberhexation
    @Uberhexation 4 ปีที่แล้ว +4

    I would like to know how to make categories for touchscreens for example: a box called lighting an other box called engines, if you tab lights in your screen it shows different boxes with cabin lights; ship lights; bridgelights etc.

    • @MrNJersey
      @MrNJersey  4 ปีที่แล้ว +2

      Simple menu, Will come soon!

    • @Uberhexation
      @Uberhexation 4 ปีที่แล้ว

      @@MrNJersey thank you! Would be so helpful! Keep up the good videos. They really helpt me understand the game more!

    • @mhart3D
      @mhart3D 4 ปีที่แล้ว +1

      Not trying to give an extensive guide but I imagine basically there would be a different lua script for each different screen (main menu, then one that shows all the lights). you would connect all the lua scripts using switchboxes, and which script is selected depends on the x/y coordinate of where you tapped on the screen. For player feedback you could “change” the background color of the pressed button to give it the effect of being pressed.

  • @alfiepearce23
    @alfiepearce23 4 ปีที่แล้ว +2

    Thank you sooo much but where is the next one I need it

  • @antonisangelopoulos8970
    @antonisangelopoulos8970 4 ปีที่แล้ว

    Very nice video

  • @nomadredz
    @nomadredz 4 ปีที่แล้ว +3

    Hey Nj can you teach us how to build logo on lua loading screen

  • @LichtMarv
    @LichtMarv 4 ปีที่แล้ว +1

    nice

  • @rezasarikhani1453
    @rezasarikhani1453 4 ปีที่แล้ว

    Good job!

  • @ProWhitaker
    @ProWhitaker 4 ปีที่แล้ว

    Thanks for the video

  • @jacobgaasbakk
    @jacobgaasbakk 4 ปีที่แล้ว +1

    Could you show how to control things with lua, like outputs

  • @Elliottblancher
    @Elliottblancher 3 ปีที่แล้ว +1

    Is there a tutorial for the screen with the logo?

  • @NytrateDeSodium
    @NytrateDeSodium 4 ปีที่แล้ว +2

    btw how can you do a logo like lorgs one?

  • @quantum5087
    @quantum5087 4 ปีที่แล้ว +1

    How did you add a icon at the top of the loading screen?

  • @Burrito_Legend
    @Burrito_Legend 10 หลายเดือนก่อน

    "Simple, very very simple"
    Bro became a hackerman!

    • @lastxp
      @lastxp 7 หลายเดือนก่อน

      It would be more realistic if it hangs on 90% for 3 min before starting

  • @alfiepearce23
    @alfiepearce23 4 ปีที่แล้ว +2

    I can make a old looking display system yay:)

  • @guusvanrijn
    @guusvanrijn 4 ปีที่แล้ว +1

    Hey mnt. Dew could you pls make an updated plane tutorial. I don't know how to make the plane steer correctly

  • @NytrateDeSodium
    @NytrateDeSodium 4 ปีที่แล้ว +2

    is 0+10 necessary?

  • @tinyslurpfish1017
    @tinyslurpfish1017 4 ปีที่แล้ว +2

    Is it possible to add a block in stormworks

  • @Elliottblancher
    @Elliottblancher 3 ปีที่แล้ว

    I need help with the lua script I can't seem to figure out why the image won't show up on the loading screen can you help me?

  • @deltavii7499
    @deltavii7499 4 ปีที่แล้ว +1

    How would you add a percentage sign after the numbers?

    • @KeluskTV
      @KeluskTV 4 ปีที่แล้ว

      Bit late but you can do 'string.format("%.0f%%", load)'

  • @F2NW
    @F2NW 4 ปีที่แล้ว +1

    From who you get the Idea?? in previous episode I suggest the loading screen. It's me or someone else??

  • @muralikulathumani6529
    @muralikulathumani6529 4 ปีที่แล้ว +1

    Is there a way you can make a passcode keypad? And if we put the right code in, a certain door can open

    • @Dylancool14
      @Dylancool14 4 ปีที่แล้ว

      I'm sure it'd work if you were to write the keypad's number into a composite using a composite write. You'd also need an on off output on the microcontroller to open the door. Or you could create a number output with a numerical switchbox to control the rotation. So then put it through the lua script.
      then do like input = getNumber(1) which would detect the keypad's input and put it into the variable "input"
      Then do like
      if input = 1234 then output.setBool(2,1)
      not sure if that'd work at the output part as im fairly new to lua, but its worth a shot :) 1234 would obviously be the chosen password that you want to open the door. so altogether the code i think would work would be:
      function onTick
      input = getNumber(1)
      if input = 1234 then output.setBool(2,1)
      end
      obviously if this is wrong someone please correct me haha. The output must be on composite channel 2 and the input on channel 1.

  • @chaoticguy8783
    @chaoticguy8783 2 ปีที่แล้ว +1

    When my that on the boot screen hits 100 the data menu doesn’t pop up

  • @maxine_q
    @maxine_q 4 ปีที่แล้ว

    How is the inner rectangle not drawing over the outer one? It has a height of 5 and a border of one at each side. Now the inner one is one pixel down and has a height of one pixel less, but shouldn't it be two pixels less, since there's also a border of one pixel at the bottom? But somehow it works and I don't understand why.

  • @benw7616
    @benw7616 3 ปีที่แล้ว +2

    Thats not a real loading bar! It doesn't get stuck at 99.9%!

  • @matthewmcphan5770
    @matthewmcphan5770 6 หลายเดือนก่อน

    Can anyone do the calculations for each screen size?

  • @SirJo_
    @SirJo_ 3 ปีที่แล้ว +1

    Can you make one with password required Screens with loading screen?

  • @Fransenn
    @Fransenn 4 ปีที่แล้ว

    i have done the exact same as you but jet i get the blue screen saying something is wrong with the string.format

    • @Fransenn
      @Fransenn 4 ปีที่แล้ว

      never mind i fixed it

  • @goproskiing_kid619
    @goproskiing_kid619 3 ปีที่แล้ว +1

    Can you do a tutorial on how to make a minigame with lua so it could be like an arcade game?

    • @BabaSaft069
      @BabaSaft069 3 ปีที่แล้ว

      It's the same like making a java minigame while drawing on canvas. Just convert some small java game that works without objects, if you find any. Or use tables instead. I've no idea how the performance is on that but if you keep it small it may work

  • @R-BGamingUK
    @R-BGamingUK 2 ปีที่แล้ว

    What was the calculation you did? I cant get this to work with a 2x3 screen
    Edit:I figured it out, While you used 43 for the 2x2 i had to use 75 with the 2x3

    • @jameshyland7807
      @jameshyland7807 2 ปีที่แล้ว

      Did you figure out what the calculation actually is?

    • @R-BGamingUK
      @R-BGamingUK 2 ปีที่แล้ว

      @@jameshyland7807 No.

    • @jameshyland7807
      @jameshyland7807 2 ปีที่แล้ว

      @@R-BGamingUK I did, its basically just whatever the 'w-x' value is before it gets changed to 'loadb'

  • @carlynj9077
    @carlynj9077 4 ปีที่แล้ว

    Did you get your name from the ship wreck MRNJersey in the game

    • @cod_cape5483
      @cod_cape5483 4 ปีที่แล้ว +1

      otherway around bud.

  • @Marcus_Red
    @Marcus_Red 2 ปีที่แล้ว

    Every time i hear: This is really simple. Then i know that there is a brain meltdown coming for me🙃,
    I really appreciat that you make this tutorials!! Helps alot🙂

  • @2S_770
    @2S_770 4 ปีที่แล้ว

    i need to help (english bad because frenche) for guided gps missile plz

  • @Resident-of-Pluto
    @Resident-of-Pluto 3 ปีที่แล้ว +1

    Coding in loading times?
    Are you making need for speed the run?

  • @benthedaddyYT
    @benthedaddyYT 4 ปีที่แล้ว

    Why do you have a load of code that isn’t needed? It’s like your either putting code in so you can recognise if someone copies it... or you’ve copied it from someone that has... 0+10 is always 10? Why? 0+11? This code seems to made more complicated than it needed to be..

  • @TjarkMusic
    @TjarkMusic 8 หลายเดือนก่อน

    why do i have to watch dis in 2x speed to not get frustrated

  • @TheRealUnconnected
    @TheRealUnconnected 4 ปีที่แล้ว

    Isn't this just sweat for sweats sake. What do you need to load? Why would you add a loading screen that isnt needed?

  • @MultiHunterOne
    @MultiHunterOne 3 ปีที่แล้ว +2

    I got accused of "stealing" and "doing the exact same thing" by your fans while my boot screen was radically different and had nothing to do with this video, which I'm seing for the first time but I guess if great MrNJersey makes a video on something then he owns the rights to it and it has never been done before.
    No thanks for making the stormworks community cancer.

    • @MrNJersey
      @MrNJersey  3 ปีที่แล้ว +1

      Actually I promote the use of my creations and you will find tons of reps on the workshop, unfortunately there is a group within the community which does spread the negativity, this is not allowed on my server and that’s why most of them are banned.

    • @MultiHunterOne
      @MultiHunterOne 3 ปีที่แล้ว +1

      I think its sad your fans don't see a microcontroller that took a week to make but the boot screen that took 20 minutes which has a progress bar so it means it's automatically based on yours, even if the only similarity is the fact that there's a progress bar. If there's literally anything that's covered by your tutorials it automatically means that anyone who makes anything that looks or functions remotely close based off you. It's embarrasing and pisses me and other people that actually put in effort not to make mediocre stuff off.

  • @TobiQ0286
    @TobiQ0286 4 ปีที่แล้ว +1

    :)

  • @lithuanianinbound589
    @lithuanianinbound589 4 ปีที่แล้ว +1

    I feel like the dislike is a missclick

  • @Frostbyte501
    @Frostbyte501 4 ปีที่แล้ว +3

    No views and 2 likes... This isn't funny anymore.

    • @RaidRSYT
      @RaidRSYT 4 ปีที่แล้ว +1

      I agree😑

  • @mattturn6590
    @mattturn6590 4 ปีที่แล้ว +3

    Ah, scripting makes my head hurt

  • @boris3320
    @boris3320 4 ปีที่แล้ว

    i don't see the point..

  • @robloxbill9815
    @robloxbill9815 2 ปีที่แล้ว

    all my numbers say is 0.0

  • @KingVRhehe
    @KingVRhehe 11 วันที่ผ่านมา

    just a quick tip for anyone I know I'm like 4 years late but if you want percentage after the loading screen just do this line:
    *screen.drawTextBox(0, 44, w 7, string.format("%.0f", load).. "%", 0, 0)*