Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: 1 ... 18 19 [20] 21 22 23

Author Topic: [0.98a] AI Tweaks  (Read 148230 times)

ShadowRhino

  • Lieutenant
  • **
  • Posts: 64
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #285 on: February 20, 2025, 04:09:11 AM »

Mostly missiles, but i've seen the pirate onslaught will fire at friendly ships like they're enemies sometimes, so that's a projectile. Yes AGC is installed and i suspected that it could be screwing with it some how so some ships have it completely removed. I've finished for the day but i'll check later to see if the ships causing problems are A. using AGC and B. have custom ai enabled.

EDIT: checked today and no AGC not enabled but AI pilot is aggressive if that means anything but they still try to fire through friendly ships like it's not there.

This looks like it may be difficult to solve.

Thus far we know the issuse:
  • Causes ships to try to shoot through allies, as if the allies weren't in the line of fire.
  • Happens only for player ships, not for the enemy.
  • Affects both missile and non-missile projectile weapons.
  • AGC is not the cause.

Can you tell me if the issue happens only for ships with Custom AI hullmod, or for all ships? And does it happen when you remove AI Tweaks?

Can you post your mod list?

Quote
Quick question with the AI when giving orders does the type of AI decide how quickly it will carry it out? As i've seen some ships that are 25% life left, given the retreat order and have a way clear so don't need to move around any other ships, but will instead go all ramming speed on the enemy?

Retreat maneuver is handled by vanilla AI in all cases, even for ships with Custom AI hullmod. I'm not sure what governs how quickly vanilla AI carries out orders, but my experiance is that it considers them just a low priority suggestions.

