Please help me what is this hex of Composite_List in RSB
Closed this issue · 4 comments
hiepseafairy commented
nineteendo commented
That's a smart path (efficient for paths starting with the same pre-fix): https://github.com/Nineteendo/PVZ2tools/tree/master/OBBEdit#1bsr-smart-pathnames---get_name
hiepseafairy commented
I know that's smart path but it in rsb. I dont know what is 4 bytes end of name_path mean. Next 4 bytes is index number in compositelist.
nineteendo commented
Numbered group list:
NAME_DICT = {}
temp = GROUP_LIST_OFFSET
file.seek(temp)
while temp < GROUP_LIST_OFFSET + GROUP_LIST_SIZE:
GROUP_NAME = GET_NAME(file, temp, GROUP_LIST_OFFSET, NAME_DICT)
GROUP_ID = unpack("<I", file.read(4))[0]
temp = file.tell()
hiepseafairy commented
Thanks, i got it.