I Remade Shoot Prediction from Scratch - Mindustry V7 Logic

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 138

  • @digitalizedmind1216
    @digitalizedmind1216 3 роки тому +199

    "it always assumes the bullets will take 1.5 seconds to reach its target"
    Might be helpful on a lancer. Without logic, lancers often miss because they don't compensate for their shot's charge time at all

    • @ElectricGun100
      @ElectricGun100  3 роки тому +51

      That option is definitely usable on lancers

    • @roceythecatbg2846
      @roceythecatbg2846 2 роки тому +8

      i feel like that is intended for the game to nerf lancers a bit

  • @jollihotdog5196
    @jollihotdog5196 3 роки тому +155

    I felt my brain grew an inch by watching this

    • @ElectricGun100
      @ElectricGun100  3 роки тому +44

      *that doesn't sound healthy 😳*

    • @TheLavrProfessional2005
      @TheLavrProfessional2005 2 роки тому

      @@ElectricGun100 это звучит круто

    • @herbieowen3348
      @herbieowen3348 2 роки тому

      Sorry to say this but you might have a brain tumor

    • @Raiden0944
      @Raiden0944 2 роки тому

      Feels like my head got something very big tho.

    • @SydeathFx
      @SydeathFx 2 роки тому +3

      Thats called a tumor

  • @thegamehouse4245
    @thegamehouse4245 3 роки тому +93

    Cannot help but think that with enough logic, it can be made beter that shootp

    • @ElectricGun100
      @ElectricGun100  3 роки тому +31

      The speed calculation is the problem, but in theory, yes

    • @thegamehouse4245
      @thegamehouse4245 3 роки тому +5

      @@ElectricGun100 hmm are there any mods that add more logic functions

    • @ElectricGun100
      @ElectricGun100  3 роки тому +15

      @@thegamehouse4245 yeah, I don't use them tho. I prefer vanilla

    • @PrivateMcPrivate
      @PrivateMcPrivate 3 роки тому +1

      @@ElectricGun100 I use too many mods :P

    • @among-us-99999
      @among-us-99999 3 роки тому

      If you use mods you can’t really share your work

  • @kubek3345
    @kubek3345 3 роки тому +80

    0:02 ability to "lead" their shot. Missed opportunity to use "lead" as ammo

  • @Рандом-б1е
    @Рандом-б1е Рік тому +11

    Silicone auto homing ammo: I will do it by myself

    • @im_Snas
      @im_Snas 10 днів тому

      Not really useful against player controlled flare

  • @sama4482
    @sama4482 3 роки тому +32

    it can be better if used in pvp to prevent controlled flares from going kamikaze

    • @ElectricGun100
      @ElectricGun100  3 роки тому +7

      That's a very good idea. I think turrets without logic never target dead units, but I might be wrong.

    • @endlessvd
      @endlessvd 3 роки тому +2

      @@ElectricGun100 Schematics??

  • @artygator8167
    @artygator8167 3 роки тому +29

    To know the exact travel time of the shot you need to solve a differential equation (advanced math shit) because the travel time will vary depending of the distance and shot adjustments will increase travel time

    • @ElectricGun100
      @ElectricGun100  3 роки тому +12

      Don't Mindustry bullets travel at a constant speed?

    • @jumpsareop6545
      @jumpsareop6545 3 роки тому +13

      @@ElectricGun100 no
      it slow down every Tick
      and the Val that slow it called "drag"
      if you open the game code you can see it
      and there is no way in logic to calculate it

    • @ElectricGun100
      @ElectricGun100  3 роки тому +9

      @@jumpsareop6545 I see

    • @akasakakawasaki7317
      @akasakakawasaki7317 2 роки тому +4

      I think all that's necessary is an integral and an approximation function for the velocity like maybe sqrt(range - 0.1d). not this exact equation but I think taking an integral of a simple approximation will be good enough.

  • @Urkikk
    @Urkikk 2 роки тому +12

    I think it's also due to Turret's turning speed since they cannot turn and shoot at the same time, this cause custom Shootp to fire slower if that turret can't turn fast enough.

  • @Maple_Tactics
    @Maple_Tactics 2 роки тому +2

    THIS GUY IS A GENIUS!!! he is only mobile user and he is so smart at this

  • @thegamehouse4245
    @thegamehouse4245 3 роки тому +8

    Nice animation!

  • @GGEZ_250
    @GGEZ_250 24 дні тому +1

    0:56 huh "do not click" at top right?

  • @AirNeat
    @AirNeat 3 роки тому +3

    Yo these are some good high quality edits

  • @hamzamotara4304
    @hamzamotara4304 3 місяці тому

    Can't wait for you to make mindustry in mindustry.

  • @bndlett8752
    @bndlett8752 3 роки тому +6

    I am gonna make my own version of this, it seems very simple and looks like some easy research.

  • @GSFigure
    @GSFigure 3 роки тому +2

    Foreshadow, Meltdown, and Lancer is easy to shoot without ShootP.

  • @giganiga196
    @giganiga196 Рік тому +8

    Can i just use silicon?

  • @PhaseArray
    @PhaseArray 3 роки тому +5

    That's very impressive

    • @PhaseArray
      @PhaseArray 3 роки тому +1

      Hmmm. So how do we recreate lich ai? I have some ideas. One is float distance. One is destination. The float makes the unit in range of whatever it's targeting so its in the targets general area. Then destination is the one where the unit will go towards its destination (like core or generators) while staying within floating range(target range). I this is my idea atm.

    • @PhaseArray
      @PhaseArray 3 роки тому +1

      Forgot to mention. In the latest be version. The air ai has been changed in survival (enemy units only ai). Basically they will ignore everything in their path and go straight to: core, and generator/reactors. You can easily replicate this ai with logic.

    • @ElectricGun100
      @ElectricGun100  3 роки тому +2

      Oof, ai got buffed

    • @PhaseArray
      @PhaseArray 3 роки тому +1

      The way you can hinder them is by using tsunamis. So what is the best air def now?
      Forshy(Foreshadow) Spam?
      Water tsunami+surge cyclone?
      Cryo tsunami+blast swarmer or water tsunami+surge swarmer?

    • @jumpsareop6545
      @jumpsareop6545 3 роки тому

      @@PhaseArray scatter

  • @unfurroowouwu_yt3022
    @unfurroowouwu_yt3022 2 роки тому +1

    dude you make pvp more insane lol

  • @mopsbackupaccount5128
    @mopsbackupaccount5128 3 роки тому +3

    Nice vid outro is good animation is almost good but only because of the background texture and mabie enemies one. Good vid over all.

  • @siulmek5828
    @siulmek5828 2 роки тому +1

    4:20 fernanfloo 😎

  • @Dreblominations
    @Dreblominations Рік тому +1

    1% of my peanut brain: Can totally understand this
    99%: WHAT THE FU-

  • @marmoran9493
    @marmoran9493 3 роки тому +5

    now make a unkillable flare by dodging bullets

    • @ElectricGun100
      @ElectricGun100  3 роки тому

      Can't detect bullets

    • @marmoran9493
      @marmoran9493 3 роки тому

      @@ElectricGun100 its possible without detecting bullets because their trajectory is dependent on the flight path of the flare, therefore by changing the path after every shot is fired you can dodge most turrets
      (though due to scatter's low accuracy its still possible to get hit)

    • @ElectricGun100
      @ElectricGun100  3 роки тому +2

      @@marmoran9493 yeah you can detect if a turret is firing but bullets are invisible

  • @WebPunkkk
    @WebPunkkk 3 роки тому +1

    So cool bro! 👍

  • @UnknownZYX_4085
    @UnknownZYX_4085 2 роки тому

    Bruh this is not enough logic i need MORE

  • @r50142
    @r50142 3 роки тому +2

    how are you so good at math? You need to teach me stuff.

  • @Eric-se7ro
    @Eric-se7ro 2 роки тому

    finally lancer can be fixed

  • @albertosalvo782
    @albertosalvo782 3 роки тому +2

    Epic

  • @Omba820
    @Omba820 2 роки тому

    You made a rangefinder

    • @ElectricGun100
      @ElectricGun100  2 роки тому

      That's very easy to accomplish using pythagoras

  • @shinita-xj3sr
    @shinita-xj3sr 2 роки тому

    I was making a custom shootp myself I have no probelm with foreshadow, but for turrets like duo and salvo it was quite a headache.

    • @shinita-xj3sr
      @shinita-xj3sr 2 роки тому

      if anyone wants to see my script then here it is:
      radar player any any distance foreshadow1 1 result
      sensor Xnow result @x
      sensor Ynow result @y
      op sub Ydistance Ynow Yturret
      op sub Xdistance Xnow Xturret
      op sub Yvel Ynow Ythen
      op sub Xvel Xnow Xthen
      op add Xshoot Xvel Xnow
      op add Yshoot Yvel Ynow
      control shoot foreshadow1 Xshoot Yshoot result 0
      set Xthen Xnow
      set Ythen Ynow

  • @leoritchie9635
    @leoritchie9635 Рік тому

    The useful this about this would be trying to improve on the in-game design, not just replicate it. Different firing patterns possibly to counter the donut doing player ship

    • @leoritchie9635
      @leoritchie9635 Рік тому

      Alot more complicated alot harder to program, but I believe a better targeting systems possible

    • @MarxGen2408
      @MarxGen2408 Рік тому

      Really useful against enemy Horizons

  • @Oof_18
    @Oof_18 Рік тому

    Seems useful for campaign. Can I have schem? I am dumb with logik
    The shootp one how to make it on logik (not custom)

  • @yoshua6502
    @yoshua6502 2 роки тому

    can you make a template of that turret

  • @sev4ik959
    @sev4ik959 Рік тому +1

    Можно схему?

  • @lokyinng5155
    @lokyinng5155 3 роки тому +1

    can the @speed and @killed sensor logic thing exist

  • @TotallyNotTun
    @TotallyNotTun 2 роки тому

    How to make the screen for it tho

  • @zironcat5265
    @zironcat5265 Рік тому

    Its pretty easy, just add a line "if/then"
    Oh wait

  • @noobbro3469
    @noobbro3469 2 роки тому

    How to recreate it?

  • @PixelGamingMasters
    @PixelGamingMasters 11 місяців тому

    me pasas un modelo para un Scatter? es que tengo muchos problemas al usar el Scatter y debo poner como 1000 pa que no me destruyan todo los enemigos

    • @alanjaime6014
      @alanjaime6014 8 місяців тому

      scatters? nah, al pedo, yo cuando necesitaba algun aa le mandaba con meltdowns

  • @sucaL_le_pros
    @sucaL_le_pros 3 місяці тому

    Mais comment tu fais sa j'ai rien compris

  • @xuoario
    @xuoario 7 місяців тому

    how do i use the shootp?

  • @johantobing7958
    @johantobing7958 3 роки тому

    Foreshadow be like 🗿

    • @ElectricGun100
      @ElectricGun100  3 роки тому

      Foreshadows can miss, but it's almost impossible without hax

  • @yoshua6502
    @yoshua6502 2 роки тому

    link?

  • @kaganaydn9138
    @kaganaydn9138 2 роки тому

    How did you calculate current speed of unit

  • @danieleduardo9656
    @danieleduardo9656 3 роки тому

    i need the download :)

  • @fayzmoon6755
    @fayzmoon6755 2 роки тому

    I still don't get it about logic work

  • @TlBubba
    @TlBubba 3 роки тому

    What is the logic for the shootp

  • @samyaksingh7577
    @samyaksingh7577 3 роки тому

    Can u make a video on u radar

    • @ElectricGun100
      @ElectricGun100  3 роки тому +1

      PLAYER has already done that, but I could if you wanna. I need to cover more basic logic fields

    • @samyaksingh7577
      @samyaksingh7577 3 роки тому

      @@ElectricGun100 So u want your subscriber to watch another youtuber video sad 😳

    • @ElectricGun100
      @ElectricGun100  3 роки тому +2

      @@samyaksingh7577 I simply stated that said youtuber has already covered the specific topic, not "sad" at all.
      Here's the vid if you still need it ua-cam.com/video/-8bQmDiPgzg/v-deo.html

    • @samyaksingh7577
      @samyaksingh7577 3 роки тому

      @@ElectricGun100 not this radar i want unit radar which no one has made u can do it i am waiting for a very long time which uses a unit for a radar i think

    • @ElectricGun100
      @ElectricGun100  3 роки тому +2

      @@samyaksingh7577 You can literally use the exact same technique shown on the video, but using a bound unit to radar from instead of a stationary turret.
      Be resourceful, experiment and ask questions instead of waiting for me to do something specifically for you.

  • @someone4229
    @someone4229 5 місяців тому

    Can we get the code for this?

  • @riccardomonetti7176
    @riccardomonetti7176 3 роки тому

    Bro how you calculate the speed?

  • @blumonke9079
    @blumonke9079 3 роки тому

    what is len? in len x y

  • @adameq7303
    @adameq7303 9 місяців тому

    just use silicon

  • @r50142
    @r50142 3 роки тому

    I hate the fact that you don't show any code or schematics which make me confused on how do you calculate speed and stuff.

    • @ElectricGun100
      @ElectricGun100  3 роки тому +1

      I get that complaint a LOT. I don't show schematics for certain builds because you won't learn by simply copying schematics, using them once, then leaving them in the back of the schematics folder to be forgotten. These are merely showcases to inspire and promote the use of logic.
      If you want to learn logic stuff, check out my old Advanced Logic series, though some of them don't offer a step by step schematic tutorial, just maths.
      I have yet to make an in-depth guide on the entire language, but its in progress.
      So please, never ask for schematics. The more you ask, the less likely I will actually post them. Ask for help instead.

    • @r50142
      @r50142 3 роки тому

      @@ElectricGun100 I do learn from schematics, most of the time I just copy the code and start to understand and later use them for important things or just for fun, like one of my cool item producers that was inspired by Blerp23's Item fabricator and the factory blocks from the units tab.

    • @ElectricGun100
      @ElectricGun100  3 роки тому

      @@r50142 It's efficient to learn the language first. Everyone has their own coding style and reverse engineering others' work requires more time and effort. Don't worry, learning mlog is the easiest step, after that, maths.

    • @r50142
      @r50142 3 роки тому

      @@ElectricGun100 I already know mlog, all I need is a schematic of this and I'll be able to learn how you did it.

    • @ElectricGun100
      @ElectricGun100  3 роки тому

      @@r50142 Then you're ready, it's just simple leading. It's nothing too complex to reverse engineer for. Take this as a challenge, having my schematic would be too easy :) If you're struggling with anything, I'll help, and good luck

  • @endlessvd
    @endlessvd 3 роки тому +1

    Where are Schematics???????

    • @ElectricGun100
      @ElectricGun100  3 роки тому +6

      I ate it

    • @tungleson7066
      @tungleson7066 3 роки тому +2

      There is literally 3 block on the entire schematic, if you cant figure it out then give up the game.

    • @jumpsareop6545
      @jumpsareop6545 3 роки тому +2

      go and code it yourself
      people will not give you their work for free

    • @endlessvd
      @endlessvd 3 роки тому

      are you serious? sooner or later other people will make this code and share it. And the fact that you are trying to justify nothing more than selfishness, you need to put dislikes on all videos where the author insolently does not allow his schemes to be tested, this is my personal opinion. Why, then, other youtubers, even logically in the Mindustry, give schemes for the processors, is one author of this channel so special? Nothing of the kind, dislik

    • @jumpsareop6545
      @jumpsareop6545 3 роки тому +2

      @@endlessvd dude all the code is showen in the video just copy it
      and people give there code to people is to test it or use and its not to
      some random comment on youtube
      and about the people will make the code and share it
      these people are learning from the code and share it to ask people what they can do to make it better and maybe make there own versoin of it, and no its not selfishness its just to stop people to asking about a simple code they can just make
      and if you don't know how to make that simple code then why you want a code that even don't work

  • @amongusninja7055
    @amongusninja7055 3 роки тому +2

    first?