Mod list below
Spoiler
Mods (163)
AdvancedGunneryControl  v1.18.0  [advanced_gunnery_control_dbeaa06e]
Neoteric Advent  v0.5.0  [advent_seven]
Adversary  v6.4.1  [adversary]
Indies Expansion Pack  v2.0  [aerialcombatsuit]
A Fleet Testing Mod  v0.7.1  [afleettestingmod]
All the Domain Drones+ Vanilla  v0.1b  [all_the_domain_drones+Vanilla]
Angry Periphery  v1.5.02  [Angry Periphery]
An OK Portrait Pack  v1.00  [ANOKPP]
Anubis  v1.4.0  [ANUBIS]
AoTD - Virtue Of Society  v1.3.0  [aod_vos]
AoTD - Ashes of Ohm  v0.4.1  [ShoeyAshesOfOhm]
AoTD- Vaults of Knowledge   v3.1.6  [aotd_vok]
AoTD - Question of Loyalty  v1.1.2  [aotd_qol]
Apocrita Association  v0.3.2  [apocrita_association]
Aptly Simple Hullmods  v2.1.1d  [aptlysimplehullmods]
Legacy of Arkgneisis  vv1.9.12  [ArkLeg]
Ashlib  v1.1.5  [ashlib]
ZZ Audio Plus  v1.2.1  [audio_plus]
Autosave  v1.2b  [lw_autosave]
Amazigh's Ship Foundry  v1.3.1  [A_S-F]
Bird's Collection of Trinkets and Rarities  v1.5.3  [bc]
Better Vanilla Hullmods  v0.8.0  [BVH]
Better Variants  v1.4.3  [better_variants]
BigBeans Ship Compilation  v0.1.98.6  [BSC]
Building Menu Overhaul  v1.1.4  [bmo]
Captain's Log  v0.2.0  [CaptainsLog]
Carter's Freetraders  v2.6  [CFT]
Celestial Mount Circle  v1.5.0  [Celestial Mount Circle]
Combat Chatter  v1.14.2  [chatter]
ClearCommands  v1.0.f  [clearCommands]
Combat Misc Utils  v0.4.1  [cmutils]
Combat Activators  v1.3.0  [combatactivators]
Additional Console Commands  v1.1.1a  [console_additions]
AoTD - Cryosleeper Options  v2.0.3  [Cryo_but_better]
Caymon's Ship pack  v1.2.2  [Csp]
Customizable Star Systems  v2.1.3  [customizablestarsystems]
DA Junker's Guild  v0.4.1  [da_Junkers_Guild]
Dabbled Avionics  v0.2  [Dabble]
Demand Indicators  v1.0.c  [demandIndicators]
Deweebified Portrait Pack  v1.0  [deweebedportraits]
Diable Avionics  v2.9.2  [diableavionics]
Diktat Enhancement  v1.2.2c  [Diktat Enhancement]
Domain Explorarium Expansion- Derelict Accessories  v0.0.20  [dex-ae]
Domain Explorarium Expansion  v0.0.20  [dex]
Domain Phase Lab  v1.6.8  [dpl_phase_lab]
Emergent Threats  v0.9.5  [EmergentThreats_Vice]
Emergent Threats: IX Revival  v0.9.5  [EmergentThreats_IX_Revival]
Everybody loves KoC  v1.04.45a  [Everybody loves KoC]
The Exalted  v1.4  [exalted]
Gensoukyou Manufacture  v0.8.1_rc1, in dev  [FantasyM]
The Star Federation  v0.99-RC5  [star_federation]
Fleet Action History  v1.0.11  [fleethistory]
Galactic Constellate  v1.13.0d  [GalacticConstellate]
Goathead Aviation Bureau  v1.9.10  [Goat_Aviation_Bureau]
Grand.Colonies  v2.1.a  [GrandColonies]
Guarantee Rare Items  v0.3.1  [guarantee-rare-items]
Hexagonal Shieldidgeridoos  v1.3.1  [HexShields]
Hiver Swarm  v1.1.6  [HIVER]
Hazard Mining Incorporated  v0.3.8f  [HMI]
Brighton Federation  v0.0.3d  [HMI_brighton]
HMI Supervillains  v0.0.5c  [HMI_SV]
Hillock Prototype and Station Tech  v1.3.1  [hpst]
High Tech Expansion  v2.0.4  [hte]
Illustrated.Entities  v1.2.b  [illustrated_entities]
Interstellar Imperium  v2.6.4  [Imperium]
Industrial.Evolution  v3.3.e  [IndEvo]
Interesting Portraits Pack  v1.2  [interestingportraitspack]
JaydeePiracy  v0.2.1  [jaydeepiracy]
Junk Yard Dogs  v3.4.2  [JYD]
Kazeron Navarchy  v1.6.1  [kazeron]
Keruvim Shipyards  v0.6.1  [keruvim_shipyards]
Knights of Ludd  v1.3.6  [knights_of_ludd]
Kyeltziv Technocracy  v1.10.3  [kyeltziv]
Legionarry Republic  v0.09.3  [leg]
Locked and Loaded  v0.12  [lockedAndLoaded]
LOST_SECTOR  v0.6.2d  [lost_sector]
Luddic Enhancement  v1.2.6e  [luddenhance]
LunaLib  v1.8.7  [lunalib]
Console Commands  v2024.10.04  [lw_console]
LazyLib  v2.8b  [lw_lazylib]
MagicLib  v1.4.7  [MagicLib]
Mayasuran Navy  v11.0.0 RC5  [Mayasuran Navy]
The Metelson Federation  v2.0.3  [metelson_release]
Missile Ship Overhaul  v1.2.7  [MissileShipOverhaul]
Missing Auxiliary Ships  v1.0.3  [missinghegemonyauxiliaryships]
Missing Midline Ships  v1.0.3  [missingmidlineships]
Missing Path Ships  v1.0.3  [missingpatherships]
Missing Civilian Ships  v1.0.3  [missingshipscivilian]
Missing Pirate Ships  v1.0.3  [missingshipspirate]
Missing Dreadnoughts Ships  v1.0.3  [missingsuperships]
More Character Portraits (Mods)  v1.00  [more_character_portraits_mods]
More Ship Names  v1.13.0  [more_ship_names]
More Bar Missions  v0.0.5  [MoreBarMissions]
More Military Missions  v0.4.3  [MoreMilitaryMissions]
More HullMods  v1.12.0  [more_hullmods]
NEON's ship pack  v1.7  [NSP]
Nes's SAW  v1.16.SSS  [ness_saw]
Nexerelin  v0.11.3c  [nexerelin]
More Combat Terrain Effects  v1.8.0  [niko_moreCombatTerrainEffects]
What we left behind  v4.0.0  [niko_morePlanetaryConditions]
Omega-Trauma  v0.1.1  [Omega_Psychasthenia]
Onslaught Radical Rearming  v0.1.2  [vice_orr]
Bultach Coalition  v1.1.6 release  [ORK]
Particle Engine  v0.73  [particleengine]
Pearson Exotronics  v0.8.0  [pearson_exotronics]
Project Solace  v0.4.2a  [pigeonpun_projectsolace]
Planet Search  v1.2.2  [planet_search]
prv Starworks  vv28.6  [prv]
prv Agni  vv1  [prvagni]
prv Extraworks  vv8  [prvextra]
prv Library  vv1.1  [prvlib]
prv Rust Belt  vv1.3  [prvrb]
QoL Pack  v1.2  [pt_qolpack]
Quality Captains  v1.6.1  [QualityCaptains]
Random Assortment of Things  v2.5.12  [assortment_of_things]
Random Weapon Collection  v0.0.16  [randomweapons]
Refit Filters  v2.0.0  [refitfilters]
Rigel Security  v0.2.3  [RigSec]
RotcesRats  v0.3.3  [rotcesrats]
zzz Mikohime Additionals Settings  v1.1.1  [Rouge_Redstar]
Salvage Ship Expansion  v0.4.5  [salshiexp]
ScalarTech Solutions  v0.9.2  [scalartech]
Scrapyard Armories  v0.0.18  [Scrapyard]
Scy Nation  v1.8.4  [SCY]
Seafood Shipworks  v0.0.8a  [Seafood]
Secrets of the Frontier  v0.14.2c  [secretsofthefrontier]
Epta Consortium  v2.1.2  [seven_nexus]
Shackles Garrison - XXVII BattleGroup  v0.9.7  [SGB_EN]
zz GraphicsLib  v1.9.0  [shaderLib]
Shadowyards (Wisp)  v0.9.6-rc1-Wisp-005  [shadow_ships]
Show Fleet DP  v1.0.0  [show_fleet_dp]
SpeedUp  v1.1.0  [speedUp]
Station Augments  v1.0.4  [niko_stationAugments]
Stop Gap Measures  vv 1.2.5  [StopGapMeasures3]
Support Ships Pack  v0.8.0  [supportships]
SCAV-CO Ship Works  vX-7  [sv]
Ship/Weapon Pack  v1.15.1  [swp]
Symmetricators  v1.0.0  [symmetricators]
Tahlan Shipworks  v1.3  [tahlan]
Terraforming & Station Construction  v9.0.10  [Terraforming & Station Construction]
Terraforming Made Easy  v2.6.4d  [terraformingmadeeasy]
Thog's [REDACTED]  v0.0.1  [thongredacto]
Better Colonies  v1.88  [timid_admins]
Content Unlocking Missions  v1.14  [timid_cum]
Too Much Information  v0.98a  [timid_tmi]
Iron Shell  v1.18.3aj  [timid_xiv]
Torchships And Deadly Armaments  v0.17rc2m  [TORCHSHIPS]
Volantian Reclamation Initiative  v0.6.1a  [TouchOfVanilla_vri]
Traverser Design Bureau  v1.8.3  [TraverserDesignBureau]
Tri-Tac Expansion  v0.8.1  [TTE]
Tri-Tac Special Circumstances  v1.0  [TTSC]
Truly Automated Ships  v1.2.5  [TrulyAutomatedShips]
United Aurora Federation  v0.7.5c  [uaf]
Underworld  v1.8.3  [underworld]
Unknown Skies  v2.0.2  [US]
Valkyrian  v3.3.0  [valkyrian]
Vanidad y Afliction Operation  v1.2.1  [vanidad]
Variants Lib  v0.5.4  [variants_lib]
Vayra Merged  v3.3.13  [vayramerged]
WhichMod  v1.2.0  [whichmod]
WhichTMI  v1.2.0  [whichtmi]
Planetary Shield: Access Control  v1.6  [wyv_planetaryShieldAccessControl]
Xhan Empire  v2.51 Gramada  [XhanEmpire]
[close]

