Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: UristVanHelsing on January 14, 2021, 03:42:01 pm

Title: Modded interaction not being recognized
Post by: UristVanHelsing on January 14, 2021, 03:42:01 pm
I wanted to create a custom "Witcher" caste that has the propel power present in some undead lieutenants. So, I did this is creature_standard:
Code: [Select]
[CASTE:WITCHER]
[MALE]
[NAME:witcher:witchers:witcher]
[SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
[BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS]
[CAN_DO_INTERACTION:AARD]
[CDI:ADV_NAME:Propel away]
[CDI:TARGET:B:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:B:25]
[CDI:BP_REQUIRED:BY_TYPE:GRASP]
[CDI:USAGE_HINT:ATTACK]
[CDI:VERB:point:points:NA]
[CDI:MAX_TARGET_NUMBER:B:1]
[CDI:WAIT_PERIOD:50]
[POP_RATIO:0]

and this is my own file, interaction_new:
Code: [Select]
interaction_new

[OBJECT:INTERACTION]

[INTERACTION:AARD]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:LOCATION]
[IT_LOCATION:CONTEXT_LOCATION]
[I_TARGET:B:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:target]
[I_EFFECT:PROPEL_UNIT]
[IE_PROPEL_FORCE:100000]
[IE_TARGET:A]
[IE_TARGET:B]
[IE_IMMEDIATE]

When I run the game, the error log spits out:
Code: [Select]
*** Error(s) finalizing the creature HUMAN
Interaction Token not recognized : AARD

Why is this? Everything looks normal as far as I can tell.
Title: Re: Modded interaction not being recognized
Post by: Quietust on January 15, 2021, 10:48:30 am
Does your "interaction_new" file have a .txt extension? If not, I'm pretty sure Dwarf Fortress won't see it.
Title: Re: Modded interaction not being recognized
Post by: UristVanHelsing on January 19, 2021, 10:30:27 am
Yes, it is interaction_new.txt
Title: Re: Modded interaction not being recognized
Post by: Putnam on January 29, 2021, 05:01:07 pm
The "interaction examples" folder is just an examples folder, the game doesn't read from it. You need to put new interactions in the objects folder.
Title: Re: Modded interaction not being recognized
Post by: UristVanHelsing on August 21, 2021, 01:27:57 pm
I completely forgot about this thread, but yes, my interactions are in interactions_new.txt in the objects folder, not the interaction examples folder.