Avorion

Avorion

Torpedo Auto-Targeting 2.2+
24 Comments
Teranoc 15 Jan @ 8:30am 
Go to "\SteamLibrary\steamapps\workshop\content\445220\2848979724"
Open "modinfo.lua" and search for dependencies and change it to:

dependencies = {
{id = "Avorion", min = "2.2", max = "2.6.*"}
Zandy man 28 Dec, 2024 @ 9:04am 
This mod is not working anymore. Needs an update.
Reuivn 5 Mar, 2024 @ 3:54am 
For anyone wanting to "fix" this mod for themselves, you need to do 2 thing. First in modinfo.lua change the Avorion Max version from whatever it is (sorry didn't look) to "2.*.*", alternatively you could delete the whole max argument which also should stop the game yelling at you.

to "fix" the reassignment of targets from self to enemies, change line 45 in torpedoautotargeter.lua from if firingEntityId == torpedoAI.target or torpedoAI.target.isNil then

to if ( firingEntityId == torpedoAI.target or torpedoAI.target.isNil ) then

That should fix the logic this script was using. However, there still seems to remain the issue of targeting yourself and rubbing one out; if there are no targets around it comes home to you.

Finally, I took inspiration from Nyrin (rather than copy) and wrote my own torpedo targeting AI. The logic is different it might be what you're looking for: SerinaAI
Kraegor 12 Jan, 2024 @ 5:23am 
The one thing that -does- need to be fixed in this mod is that if you are targetting yourself, your torpedoes come for you. Somehow that got broken between 2.2 and 2.3
Teranoc 10 Dec, 2023 @ 1:27am 
@ Tharrick LawsOn Try to change it by yourself. Go to the Installation Folder : SteamLibrary\steamapps\workshop\content\445220\2848979724 and edit the "modinfo.lua". Search for "{id = "Avorion", min = "2.2", max = "2.3.*"}" and change the 2.3.*to 2.4.*.
ripshawe 5 Dec, 2023 @ 5:36am 
This is such a good idea.
Th4rrick Laws0n 5 Dec, 2023 @ 5:27am 
Today's 2.4 update appears to have broken this sadly - I look forward to seeing an update, because this is, as you say, too good to remain broken :)
kinngrimm 26 Jul, 2023 @ 2:13pm 
Is this client side or does the server need to install this, too?
Evam 22 Nov, 2022 @ 8:34pm 
@Vokun Vulon Ah I see, well hopefully one day modders might be able to deal with that
Boiccubus☿Boba⚸ 22 Nov, 2022 @ 3:11pm 
Thank you so much
Tiberius 22 Nov, 2022 @ 3:00pm 
Mod needs to be updated to 2.3
Vokun Vulon 22 Nov, 2022 @ 2:17pm 
@Evam, I know this, what I meant was that I'd like something that fires all the torpedoes in a tube with 1 press, rather than just the 1st in the tube. Say you have Xanion torpedo tubes, they hold up to 17 per tube, so let me click one button and let all 170 torpedoes from across all 10 tubes just go ham on a sector!
RogueRaiden 22 Nov, 2022 @ 9:47am 
thanks!!
XYZ  [author] 22 Nov, 2022 @ 8:47am 
update plox
RogueRaiden 22 Nov, 2022 @ 7:02am 
needs the version updated at minimum.
Evam 9 Nov, 2022 @ 1:13am 
@Vokun Vulon You can assign torpedo types to a torpedo slot

For example, listing torpedo tube #1 as Nuclear torpedoes will automatically fill every Nuclear torpedo into that slot until it's either full or there's no more. So if you wanted you could purchase hundreds of a specific type of torpedo and set all your tubes to that type, that way they'll always automatically load themselves as long as you have enough around.
Vokun Vulon 8 Nov, 2022 @ 7:06pm 
if only there was a way to mod it to dump the whole tube, given you can reload tubes by setting the torpedo type and it will automatically reload them from your torpedo storage, why cant we just click a button and dump all, lets say 170, if you run 10 xanion tubes, heck take it further and allow the selection of how many torps fire when the button is pressed, for more controlled demolition... ahh if only ehh? heck I dont even know if its possible!
Doc. Mo 18 Sep, 2022 @ 12:02pm 
Yes... what fun.
Fire at various targets with 10 launchers.
Or all on if he's marked as a target.

simple but good. :steammocking:
StupidDupes 5 Sep, 2022 @ 9:13pm 
can you modify the AI controlled ships to launch multiple torpedoes?
Olutkoira 3 Sep, 2022 @ 2:48am 
I've been thinking of that Scanner modules should add this kind of ability, I have never used a single scanner mod in any of my ships :P
leeal 2 Sep, 2022 @ 4:24pm 
my favorite avorion mod tbh
XYZ  [author] 23 Aug, 2022 @ 5:34pm 
Not likely, rockets aren't entities (unlike torpedoes) so custom behaviour for them is probably not possible.
SixtyToZero 23 Aug, 2022 @ 2:02pm 
Can you add this function to rocket turrets i wonder?
Lightword 21 Aug, 2022 @ 3:50am 
I'll check it out, looks fun.