I wouldn't recommend using the extra function block for the multiplication by 49. Writing "input1 * -49" in Line 13 instead is easier to troubleshoot and cleaner (at least in my opinion). Good Video though!
Really good tutorial. The only thing you can improve on is hardcoding stuff in your lua draw function. You should use variables 'w' and 'h' (which are currently useless in your code) in drawRect and drawRectF to make it compatible with other monitor sizes. Anyway It is not a big deal and everything else is just perfect!
How much lag do these scripts create? I know a lot of games involving things like this can get quite laggy if you have lots of scripts running at the same time
I was trying to convert the clock signal to a basic 24 hour but the signal that comes from the clock is between 0 and 100 . And obviously the clock is between 0 and 24. Even if i use the function to convert it to make it same with the hours im not able to make it on the minuate part because i cant separate the signal. Any idea to make a screen clock?
I might be late, but you could use the outputs from the fluid meter by dividing the Fluid Level by the Fluid Capacity to get a number from 0 to 1, or the short answer: Fluid Level / Fluid Capacity = number from 0 to 1
How would I use this to make a fuel bar? The bar needs to be 54 pixels but the tank is 13250L. How would i go about converting the number of the tank capacity to the full bar?
Quality stuff as always.
Mr. Nitpicker: You could have saved seconds by just multiplying the input value in Lua :D
How do you do that?
@@LaserTractor oh ok cool thanks i couldnt work it out
I wouldn't recommend using the extra function block for the multiplication by 49.
Writing "input1 * -49" in Line 13 instead is easier to troubleshoot and cleaner (at least in my opinion).
Good Video though!
oh man I came early, this is awesome
Yay! It's up!
Could use this for some cool things
Can’t wait to have this on my ship!!
Really good tutorial. The only thing you can improve on is hardcoding stuff in your lua draw function. You should use variables 'w' and 'h' (which are currently useless in your code) in drawRect and drawRectF to make it compatible with other monitor sizes. Anyway It is not a big deal and everything else is just perfect!
About touchscreen it is possible to do a toggle signal from it?
Boolean called Toggle. When you press the button
Toggle != Toggle will invert it
Awesome tutorial as per usual, thanks a bunch!
Epic bruh-i mean bar graph tutorial
how to make lua radar screen next???
I really hope i understand lua more
Nice tutorial MrNJ love it😅
That would be cool to see touchscreen on this bars, so you can adjust throttle for example ON the screen.
Just combine my last tutorial and this one and you can do it
I wish they could add the Smile Basic language, but nice vid!
Can you do more vehicle creations with no edits like you did on your fuel truck live stream
Just write `-input*49` in the height slot in the LUA script. This will decrease delay by a tick I'd imagine.
I just did this and it's amazing thanks NJ your the best ❤👍😇
How much lag do these scripts create? I know a lot of games involving things like this can get quite laggy if you have lots of scripts running at the same time
nice like Lua :) only wish Devs give us hydrophone nowe :)
Good upload, but I was hoping for some more advanced stuff. Thanks anyway. Cheers!
Is it possible to write “smaller letters”? In order to fit more text in a screen?
Nope sorry
@@MrNJersey what about biger?
so how do you get another bar that shows another value?
Im really Bad at lua so when i want to make something on scheen i draw something with pantblocks and point a camera on it xD
I was trying to convert the clock signal to a basic 24 hour but the signal that comes from the clock is between 0 and 100 . And obviously the clock is between 0 and 24. Even if i use the function to convert it to make it same with the hours im not able to make it on the minuate part because i cant separate the signal. Any idea to make a screen clock?
It comes out from 0 to 1, just do a X*24 and it will now be 24 hours and then show the decimals
how do you do this with fuel/fluid tanks? it just goes through the bar because its not 1- 0 like a battery
I might be late, but you could use the outputs from the fluid meter by dividing the Fluid Level by the Fluid Capacity to get a number from 0 to 1, or the short answer: Fluid Level / Fluid Capacity = number from 0 to 1
How would I use this to make a fuel bar? The bar needs to be 54 pixels but the tank is 13250L. How would i go about converting the number of the tank capacity to the full bar?
Do a pie chart/radar!
You are the best
What if the input is more than the heigth? Dividing doesn't work...
360P Club... I'll be back...
Back. Brilliant! Thanks.
Early squad!
How du you all guys know all this stufs. Did you go in special schoo or what xD I am try tu understand it but it so hard
*look at this graph*
I heard that.
It is hard to see the video because of the upload quality. 360p is the highest you are allowed to view at.
TH-cam takes time to render the video
I'm Ninth