Advanced Lua Radar Tutorial - Step by Step Guide - Part 2 - Stormworks

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

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

  • @pepperidgefarmremembers6350
    @pepperidgefarmremembers6350 3 ปีที่แล้ว +17

    I know people probably don’t care, but after a LONG time I’m finally getting a new computer charger after my dog chewed mine, which means I can FINALLY get stormworks!!

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

      how the hell did your dog chewed your computer??

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

      @@NyaNyon it was the charger, and I had accidentally left it out on my floor

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

      I do not wanna meet your dog xD
      Enjoy the game man

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

      @@sawer thanks!

  • @JodianGaming
    @JodianGaming 3 ปีที่แล้ว +11

    Ironically, very shortly after you made this completely awesome tutorial they went and rebuilt radars so everything goes through Composite now... Can't set the YAW, have to read it from the radar now and reverse the calculation back into the LUA code. What a pain...

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

      Yes, after spending a couple hours on his part one, this its basically a waste of time, since I can't connect anything from the tutorial except video :(

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

    Nice! This will go well with the Submarine I am working on :)

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

    Easy to follow and get working. Thanks! However, something feels very off in regards to the visual presentation: the contacts need to fade and be removed in time with the sweep, rather than resetting all at once. Any one know a simple way to achieve that?

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

      For targets, use a table of tables. This has the effect of creating kind of like a spreadsheet. You can store a key value (target ID), target x, target y, target distance, and more. I like to add a value called TTL (time to live) and when the radar sweeps over and the target is detected, set the TTL to 1. Every tick, go through the main table and subtract some number from TTL. 1/600 for example goes from 1 to 0 in 10 seconds. When you draw the target on the screen, multiply it's color by it's TTL value, and it will fade to black over ten seconds. When you're going through the table and subtracting from the TTL values, if a given TTL is less than or equal to 0, simply remove that entry.

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

      Yes there is, I wanted to keep the features to a bare minimum for this video, If you guys want more advanced tutorials I can do them like what we did with the artificial horizon lua build series :)

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

      @@MrNJersey I think that would be great! For example, I understand the concept outlined above by Impyre, but I haven't the slightest idea how to translate that into LUA script for the game.

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

      @@MrNJersey please do advanced tutorials or even a tutorial for the updated radars and display. I am struggling to make a radar system. I am trying to create table with contact & distance and azimuth and I am struggling to figure out how to get the info out of the radar and onto the screen

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

    so last time i was following step by step, and it already didnt work so at this point im just waiting for you to upload it to the workshop, and yes i know you usually do that only after its done

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

      It’s on the workshop already

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

    Can you please to a tutorial on radar guided missiles and or heat seeking missiles

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

    Hey, If I understood correctly, I can simply place a map under the radar, on which I will issue a scale corresponding to the radar. If this works, then I will be able to understand where the targets found by the radar are located more specifically

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

      yes

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

      I tried to do that and found the scaling is odd. From what i could tell, 10x zoom of the map is about 20km it made it frustrating to figure out the math so i gave up. I have not had time to retry it but have an idea as to how to make it work.
      Another issue i had was the position on the map as the radar reads angle relative the forward position of the radar but the map always is north up orientation. So you have to compensate for zoom AND angle relative to north using a compas sensor.

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

    I'm 100%going to do this! But i need to bring all my creations over to my new laptop and i dont know how. :/

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

      All of the creations, microcontrollers and saves are in %appdata%\Stormworks so you should just be able to copy that folder to your new laptop.
      You can open it with windows + r and paste in "%appdata%\Stormworks" and copy that somewhere so that you can copy that folder to the new laptop in the same folder. (also on the new laptop you might need to do %appdata% only if you havent ran stormworks yet and then copy that Stormworks folder in the new laptops %appdata% folder)

    • @ЕгорГарбуз-б9г
      @ЕгорГарбуз-б9г 3 ปีที่แล้ว

      @@_patriik you can just upload them on workshop and then subscribe to them on another laptop

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

      Private publish too workshop?

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

    can someone please link an updated tutorial

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

    Cool video

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

    You are the best

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

    Can you update the tutorial please

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

    wow im the 9th view also love your content

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

    Need a new LUA guide for a new radar

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

    Add distance to every red dot on radar please

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

      You simply write text a couple pixels next to the red dot.

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

    Aye the radar doesn't work anymore

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

    NJ Your V5 Modular Engine ECU has some trouble with my double V20 Engines 🤣

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

    Or at least a link to the model of the finished radar, so that you can insert it into the craft. Thank you in advance.

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

    super early gang