Skip to content

Runtime error triggered when changing militia routes during movement #598

@Juqi-Li

Description

@Juqi-Li
changing.militia.routes.bug.mp4

First, before starting a new game, ensure the following two settings in Ja2_Options.INI are modified as shown below:

ALLOW_MILITIA_STRATEGIC_COMMAND = TRUE
MILITIA_STRATEGIC_COMMAND_REQUIRES_MERC = FALSE

Also, the 1.13 feature options should be set as shown in the screenshot.

Through multiple rounds of testing, we found that when only the above two INI entries are modified (based on the full default INI) without enabling the in-game 1.13 feature options override, the game runs perfectly without crashing. However, when the 1.13 feature options override is enabled, the crash occurs. We suspect that three options in particular are responsible: “Arulco Strategic Division”, “ASD: Helicopters”, and “Enemy Vehicles Can Move”.

Steps to reproduce:

  1. Two militia squads are required.
  2. Give movement orders to both squads, with their routes either identical or intersecting.
  3. Compress time and move 1–2 sectors.
  4. Cancel movement for the first squad and change its route – the new route must overlap or intersect with the previous route of either squad.
  5. Cancel movement for the second squad and also change its route so that it intersects with the other squad’s route.
    After performing this 1–2 times, a runtime error occurs.
    (See video for demonstration)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions