Castles won't auto-attack when using XS to research technology

:arrow_forward: GAME INFORMATION

  • GAME BUILD #: 78174(whatever, it occurs since I wrote that xs)
  • OPERATING SYSTEM: Windows 10

:arrow_forward: ISSUE EXPERIENCED

I wrote a XS file that can research all techs at once. It works all just fine, except building a new castle. Once the castle is built, it can’t auto attack the enemy/neutral target, so I have to manually kill all targets

:arrow_forward: FREQUENCY OF ISSUE

  • 100% of the time / matches I play (ALWAYS)

:arrow_forward: REPRODUCTION STEPS

Here’s the steps to reproduce the issue:

  1. Attach the XS file below(Change the Bannerlord.txt into Bannerlord.xs format) to a new scenario, and play as Player 1 in dark age
  2. Place some villagers for Player 1, then place some enemy unit for Player 2
  3. Test the scenario and build a castle with villagers placed before
  4. Complete the construction of the castle then see what happens

:arrow_forward: EXPECTED RESULT

Newly-built castles should auto-attack against enemy targets

:arrow_forward: IMAGE

:arrow_forward: GAME FILES (SAVE / RECORDING)

Bannerlord.txt (53.4 KB)
Change it into XS format.

castle in question is unit ID 82 right? not a brand new custom unit ID with castle graphics?

The ID 82 unit exactly. Before running the XS script it can auto attack

right now im having possibly similar issue, but with tower class units.

tower class that can train units stops attacking after setting them in action, with exception of donjon so its likely theres some hard code involved.

1 Like

Another xs batch or this one?

I think its hardcoded part of the engine in general. xs might be unrelated but can’t say for sure because I only do datamodding. just from my experience individual class have their own unique attribute and to defy those (ie castle ID 82) would mean hard coded properties.

in this example castle ID 82 is building class, which normal building class that has attack does not automatically target fishing ship class but towers do. castle does in fact auto target fishing ships so it is a hard coded property to ID 82.

1 Like

Still can’t auto attack in 81058

I talked with the team about this issue :slight_smile:
Thanks for the report!