Artificial Horizon Build Part 1 - Step by Step Lua Build - Stormworks

  Рет қаралды 17,791

MrNJersey

MrNJersey

Күн бұрын

Пікірлер: 62
@YogiTehBear
@YogiTehBear 3 жыл бұрын
OOO just in time, starting on the interior on my first plane build! Appreciate all these guides!
@nOverxD
@nOverxD 3 жыл бұрын
Same dude ! Was looking on workshop for which one was the better one, I guess we will spend some times making ours now...
@danielkieran1427
@danielkieran1427 3 жыл бұрын
I'll jump on this comment too 😂 I'm in the same situation as well. I'm starting a cockpit build soon.
@YogiTehBear
@YogiTehBear 3 жыл бұрын
Well, I can only hope your plane builds are going better than mine haha! I may have bitten off more than I can chew with this seaplane, as soon as there is a gust of wind I lose all control maybe I'm just a terrible pilot haha.
@danielkieran1427
@danielkieran1427 3 жыл бұрын
The wind can be crazy😂 its a love hate sort of thing. Sea planes are epic though. Good luck👍
@cod_cape5483
@cod_cape5483 3 жыл бұрын
Oh man! This is gonna be extremely helpful! Thanks!
@katasulu
@katasulu 3 жыл бұрын
Been waiting for something like this, thanks!
@adan7949
@adan7949 3 жыл бұрын
I didn't notice this was a new video until I saw the comments, Hello MrNjersey!
@joy_0109
@joy_0109 3 жыл бұрын
Wanted this tutorial for long, thanks for finally making it!!
@brodgers123
@brodgers123 3 жыл бұрын
Looking forward to the future episodes!
@Dextroia
@Dextroia 3 жыл бұрын
As always, awesome content!
@bacco0447
@bacco0447 3 жыл бұрын
Hi, are you gonna do an hud tutorial? (like how to make the artificial orizon on an hud or something) Great video btw :D
@mathias6369
@mathias6369 3 жыл бұрын
huds work the same as regular monitors so you can just use these tutorials
@bacco0447
@bacco0447 3 жыл бұрын
@@mathias6369 oh, didnt know that, thank you
@NVTCGames
@NVTCGames Ай бұрын
I don’t know if it has changed, but I don’t think you need a composite connection to the screen for width and height finding?? Correct me if I’m wrong but in his basic data screen he finds width and height of screen without a composite connected
@listopad09
@listopad09 2 жыл бұрын
i have did Check For Errors, it said no errors I've got a bluescreen it says "tick error 3: attempt to call a nil value (field 'getnumber')"
@Bendigo1
@Bendigo1 2 жыл бұрын
That usually means a typo, nothing matches the parameters you put in.
@theofficiaIsteve
@theofficiaIsteve 3 ай бұрын
make sure its "getNumber" not "getnumber" you likely might have not put the parentheses on properly
@norgeek
@norgeek 3 жыл бұрын
You don't need the Composite connection to get the Screen Size, the Video connection is enough!
@oprain
@oprain 3 жыл бұрын
항상 감사합니다.
@gargamel7127
@gargamel7127 3 жыл бұрын
function onTick() f_tilt = (input.getNumber(1)*4)*90 s_tilt = (input.getNumber(2)*4)*90 end function onDraw() w = screen.getWidth() h = screen.getHeight() rad = w+h/4 cx = w/2 cy = h/2 pitch = math.acos(f_tilt / 90) roll = math.rad(90 - s_tilt) x1 = cx + rad * math.cos(roll + pitch) y1 = cy + rad * math.sin(roll + pitch) x2 = cx + rad * math.cos(roll - pitch) y2 = cy + rad * math.sin(roll - pitch) screen.drawLine(x1, y1, x2, y2) end
@olssong7941
@olssong7941 3 жыл бұрын
How do i make a circle instead? I'm trying to do a gunsight from the vietnam war era where there are 2 dots that represent roll, so no pitch
@larrysal8866
@larrysal8866 3 жыл бұрын
Try doing a full roll rotation and show how it looks, i believe it's a bit harder than this to correct that issue
@tymoteuszkazubski2755
@tymoteuszkazubski2755 3 жыл бұрын
Look up trigonometry on a sphere.
@mnpst5
@mnpst5 3 жыл бұрын
Hi, first of all thank you for explaining this now, that's really nice. And secondly, will there be real pyhsics at some point, so that a plane can glide in the sky without falling directly out of the sky? Because that would be really nice, every time I land I slow down and all of a sudden I fall out of the sky. Rip
@MrNJersey
@MrNJersey 3 жыл бұрын
Was discussed in the last Q&A :)
@CuriousMochii
@CuriousMochii Жыл бұрын
This video is easy to follow but I would like to know where I can learn more about it -like in the first part of the video where we multiplied the tilt values by 4. TIA!
@profitgaming6312
@profitgaming6312 5 ай бұрын
You mutiplied by 4 because the tilt sensor only reads from -0.25 to +0.25. So to get a value of -1 to +1 it was multiplied by 4.
@dannylopez1875
@dannylopez1875 3 жыл бұрын
friend I need help with my helicopter I connect everything as it should but I do not understand why when I start it the rotations do not exceed 4.93 I don't know if the motor that I put in it has to do with it is a small motor or is it another factor.
@jamesjordan3042
@jamesjordan3042 3 жыл бұрын
hi sorry but i watched this and it made my line be on a angle. the line moved correctly but it was on a angle could anyone help as i have gone over this numerous times and compared it to mrnjerseys but cant seem to find the problem
@jakobusjohannes2195
@jakobusjohannes2195 3 жыл бұрын
uh, i did it i have basic programming knowledge but clueless on lua script. an error occurs (not detected by the checker but the screen displays an error msg when turning it on, it says that i was attempting to call the "screen.setcolor(100, 100, 100) on a nill value" Anyone have a clue what ive stacked up?
@jakobusjohannes2195
@jakobusjohannes2195 3 жыл бұрын
I FOUND IT!, make sure when doing the screen.setcolor MAKE SURE ITS A CAPITAL C for Color so > screen.setColor(100, 100, 100)
@MrNJersey
@MrNJersey 3 жыл бұрын
Yes
@Tomartyr
@Tomartyr 3 жыл бұрын
11:42 "Y2..K" The end is nigh.
@iantolambert5630
@iantolambert5630 3 жыл бұрын
And also thanks for uploading.
@SweHam
@SweHam 3 жыл бұрын
So, why is it that you have written "rad = w+h/4" did you mean to write "rad = (w+h)/4"? Cause what you wrote doesn't actually divide your number by 4. How it's written now you divide the hight by 4 and the width remains the same, is that correct or a mistake?
@MrNJersey
@MrNJersey 3 жыл бұрын
Yah you should add the (), I will address this in the next part.
@SweHam
@SweHam 3 жыл бұрын
@@MrNJersey Ok, figured that. A definite easy mistake to do while recording something as complex as code live. It's a really helpful tutorial either way. Glad to see that you're helping people get a first look into Lua 😊
@gargamel7127
@gargamel7127 3 жыл бұрын
It says on the screen that: 2: attempt to call a nil value (field `getnumber`
@MrNJersey
@MrNJersey 3 жыл бұрын
getNumber
@gargamel7127
@gargamel7127 3 жыл бұрын
Thx
@Izz4cc
@Izz4cc 2 жыл бұрын
@@gargamel7127 getLife would be a great function for my dear genshin impact players
@mathijssy5097
@mathijssy5097 Жыл бұрын
Its not "Times by" but multiplied by
@sanane9790
@sanane9790 3 жыл бұрын
Может быть настраиваемый авиагоризонт
@pepperoni4307
@pepperoni4307 3 жыл бұрын
Will you be showing how we can add two seperate lines instead of a singular line?
@MrNJersey
@MrNJersey 3 жыл бұрын
Eventually Yes, I guess you are refering to the pitch angle ladder?
@kasenibaraki3770
@kasenibaraki3770 3 жыл бұрын
Thanks Jesus.
@krolon9786
@krolon9786 3 жыл бұрын
naw, got asked for help by a new lua person doing a hud ladder for pitch, and I'm just angry when watching this after he told me he followed this tutorial, it's just mistakes tailored to work in your situation, there are way more reliable and robust ways of doing this stuff, especially on the trigonometry side like aight, you said you're not a pro at this but keep in mind that what you say literally influences hundreds of players that don't know lua and trigonometry and will take what they see in here as granted
@Bendigo1
@Bendigo1 2 жыл бұрын
The thing is, he makes a lot of videos about the game, if you search for videos about something in the game he is usually the only one who has made a video on the subject. Most people do not look up other methods like using discussions or googling it to find another way. It would be great if others made more videos about it with better ways of doing it to help others out. This is his way of doing it, it is not the only way and not always the best way to do it. I often watch his videos just to get an idea of what to do then use other sources to figure out how to improve it or find a better way to do it. I have started learning Lua and trig just because of this game... I am definitely not an expert on either but know how to learn how to figure out how to make something work.
@Tailfish
@Tailfish 2 жыл бұрын
This tutorial does not work. At least from when I exactly copied you, this does not work. When I turn the screen on, nothing comes up. I've spent an hour trying to find the problem but cant. I'm wondering if the devs have changed something. But, thank you for teaching me how to LUA anyway.
@Tailfish
@Tailfish 2 жыл бұрын
I have no errors detected in case you were wondering
@Bendigo1
@Bendigo1 2 жыл бұрын
@@Tailfish did you connect everything correctly and turn on and power the monitor?
@Tailfish
@Tailfish 2 жыл бұрын
@@Bendigo1 yes
@Bendigo1
@Bendigo1 2 жыл бұрын
@@Tailfish did you ever get it to work or give up on it?
@2ND-ID-REENACTOR1944
@2ND-ID-REENACTOR1944 3 жыл бұрын
2nd
@iantolambert5630
@iantolambert5630 3 жыл бұрын
Please can you try my stormworks creation: the Guardian X i sended this message last video too.
@Quantum-Bullet
@Quantum-Bullet 3 жыл бұрын
a red and blue super basic looking boats? lol no, only if it lands in the top 5 of the week..
@iantolambert5630
@iantolambert5630 3 жыл бұрын
@@Quantum-Bullet Hey its my first workshop creation and It uses modular engines
@iantolambert5630
@iantolambert5630 3 жыл бұрын
Also try my other creations my steam name is: Esperpritzie
@jimmyxrist2857
@jimmyxrist2857 3 жыл бұрын
3nd
@coronapack
@coronapack 3 жыл бұрын
been spending days watching your videos. these micro controllers and such are blowing my mind. now you doing scripting and i feel my brain matter oozing out my ears.... getting more doubtful about downloading and playing this game. looks sooooo complicated. like worse than EVE.
@sirjeffels4020
@sirjeffels4020 3 жыл бұрын
Bruh. Say sine (sin.) and cosine (cos.) correctly.
Mountain Helicopter Rescue - Stormworks
20:31
MrNJersey
Рет қаралды 35 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
RADAR TRACKED GUN!! - Search & Destroy Weapons DLC - Stormworks
19:05
How I Built a Working Hypertube in Minecraft Hardcore
21:07
TheBestCubeHD
Рет қаралды 1,5 МЛН
Stormworks - Modular Engine Tutorial
8:44
TerrRawrSaur
Рет қаралды 41 М.
Earth but I double the pollution every minute
17:25
GrayStillPlays
Рет қаралды 1,2 МЛН
CUSTOM SHIP SCREENS!!! - Stormworks
11:58
MrNJersey
Рет қаралды 27 М.
Beginners Coaxial Helicotper! Stormworks Tutorial - How To
14:37
ProfNCognito📺
Рет қаралды 22 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1 МЛН
How to build an Autonomous UAV for Long Range FPV & Autonomous Missions
13:34
What is Synthetic Selection? Game Dev Log 0
6:29
Makan Gilani
Рет қаралды 1,4 МЛН
Stormworks-Interactive-Lua-Map
21:03
Markers622
Рет қаралды 12 М.