Advanced Ship Behavior Modules: Revisited
After troubleshooting my mod Aesthetic Terraform Stations with ubet, the original mod Advanced Ship Behaviour Modules was found to be the culprit causing mining stations to somehow use the terraform station graphics entity. After investigating the script I found that was significantly out of date (being originally for Stellaris 2.0.*) and that syntax errors in its ship_size overrides were breaking the terraform_station size added by my mod. This is related to what happens when there are significant errors in a file and how the game loads script files.
The original mod looked interesting, so I decided to revive it by fixing all of the errors. I avoided adding significant functionality but did add a couple of missing graphics and ensured that "No AI" computers still grant an increasing bonus as computer technology advances. Beginning with Stellaris version 3.4 "Cepheus" this mod supports Progenitor Hive Offspring ship classes.
The original mod "Advanced Ship Behaviour Modules" overwrites the majority of built-in ship classes by replacing the file common/ship_sizes/00_ship_sizes.txt. This overwrite is necessary to add the new "AI Behavior" component to the combat ship classes. This mod overwrites the same file in order to use the most up-to-date code from the base game for all of the affected ship classes (including titans but not juggernauts).
Overlord added new "Offspring" ships for Origin: Progenitor Hive, which are in their own file common/ship_sizes/21_overlord.txt. In order to allow the advanced AI Behaviors components for Offspring ship classes, this mod now also overwrites that file as well.
This mod also updates code from for all of the ship AI behaviors, special components, and point-defense fighters to be in line with the evolution of Stellaris since 2.0 "Cherryh" (who incidentally also happens to be my favorite science fiction author). Add graphics for basic and advanced "No AI" computers, give bonuses to the increasing levels of "No AI" computers – the bonus is roughly 1/4 the bonus of each standard role-based computer.
This mod resolves compatibility conflicts from the original mod "Advanced Ship Behaviour Modules" by overwriting its out-of-date files. The original mod replaces almost all of the standard, built-in ship classes. Therefore, both the original and this updated version will conflict with any other mods that make changes to the contents of the file common/ship_sizes/00_ship_sizes.txt (which defines the majority of player-buildable ship classes) and common/ship_sizes/21_overlord.txt (which defines Offspring ship classes). This mod is technically compatible with mods that add new ship classes, but any new ship classes added by other mods will not have the option for custom-defined AI behavior and instead will use the computers provided by that mod.
Not included in my compilation mod Subtle Polish: A Collection of Fixes and Enhancements. This mod is compatible with the compilation.
Built for Stellaris version 3.7 "Canis Minor." Not compatible with achievements.
Advanced Ship Behaviour Modules contains the original graphics and some necessary logic. There is a high chance Stellaris will crash without this dependency installed.
This mod can be safely added after the game has started, but should not be removed from a game in-progress. Losing access to the new ship components or behaviors could cause problems for the game. Always backup your savegame before attempting to remove a mod.
Overriding a ship size causes the game to log errors. Expect to see four lines in the error.log file similar to these:
See Change Notes
Hosted on GitHub[github.com]
Revisions:
Old revisions of this mod are available below. Click the link to download.
