Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009417Dwarf FortressAdventure Mode -- AIpublic2015-12-23 06:592018-01-27 12:20
Tiler 
 
normalminoralways
newopen 
0.42.03 
 
0009417: Squids will never use "Squirt Ink" interaction, due to USAGE_HINT:FLEEING token not working.
Squids have an interaction, called Squirt Ink or [INTERACTION:MATERIAL_EMISSION_WITH_HIDE_EFFECT], and it allows a squid to emit an ink material and use a HIDE effect on themselves.

The problem is, they will never use this interaction, or at least, never use it in the testing arena.

This appears caused by the USAGE_HINT:FLEEING token. removing it will allow them to use the interaction in any combat situation. Even when morale is turned on and the creature is running away or yielding, a USAGE_HINT:FLEEING interaction will never, ever be used by the AI, or at least, requires some manner of circumstance that never appears to appear in any gameplay situation I have encountered.

I changed the HIDE effect of the [INTERACTION:MATERIAL_EMISSION_WITH_HIDE_EFFECT] effect to CE_BODY_TRANSFORM in the interaction_standard file as well, just to be extra certain when the interaction is used by the creature. You can use the interaction just fine when you are a squid yourself, of course.
1. Create a bunch of squid based creatures in the arena, making sure they are in water, and that morale is active, and there is a conflict level that will cause them to want to flee from a fight.

2. Watch as squids will run, but never use the USAGE_HINT:FLEEING interaction.
plans for splatoon fortress quickly becoming infeasible
No tags attached.
Issue History
2015-12-23 06:59TilerNew Issue
2015-12-23 07:00TilerTag Attached: AI
2015-12-23 07:00TilerTag Attached: interaction
2015-12-23 07:00TilerTag Attached: squid
2015-12-23 07:00TilerTag Attached: usage_hint
2015-12-23 07:00TilerTag Detached: AI
2015-12-23 07:00TilerTag Detached: interaction
2015-12-23 07:00TilerTag Detached: squid
2015-12-23 07:00TilerTag Detached: usage_hint
2015-12-23 07:06TilerNote Added: 0034157
2015-12-23 07:07TilerNote Edited: 0034157bug_revision_view_page.php?bugnote_id=0034157#r13755
2015-12-23 07:24TilerNote Edited: 0034157bug_revision_view_page.php?bugnote_id=0034157#r13756
2017-12-31 16:38hugothedwarfNote Added: 0037455
2018-01-01 18:28Urlance WoolsbaneNote Added: 0037465
2018-01-03 15:56FantasticDorfNote Added: 0037488
2018-01-25 21:50XangiNote Added: 0037709
2018-01-27 12:20hugothedwarfNote Added: 0037710

Notes
(0034157)
Tiler   
2015-12-23 07:06   
(edited on: 2015-12-23 07:24)
Okay, actually, gigantic squids WILL use the interaction. Squid Men / Squid Women, however, will not. It seems like some conflict between the USAGE_HINT:FLEEING token and some token related to some manner of sapience, as when I had a USAGE_HINT:FLEEING token on a dwarf, they had never used it as well.

Further testing shows that [CAN_LEARN] on the creature conflicts with USAGE_HINT:FLEEING. Having [SLOW_LEARNER] does not cause this conflict.

(0037455)
hugothedwarf   
2017-12-31 16:38   
This seems to effect other USAGE_HINTs as well, making it so interactions are only used during combat, this wasn't an issue back in 34_11 (last I know of interactions for sentient creatures working without being in combat) not sure if this started in 40.xx or was only introduced in the 42.xx and up
(0037465)
Urlance Woolsbane   
2018-01-01 18:28   
Usage hints broke in 42.xx, I believe; certainly no earlier.
(0037488)
FantasticDorf   
2018-01-03 15:56   
I noticed a number of discrepancies when i tested this, firstly with morale enabled & and 'encounter' settings the squids follow their hints when they are overcome with the emotional state in blue of 'Overcome by terror!' but do not become terrified by brawling fights even if it ends up killing them.

Armed and undisiplined independent squidpeople in arenamode were completely complacent and immobile even when being harrassed by a giant squid which they wrestled until the gigantic squid's head was tired from exertion but didn't strike back on 'encounter' setting. I raised the conflict level past brawling (which start fighting until knocked down) and they all became consistently lethal on the non-lethal setting.

Terror, Horror, emotional shock (causes no evoke no reaction, closer they got to the giant squids without dying the more scared they were) & 'Mortal Fear' all yield no hints to spit ink by the squid people.
(0037709)
Xangi   
2018-01-25 21:50   
I can confirm this is still in 44.05, though I encountered it when trying to get a human opponent to use an interaction upon fleeing. Perhaps change the Product Version field to reflect that the bug is present in the newest version.
(0037710)
hugothedwarf   
2018-01-27 12:20   
It's not just INTERACTIONS that use FLEEING as a usage hint but with all of them. But perhaps I should clarify, the HINTs work but INTERACTIONs themselves are only used in combat (Aggressive behavior) but since the other type of HINTs are non-combat they are worthless.

I'd leave the product version as it @Xangi as it indicates when it was introduced. Until it's "Fixed" we can assume it's going to be in the latest version (Unless another bug fix solves this issue as a side effect, then we just have to report that it's no longer an issue)