Guest User

errorCode

a guest
Dec 14th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Code Used:
  2.  
  3. from PyPoE.poe.file.dat import RelationalReader
  4. from PyPoE.poe.file.translations import TranslationFileCache
  5. from PyPoE.poe.sim.mods import get_translation
  6.  
  7. # Path data is extracted to, only need Metadata/Data
  8. path = 'F:\\poedata\\ROOT\\'
  9.  
  10. # speed things up
  11. opt = {
  12. 'use_dat_value': False,
  13. 'auto_build_index': True,
  14. }
  15.  
  16. r = RelationalReader(
  17. path_or_ggpk=path,
  18. read_options=opt,
  19. )
  20.  
  21. tc = TranslationFileCache(path_or_ggpk=path)
  22.  
  23. r['Maps.dat']
  24.  
  25. Error:
  26.  
  27. Traceback (most recent call last):
  28. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 974, in _set_value
  29. obj = other.index[key][obj]
  30. KeyError: ''
  31.  
  32. During handling of the above exception, another exception occurred:
  33.  
  34. Traceback (most recent call last):
  35. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1075, in get_file
  36. key_offset,
  37. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1017, in _simple_set_value
  38. return self._set_value(value, other, key, offset)
  39. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 981, in _set_value
  40. msg
  41. PyPoE.poe.file.specification.errors.SpecificationError: <ERRORS.RUNTIME_MISSING_FOREIGN_KEY: 3001>: Did not find proper value for foreign key "Id" with value ""
  42.  
  43. During handling of the above exception, another exception occurred:
  44.  
  45. Traceback (most recent call last):
  46. File "C:/Users/Schala/AppData/Local/Programs/Python/Python35-32/pypoetest2.py", line 21, in <module>
  47. r['Maps.dat']
  48. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 967, in __getitem__
  49. return self.get_file(item).reader
  50. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1057, in get_file
  51. df_other_reader = self[spec_row.key]
  52. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 967, in __getitem__
  53. return self.get_file(item).reader
  54. File "c:\users\schala\pypoe\PyPoE\poe\file\dat.py", line 1084, in get_file
  55. 'msg': e.msg,
  56. 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