Edit: Ok just started and have AI tweaks disabled and just witnessed my Legion execute another ship from behind, in a what the hell are you doing sort of fashion, and a then it tried it again with another ship. Also something to note is that it's always the same weapon if they is anything, its the Azrael reaper missile launcher that seems to be the weapon that is causing. this

EDIT Update: i think it might be AGC as the ships that had it settings reset are now not shooting at friendly ships now?
« Last Edit: February 20, 2025, 04:30:53 PM by ShadowWraith »
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #286 on: February 21, 2025, 09:30:41 AM »

Got it thanks,

Just come up with a suggestion, could staggered firing have additional options?
Say, toggle on and off for needlers.

Hmm, generally I would prefer to leave per-ship or per-weapon customisability to Advanced Gunnery Control, as that's what AGC is designed for. So, keep pressuring DesperatePeter ;D

In the mean time, I can extend the file-based config. It's not very user friendly, but will allow to configure staggered fire per weapon type.
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #287 on: February 21, 2025, 09:50:34 AM »

Edit: Ok just started and have AI tweaks disabled and just witnessed my Legion execute another ship from behind, in a what the hell are you doing sort of fashion, and a then it tried it again with another ship. Also something to note is that it's always the same weapon if they is anything, its the Azrael reaper missile launcher that seems to be the weapon that is causing. this

