Closed th3w1zard1 closed 12 months ago
Perhaps this needs the bug
label instead of enhancement
as you already have code that should support it?
Looking into this further I've found this original post by Stoffe on how the syntax works: http://web.archive.org/web/20150911133933/http://www.lucasforums.com/showpost.php?p=2135535&postcount=177
I've finally figured out the problem here. The problem is missing support for adding a struct into a GFF list. See this code from the test_reader_nodiff.py
[GFFList]
File0=test.gff
[test.gff]
AddField0=add_list
[add_list]
FieldType=List
CustomPath=
Label=SomeList
AddField0=add_insidelist
[add_insidelist]
FieldType=Struct
Label=
TypeId=111
2DAMEMORY5=ListIndex
https://github.com/NickHugi/PyKotor/blob/master/tests/tslpatcher/test_reader.py
Fixed by #18
See the test
test_gff_add_inside_list
for why this is broken. https://github.com/NickHugi/PyKotor/blob/master/tests/tslpatcher/test_reader.pyLogs:
relevant changes.ini snippet:
The issue is due to a lack of support for the syntaxThe problem is caused by missing support for adding structs to GFF lists. The struct is never added, therefore it can never be found in patcher memory, thus the KeyError.2DAMEMORY2=ListIndex
and then referencing the value2DAMEMORY2
later in the GFFList.I've noticed the mod Visually Repair HK-47 is one of the only ones to have this error.
Error message: