HearthSim / UnityPack

Python deserialization library for Unity3D Asset format

Home Page:https://hearthsim.info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ValueError: 1056964608 is not a valid RuntimePlatform

sebastientromp opened this issue · comments

Hello,

I just installed UnityPack on a new computer, and got this issue:

Traceback (most recent call last):
  File "./bin/unityextract", line 222, in <module>
    main()
  File "./bin/unityextract", line 218, in main
    exit(app.run())
  File "./bin/unityextract", line 108, in run
    self.handle_asset(asset)
  File "./bin/unityextract", line 134, in handle_asset
    for id, obj in asset.objects.items():
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\site-packages\unitypack\asset.py", line 84, in objects
    self.load()
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\site-packages\unitypack\asset.py", line 110, in load
    self.tree.load(buf)
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\site-packages\unitypack\type.py", line 117, in load
    self.target_platform = RuntimePlatform(buf.read_uint())
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\enum.py", line 310, in __call__
    return cls.__new__(cls, value)
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\enum.py", line 564, in __new__
    raise exc
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\enum.py", line 548, in __new__
    result = cls._missing_(value)
  File "C:\Users\Daedin\AppData\Local\Programs\Python\Python37\lib\enum.py", line 577, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 1056964608 is not a valid RuntimePlatform

Do you know what could be the cause?