EDIT Update: i think it might be AGC as the ships that had it settings reset are now not shooting at friendly ships now?

I took a look the Azrael reaper definition, and there's nothing unusual about it. No scripts attached or weird collision classes.

Since AI Tweaks doesn't modifiy missile AI at all, I think you should continue the bug report on the AGC thread.
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #288 on: February 21, 2025, 10:33:14 AM »

v1.12.5 is out. Download

  • Aim Assist now correctly handles attack and movement when the player ship in fast-time advance.
  • Fixed a bug where low rate of fire weapons, like the Hellbore, had their DPS estimated incorrectly, which led to improper aiming behavior.
  • Fixed a null pointer exception caused by incorrect use of Java WeakReference. Reported by prom.
Logged

Reshy

  • Admiral
  • *****
  • Posts: 1258
  • White
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #289 on: February 21, 2025, 10:20:19 PM »

Seems like the Custom AI seems to be having trouble angling omni shields properly, either dropping them at low flux (like 20%), facing them away from the nearest/highest source of damage towards lower ones.  This was observed on 1.12.4, not sure if the recent patch fixes that specific issue.
Logged

Ioulaum

  • Ensign
  • *
  • Posts: 27
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #290 on: February 21, 2025, 11:22:48 PM »

Got it thanks,

Just come up with a suggestion, could staggered firing have additional options?
Say, toggle on and off for needlers.

Hmm, generally I would prefer to leave per-ship or per-weapon customisability to Advanced Gunnery Control, as that's what AGC is designed for. So, keep pressuring DesperatePeter ;D

In the mean time, I can extend the file-based config. It's not very user friendly, but will allow to configure staggered fire per weapon type.

Thanks! A config is good enough, for now.

Would love to see 2 mods work together though, so having AI Tweaks covers everything in general and AGC do weapon specific profiling.
« Last Edit: February 22, 2025, 01:33:34 AM by Ioulaum »
Logged

zunwar

  • Ensign
  • *
  • Posts: 28
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #291 on: February 21, 2025, 11:52:08 PM »

General Feedback!

I don't know if this is a major issue or not but sometime when in combat
my ships just ball in a cluster at the center on the map doing nothing. Doesn't happen that often but it does occur at random. Only really happens if I don't set any capture or rally orders to fleet. Also ship set to escort like for example a Heron will go to the front of the engagement and dies. Might be only me.
Logged

ShadowRhino

  • Lieutenant
  • **
  • Posts: 64
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #292 on: February 22, 2025, 03:08:42 AM »

General Feedback!

I don't know if this is a major issue or not but sometime when in combat
my ships just ball in a cluster at the center on the map doing nothing. Doesn't happen that often but it does occur at random. Only really happens if I don't set any capture or rally orders to fleet. Also ship set to escort like for example a Heron will go to the front of the engagement and dies. Might be only me.

Oh my god, i've seen that happen as well, super weird but i find it happens when almost everything is gone from the map. I find hitting full assault fixes this a little, but i haven't found a trigger for this.
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #293 on: February 22, 2025, 08:17:45 AM »

Seems like the Custom AI seems to be having trouble angling omni shields properly, either dropping them at low flux (like 20%), facing them away from the nearest/highest source of damage towards lower ones.  This was observed on 1.12.4, not sure if the recent patch fixes that specific issue.

Do you notice a difference in shield behavior between Custom AI and vanilla AI? I'm asking because shield AI is one of the few components of Custom AI that is delegated to vanilla code. There's just a single element I didn't port - angling shields to defend against ship collisions. Other than that, the shield behavior should be identical. If there are differences, do you remember in which AI tweaks version you noticed them first?

