[Mighty Script] Deleting a patrol breaks the assigned party

Avatar
  • Views 5,112
  • updated
  • Backlog

Specs:

  • Windows 7 64-bit
  • 16GB RAM
  • Intel i5-6500 CPU
  • NVIDIA GeForce GTX 1050 Ti GPU

Version:

  • WFTO v2.0.7f1

I've encountered a problem with Mighty Script. This is in Scenario mode; I haven't tested it in others. To replicate:

  1. Turn off Fog of War and create an open area with some paths so you can see the effect of the bug.
  2. Open the Mighty Script editor.
  3. Create two distinct Parties. One unit in each is fine.
  4. Create two distinct Patrol paths.
  5. Add a Script with the following setup:
    • Trigger: On Start
    • Conditions: (none)
    • Actions:
      1. Spawn Empire-owned Party 1 attached to Patrol Route 1 at some location on/near the patrol route.
      2. Spawn Empire-owned Party 2 attached to Patrol Route 2 at some location on/near the patrol route
  6. Test. Everything should work as expected and the two Parties should run back and forth on their paths.

Now:

  1. Delete Patrol Route 1
  2. Create Patrol Route 3 (either different or the same as Patrol Route 1)
  3. Update the first Spawn action so Party 1 is attached to Patrol Route 3.
  4. Test. Party 1 should now wander aimlessly.

From this point on, Party 1 is broken and cannot be spawned attached to a Patrol Route. Deleting and recreating the action doesn't fix it. In the meantime, as a workaround, you can either create a new Party or forcibly assign a Patrol Route to the Party after it's been spawned.

Image 7225

Game Version:
Steam Public
Platform:
Windows
Avatar
Lee "Noontide" Moon Designer & Community Manager
  • Backlog

Really good ticket. We'll review this and attempt to replicate prior to our next maintenance patch. Hopefully we should be able to find a solution.

Avatar
purpleprophy

Thank you!