Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modded interaction not being recognized  (Read 2107 times)

UristVanHelsing

  • Bay Watcher
    • View Profile
Modded interaction not being recognized
« 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.
Logged
You could always spread it around and paint the floor of your house with the blood of your enemies.
You could very well go for a Christmas themed house, all green and red from blood and vomit. Deck the halls with spilled intestines. Fa la la la la, la la la la!

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Modded interaction not being recognized
« Reply #1 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.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

UristVanHelsing

  • Bay Watcher
    • View Profile
Re: Modded interaction not being recognized
« Reply #2 on: January 19, 2021, 10:30:27 am »

Yes, it is interaction_new.txt
Logged
You could always spread it around and paint the floor of your house with the blood of your enemies.
You could very well go for a Christmas themed house, all green and red from blood and vomit. Deck the halls with spilled intestines. Fa la la la la, la la la la!

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Modded interaction not being recognized
« Reply #3 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.

UristVanHelsing

  • Bay Watcher
    • View Profile
Re: Modded interaction not being recognized
« Reply #4 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.
Logged
You could always spread it around and paint the floor of your house with the blood of your enemies.
You could very well go for a Christmas themed house, all green and red from blood and vomit. Deck the halls with spilled intestines. Fa la la la la, la la la la!