It's possible I botched the shield AI porting. If that's the case, I'll work on fixes.
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #294 on: February 22, 2025, 08:28:54 AM »

General Feedback!

I don't know if this is a major issue or not but sometime when in combat
my ships just ball in a cluster at the center on the map doing nothing. Doesn't happen that often but it does occur at random. Only really happens if I don't set any capture or rally orders to fleet. Also ship set to escort like for example a Heron will go to the front of the engagement and dies. Might be only me.

Thanks for the feedback!

What you describe looks like the vanilla AI anti-phase behavior, as Killer of Fate pointed out. If that's the case, ships with Custom AI hullmod should not behave like that.

I can't find the original reference (patch note, etc) documenting the anti-phase behavior. @Killer of Fate, perhaps you have a link?
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #295 on: March 01, 2025, 03:11:59 PM »

v1.12.6 is out. Download

Changes:
  • It is now possible to disable staggered fire mode for selected weapon types via the /data/weapons/*.ait configuration file. Suggested by Ioulaum.
  • Ships are less likely to select unusual attack angles, especially when equipped with front shields. This fixes the issue of Gryphons flying backwards. Reported on Fossic.
  • Autofire AI: Fixed an edge case where weapons would not fire on some shielded modular ships. Reported on Fossic.
Logged

Sleepy Rachel

  • Ensign
  • *
  • Posts: 11
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #296 on: March 01, 2025, 08:46:37 PM »

Hi, I just had a crash while fighting some Remnant that were guarding a facility from Ashes of Domain. It happened right as I destroyed one of their ships.

Currently running the latest patch, 1.12.6

Code
9619498 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException: null
at com.genir.aitweaks.core.shipai.ExtendedShipAI.controlFacing(ExtendedShipAI.kt:90) ~[?:?]
at com.genir.aitweaks.core.shipai.ExtendedShipAI.advance(ExtendedShipAI.kt:39) ~[?:?]
at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.combat.CombatState.traverse(Unknown Source) ~[port_obf.jar:?]
at com.fs.state.AppDriver.begin(Unknown Source) ~[port.common_obf.jar:?]
at com.fs.starfarer.combat.CombatMain.main(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.StarfarerLauncher.super(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) ~[port_obf.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]
Logged

mkire

  • Commander
  • ***
  • Posts: 115
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #297 on: March 02, 2025, 02:34:15 AM »

chiming in to say I have had the same crash

8111501 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException: null
   at com.genir.aitweaks.core.shipai.ExtendedShipAI.controlFacing(ExtendedShipAI.kt:90) ~[?:?]
   at com.genir.aitweaks.core.shipai.ExtendedShipAI.advance(ExtendedShipAI.kt:39) ~[?:?]
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source) ~[port_obf.jar:?]
   at com.fs.state.AppDriver.begin(Unknown Source) ~[port.common_obf.jar:?]
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher.super(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) [port_obf.jar:?]
   at java.base/java.lang.Thread.run(Thread.java:1447) [?:?]
Logged

LocustJester

  • Ensign
  • *
  • Posts: 39
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #298 on: March 02, 2025, 05:40:33 AM »

can confirm same error happening
4909395 [Thread-2] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException: null
   at com.genir.aitweaks.core.shipai.CustomShipAI.updateShipStats(CustomShipAI.kt:226) ~[?:?]
   at com.genir.aitweaks.core.shipai.CustomShipAI.advance(CustomShipAI.kt:77) ~[?:?]
   at com.fs.starfarer.combat.entities.Ship$ShipAIWrapper.advance(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source) ~[port_obf.jar:?]
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source) ~[port_obf.jar:?]
   at com.fs.state.AppDriver.begin(Unknown Source) ~[port.common_obf.jar:?]
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher.super(Unknown Source) [port_obf.jar:?]
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) [port_obf.jar:?]
   at java.base/java.lang.Thread.run(Thread.java:1447) [?:?]
Logged

Genir

  • Captain
  • ****
  • Posts: 346
    • View Profile
Re: [0.97a] AI Tweaks
« Reply #299 on: March 02, 2025, 10:32:16 AM »

v1.12.7 is out. Download

  • Fixed a NullPointerException related to empty weapon groups in CustomShipAI and ExtendedShipAI. Reported by multiple users.
Logged
Pages: 1 ... 18 19 [20] 21 22 23