Skip to content

Holopatcher 1.5.2 - Unable to Use "ListIndex" for TypeId Field of New Struct #53

@th3w1zard1

Description

@th3w1zard1

When creating a new struct in a GFF file, TSLPatcher would allow the command TypeId=ListIndex, which would set the TypeId to match the new struct's numeric location in the struct lis. One application of this could be when adding new conversation nodes to a DLG, where the TypeId's in the vanilla DLGs seem to match the list order in the file (although it is unclear whether the game engine actually cares about this or not). Holopatcher currently returns the following error when reading this instruction:

[Error] [18:48:32] ValueError: Invalid TypeId: expected int but got 'ListIndex' in [****]

where **** is the name of the struct in the INI.

This recently came up when a user tried to install my "TSL Expanded Ending" mod using Holopatcher: https://deadlystream.com/files/file/2672-tsl-expanded-ending/?do=findComment&comment=14453. In this case, I was able to use a workaround of setting the TypeId to a fixed value, which doesn't seem to cause any problems in game.


Migrated from: NickHugi/PyKotor#113
Original author: @WildKarrde1138
Original created: 2025-07-21T02:33:17Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions