Open nyov opened 4 years ago
Just installed everything with deps from git, for python3. Now it works... a tiny bit.
Errors:
$ unityextract sharedassets0.assets.resS
Traceback (most recent call last):
File "/home/nyov/.local/bin/unityextract", line 159, in <module>
main()
File "/home/nyov/.local/bin/unityextract", line 155, in main
exit(app.run())
File "/home/nyov/.local/bin/unityextract", line 54, in run
bundle = unitypack.load(f)
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/__init__.py", line 12, in load
return env.load(file)
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/environment.py", line 27, in load
ret.load(file)
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/assetbundle.py", line 40, in load
raise NotImplementedError("File does not start with b'Unity': %r" % self.path)
NotImplementedError: File does not start with b'Unity': 'sharedassets0.assets.resS'
$ unityextract sharedassets0.assets
WARNING:root:-19 absent from structs.dat
WARNING:root:-23 absent from structs.dat
WARNING:root:-2 absent from structs.dat
WARNING:root:-37 absent from structs.dat
WARNING:root:-40 absent from structs.dat
WARNING:root:-39 absent from structs.dat
WARNING:root:-35 absent from structs.dat
WARNING:root:-36 absent from structs.dat
WARNING:root:-3 absent from structs.dat
WARNING:root:-26 absent from structs.dat
WARNING:root:-22 absent from structs.dat
WARNING:root:-20 absent from structs.dat
WARNING:root:-21 absent from structs.dat
WARNING:root:-9 absent from structs.dat
WARNING:root:-13 absent from structs.dat
WARNING:root:-14 absent from structs.dat
WARNING:root:-16 absent from structs.dat
WARNING:root:-27 absent from structs.dat
WARNING:root:-11 absent from structs.dat
WARNING:root:-28 absent from structs.dat
WARNING:root:-7 absent from structs.dat
WARNING:root:-15 absent from structs.dat
WARNING:root:-24 absent from structs.dat
WARNING:root:-8 absent from structs.dat
WARNING:root:-30 absent from structs.dat
WARNING:root:-25 absent from structs.dat
WARNING:root:-10 absent from structs.dat
WARNING:root:-5 absent from structs.dat
WARNING:root:-6 absent from structs.dat
WARNING:root:-4 absent from structs.dat
WARNING:root:-38 absent from structs.dat
WARNING:root:-18 absent from structs.dat
WARNING:root:-29 absent from structs.dat
WARNING:root:-31 absent from structs.dat
WARNING:root:-33 absent from structs.dat
WARNING:root:-12 absent from structs.dat
WARNING:root:-32 absent from structs.dat
WARNING:root:-34 absent from structs.dat
WARNING:root:-17 absent from structs.dat
Traceback (most recent call last):
File "/home/nyov/.local/bin/unityextract", line 159, in <module>
main()
File "/home/nyov/.local/bin/unityextract", line 155, in main
exit(app.run())
File "/home/nyov/.local/bin/unityextract", line 50, in run
self.handle_asset(asset)
File "/home/nyov/.local/bin/unityextract", line 83, in handle_asset
if obj.type not in self.handle_formats:
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/object.py", line 30, in type
script = self.read()["m_Script"]
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/object.py", line 84, in read
return self.read_value(self.type_tree, BinaryReader(BytesIO(object_buf)))
File "/home/nyov/.local/lib/python3.7/site-packages/unitypack/object.py", line 51, in type_tree
return TypeMetadata.default(self.asset).type_trees[self.class_id]
KeyError: -19
belongs to #100
Fails to work in python2
Pip installed
unitypack-0.6.1
.Is it python3?
bin/unityextract
has interpreter shebang "env python", not python3. But also fails to work in python3 for a different reason.