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 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%?
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.
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.
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
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.
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.
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.
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.
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
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
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🙂
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..
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.
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.
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.
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.
Ehhhhmmmm no? string.format("%.0f", load) would round depending on the value, whilst math.floor(load) would always round the number down
@@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%?
string.format is slower and returns string, not number
@@v0xl Lua don't care to much about variable types
@@whiteland9992 then make it show 1 decimal
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.
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
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.
This will help me soo much thanks NJ!
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
I've been trying to learn this when I started building things and this really helped me out thanks for making this vid MrNJersey
Also really useful for graphical fuel level displays 👍👌
Can you show how to make the logo
Nice
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😂👍
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.
Simple menu, Will come soon!
@@MrNJersey thank you! Would be so helpful! Keep up the good videos. They really helpt me understand the game more!
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.
Magic and witchcraft! I want some.
nice
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
Interesting...... I wonder what you can teach us. Keep going strong!
wow, thanks for the video, now I can make more interesting buildings!
Thanks this made Lua not so scary anymore I got soon confused when I first saw Lua
Thank you sooo much but where is the next one I need it
Thanks for the video
Hey Nj can you teach us how to build logo on lua loading screen
Good job!
Very nice video
How did you add a icon at the top of the loading screen?
From who you get the Idea?? in previous episode I suggest the loading screen. It's me or someone else??
btw how can you do a logo like lorgs one?
I can make a old looking display system yay:)
Could you show how to control things with lua, like outputs
is 0+10 necessary?
Is there a tutorial for the screen with the logo?
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?
Hey mnt. Dew could you pls make an updated plane tutorial. I don't know how to make the plane steer correctly
Is it possible to add a block in stormworks
8:43 why does he sound so much like Jordan Peterson 🤣 😅😅😅💀💀💀
Is there a way you can make a passcode keypad? And if we put the right code in, a certain door can open
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.
"Simple, very very simple"
Bro became a hackerman!
It would be more realistic if it hangs on 90% for 3 min before starting
How would you add a percentage sign after the numbers?
Bit late but you can do 'string.format("%.0f%%", load)'
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.
When my that on the boot screen hits 100 the data menu doesn’t pop up
Can you make one with password required Screens with loading screen?
Can you do a tutorial on how to make a minigame with lua so it could be like an arcade game?
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
Did you get your name from the ship wreck MRNJersey in the game
otherway around bud.
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
Did you figure out what the calculation actually is?
@@jameshyland7807 No.
@@R-BGamingUK I did, its basically just whatever the 'w-x' value is before it gets changed to 'loadb'
Can anyone do the calculations for each screen size?
i have done the exact same as you but jet i get the blue screen saying something is wrong with the string.format
never mind i fixed it
Thats not a real loading bar! It doesn't get stuck at 99.9%!
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🙂
i need to help (english bad because frenche) for guided gps missile plz
Coding in loading times?
Are you making need for speed the run?
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..
Isn't this just sweat for sweats sake. What do you need to load? Why would you add a loading screen that isnt needed?
why do i have to watch dis in 2x speed to not get frustrated
:)
Ah, scripting makes my head hurt
Same
Welcome to the club
I feel like the dislike is a missclick
i don't see the point..
No views and 2 likes... This isn't funny anymore.
I agree😑
all my numbers say is 0.0
pls help
You might not have hooked up your number.
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.
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.
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.