"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
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 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
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.
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.
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.
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.
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?
@@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)
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
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
@@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
@@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
@@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.
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.
@@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.
@@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 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
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
@@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
"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
That option is definitely usable on lancers
i feel like that is intended for the game to nerf lancers a bit
I felt my brain grew an inch by watching this
*that doesn't sound healthy 😳*
@@ElectricGun100 это звучит круто
Sorry to say this but you might have a brain tumor
Feels like my head got something very big tho.
Thats called a tumor
Cannot help but think that with enough logic, it can be made beter that shootp
The speed calculation is the problem, but in theory, yes
@@ElectricGun100 hmm are there any mods that add more logic functions
@@thegamehouse4245 yeah, I don't use them tho. I prefer vanilla
@@ElectricGun100 I use too many mods :P
If you use mods you can’t really share your work
0:02 ability to "lead" their shot. Missed opportunity to use "lead" as ammo
So true
So true
Silicone auto homing ammo: I will do it by myself
Not really useful against player controlled flare
it can be better if used in pvp to prevent controlled flares from going kamikaze
That's a very good idea. I think turrets without logic never target dead units, but I might be wrong.
@@ElectricGun100 Schematics??
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
Don't Mindustry bullets travel at a constant speed?
@@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
@@jumpsareop6545 I see
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.
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.
THIS GUY IS A GENIUS!!! he is only mobile user and he is so smart at this
Nice animation!
0:56 huh "do not click" at top right?
Yo these are some good high quality edits
Can't wait for you to make mindustry in mindustry.
I am gonna make my own version of this, it seems very simple and looks like some easy research.
Indeed
@@ElectricGun100 still working on it 😭
Foreshadow, Meltdown, and Lancer is easy to shoot without ShootP.
Can i just use silicon?
Wait thats smart actualy
That's very impressive
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.
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.
Oof, ai got buffed
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?
@@PhaseArray scatter
dude you make pvp more insane lol
Nice vid outro is good animation is almost good but only because of the background texture and mabie enemies one. Good vid over all.
4:20 fernanfloo 😎
1% of my peanut brain: Can totally understand this
99%: WHAT THE FU-
now make a unkillable flare by dodging bullets
Can't detect bullets
@@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)
@@marmoran9493 yeah you can detect if a turret is firing but bullets are invisible
So cool bro! 👍
Bruh this is not enough logic i need MORE
how are you so good at math? You need to teach me stuff.
finally lancer can be fixed
Epic
You made a rangefinder
That's very easy to accomplish using pythagoras
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.
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
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
Alot more complicated alot harder to program, but I believe a better targeting systems possible
Really useful against enemy Horizons
Seems useful for campaign. Can I have schem? I am dumb with logik
The shootp one how to make it on logik (not custom)
can you make a template of that turret
Можно схему?
can the @speed and @killed sensor logic thing exist
@dead exists
How to make the screen for it tho
Its pretty easy, just add a line "if/then"
Oh wait
How to recreate it?
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
scatters? nah, al pedo, yo cuando necesitaba algun aa le mandaba con meltdowns
Mais comment tu fais sa j'ai rien compris
how do i use the shootp?
Foreshadow be like 🗿
Foreshadows can miss, but it's almost impossible without hax
link?
How did you calculate current speed of unit
Δs/Δt
distance over time
@@ElectricGun100 how did you find distance
i need the download :)
I still don't get it about logic work
Me neither. Magic probably
What is the logic for the shootp
control shootp salvo1 unit unit
Can u make a video on u radar
PLAYER has already done that, but I could if you wanna. I need to cover more basic logic fields
@@ElectricGun100 So u want your subscriber to watch another youtuber video sad 😳
@@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
@@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
@@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.
Can we get the code for this?
I'll see if I can find it
@@ElectricGun100:/
Bro how you calculate the speed?
You can't, that's the point
what is len? in len x y
en.m.wikipedia.org/wiki/Pythagorean_theorem
@@ElectricGun100 is it short for length?
yes
len is anuken
just use silicon
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.
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.
@@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.
@@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.
@@ElectricGun100 I already know mlog, all I need is a schematic of this and I'll be able to learn how you did it.
@@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
Where are Schematics???????
I ate it
There is literally 3 block on the entire schematic, if you cant figure it out then give up the game.
go and code it yourself
people will not give you their work for free
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
@@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
first?
Yes you are
pog