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
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: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