Skip to content

map script stops working after extending the map #1935

@Hamplmann

Description

@Hamplmann

Describe the bug
when creating a game script (via the in-game script editor or manually writing it),
if at any point one uses
map.extendMap(...)
to add another map part to the map,
after that extension takes place the map script does not do anything anymore for the rest of the match.

To Reproduce
Steps to reproduce the behavior:

  1. create a map,
    and an appropriately sized secondary map to add onto the main map
  2. create a map script via the in-game script editor,
    for example a script that plays a dialog on day 1,
    extends the map on day 2,
    and plays another dialog on day 3
  3. select the map script to be loaded for the main map via the map editor
  4. start a game on the main map
  5. See that
    • the dialog scheduled for day 1 happens as intended
    • the map extension scheduled for day 2 happens as intended
      - the dialog scheduled for day 3 does not happen
      Expected behavior
    • the dialog scheduled for day 3 should happen as intended

Screenshots
none

Desktop (please complete the following information):

  • OS: Windows11
  • Active Mods: none
  • Game Version: Beta 38_5

Additional context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions