I fixed the problem in trunk now, and it doesn't crash anymore (well, it was actually stuck in an infinite loop, not crashing - same difference as far as the player was concerned).
The root cause of that problem was that now all items that can be launched by an NPC ship need to be defined as equipment too. In the case of NPC only equipment, missiles & mines need to end with _MISSILE" & _MINE" respectively. In addition to those, Thargoids can now equip and launch any equipment that ends with "thargon".
If running trunk, the log will now show a warning that it doesn't find an equipment.plist entry for "griff_organic_thargon" and will use the standard 'thargon' as missile_role instead.
To mark NPC equipment as NPC only, you need to set its TL to 100 (ie permanently out of reach)
The equipment.plist entry for Griff's new thargons would need to look like this
Code: Select all
( /* NPC only, because of its TL. */
100, 100000, "Organic Thargon",
"griff_organic_thargon",
"Alien drone ship, all shiny and stuff."
),
As it now says in the log, if the entry isn't there the Thargoid will load its bay with the standard 'thargon' instead. Which in this particular case was already overridden to point at the organic thargon anyway!
PS: Eric, in the case of other NPCs, most times it should load the normal spread of missiles if the missile_role is not a piece of equipment. In case there's some really weird stuff going on, it just won't load any missiles.