Skip to content

Undertale merge corrupts script references in unmodified objects #33

Description

@Dice-001

When merging an Undertale mod, script references appear to be remapped incorrectly.

The screenshot shows the same object/event before and after the merge.

Before:

  • script_execute(textdata_en)
  • script_execute(textdata_ja)

After:

  • script_execute(textdata_ja)
  • script_execute(trophy_get_state)

The merged test mod does not modify this object at all. The only purpose of the mod was to test merging.

The test mod was created by copying the original data.win file and then creating an xdelta patch between the original file and the copied file, so it should not contain any actual changes.

Because of this remapping, text_data_en is never initialized and the game crashes later when scr_gettext() tries to access it.

The attached screenshot compares a single mod installation (left) with a merged multi-mod installation (right).

I tested several different types of Undertale mods, including a Korean translation mod, additional content mods, and randomizer mods. All of them resulted in the same issue after merging.

Image Image

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