Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code Used:
- from PyPoE.poe.file.dat import RelationalReader
- from PyPoE.poe.file.translations import TranslationFileCache
- from PyPoE.poe.sim.mods import get_translation
- # Path data is extracted to, only need Metadata/Data
- path = 'F:\\poedata\\ROOT\\'
- # speed things up
- opt = {
- 'use_dat_value': False,
- 'auto_build_index': True,
- }
- r = RelationalReader(
- path_or_ggpk=path,
- read_options=opt,
- )
- tc = TranslationFileCache(path_or_ggpk=path)
- r['Maps.dat']
- Error:
- Traceback (most recent call last):
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 974, in _set_value
- obj = other.index[key][obj]
- KeyError: ''
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1075, in get_file
- key_offset,
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1017, in _simple_set_value
- return self._set_value(value, other, key, offset)
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 981, in _set_value
- msg
- PyPoE.poe.file.specification.errors.SpecificationError: <ERRORS.RUNTIME_MISSING_FOREIGN_KEY: 3001>: Did not find proper value for foreign key "Id" with value ""
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:/Users/Schala/AppData/Local/Programs/Python/Python35-32/pypoetest2.py", line 21, in <module>
- r['Maps.dat']
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 967, in __getitem__
- return self.get_file(item).reader
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1057, in get_file
- df_other_reader = self[spec_row.key]
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 967, in __getitem__
- return self.get_file(item).reader
- File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1084, in get_file
- 'msg': e.msg,
- PyPoE.poe.file.specification.errors.SpecificationError: <ERRORS.RUNTIME_MISSING_FOREIGN_KEY: 3001>: Data/WorldAreas.dat:FirstEntry_NPCsKey->NPCs.dat:Did not find proper value for foreign key "Id" with value ""
Add Comment
Please, Sign In to add comment