OpenNaja / cobra-tools

A suite of GUI tools for extracting and modifying OVL and OVS archives, as well as editing the associated in-house file formats. Also includes a model plugin for Blender. For downloads, guides, and FAQs visit:
https://opennaja.github.io/cobra-tools/
GNU General Public License v3.0
94 stars 27 forks source link

resize_manis.py& JWE2 #390

Closed Binyu907 closed 1 month ago

Binyu907 commented 1 month ago

When I am using “resize_manis” , i got some feedback followed:

  1. Using CMD: input: python "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py" Feedback: WARNING:root:bitarray module is not installed Traceback (most recent call last): File "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py", line 72, in resize("C:\Users\Desktop\resize", fac=2.0) File "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py", line 13, in resize os.makedirs(out_folder, exist_ok=True) File "", line 215, in makedirs File "", line 215, in makedirs File "", line 225, in makedirs PermissionError: [WinError 5] Access denied。: 'C:\Users\Desktop'

2.Using Python by Administrator:python "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py" Feedback:SyntaxError: invalid syntax

  1. Using Python directly: input: python "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py" Feedback: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

    1. after doing some research, i use Python and input python "C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py" Feedback: File "", line 1 python ‘C:\Users\Lenovo\Desktop\mod\cobra-tools-master\experimentals\resize_manis.py’ ^ SyntaxError: invalid character '‘' (U+2018)

    actually, i do not know how to use resize_manis.py

    Python version:Python 3.11.3

HENDRIX-ZT2 commented 1 month ago

I've changed the script to now use a commandline interface: https://opennaja.github.io/cobra-tools/Guides/Plugin/Animations/#scaling

Binyu907 commented 1 month ago

it great, but CMD shows : codegen: error: argument fac: invalid float value: 'World' , when i using the script. what can i do ?

HENDRIX-ZT2 commented 1 month ago

it great, but CMD shows : codegen: error: argument fac: invalid float value: 'World' , when i using the script. what can i do ?

What is the command you enter? Spaces in the path? Wrap it in quotation marks

Binyu907 commented 1 month ago

i enter: python resize_manis_cmd.py D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex 1.5

Binyu907 commented 1 month ago

if i enter: python resize_manis_cmd.py "D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex" 1.5

it will happen nothing. no any reaction from CMD

HENDRIX-ZT2 commented 1 month ago

if i enter: python resize_manis_cmd.py "D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex" 1.5

it will happen nothing. no any reaction from CMD

Correct way to run it. I assume you haven't extracted the ms2, wsm and manis files into that folder.

Binyu907 commented 1 month ago

thank you. it works!

Binyu907 commented 1 month ago

if i enter: python resize_manis_cmd.py "D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex" 1.5 it will happen nothing. no any reaction from CMD

Correct way to run it. I assume you haven't extracted the ms2, wsm and manis files into that folder.

but it can not work on some dinosaurs, like indominusRex. it can works on Spinosaurus. when i use it to resize another dinosuars, errors from CMD like: DEBUG:root:Reading keys block at 4155 DEBUG:root:Reading keys block at 72043 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 11693 DEBUG:root:Reading keys block at 13125 DEBUG:root:Reading keys block at 14581 DEBUG:root:Reading keys block at 16037 DEBUG:root:Reading keys block at 34005 DEBUG:root:Reading keys block at 40973 DEBUG:root:Reading keys block at 49573 DEBUG:root:Reading keys block at 57685 DEBUG:root:Reading keys block at 65341 DEBUG:root:Reading keys block at 69293 DEBUG:root:Reading keys block at 73285 DEBUG:root:Reading keys block at 80445 DEBUG:root:Reading keys block at 87701 DEBUG:root:Reading keys block at 93021 DEBUG:root:Reading keys block at 99093 DEBUG:root:Reading keys block at 732 DEBUG:root:Reading keys block at 15244 INFO:root:Reading D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\JPUltimasaurusCosmetic\Dinosaurs\Land\Ultimasaucos\models.ms2 DEBUG:root:ModelReader starts at 5412 DEBUG:root:Reading bone info 0 at 6196 DEBUG:root:BONE INFO 0 starts at 6196 DEBUG:root:Aligning to 16 from 6196 to 6196 (0 bytes) DEBUG:root:Reading additional hitcheck data at 43012 DEBUG:root:end of bone info 0 at 43012 DEBUG:root:Reading bone info 1 at 43012 DEBUG:root:BONE INFO 1 starts at 43012 DEBUG:root:Aligning to 16 from 43012 to 43012 (0 bytes) DEBUG:root:Reading additional hitcheck data at 61948 DEBUG:root:end of bone info 1 at 61948 DEBUG:root:Vertex buffer starts at 61956 DEBUG:root:Attaching streams to STATIC DEBUG:root:Loading verts size 2226320 at 61956 DEBUG:root:Loading tris size 272400 at 2288276 DEBUG:root:Loading uvs size 0 at 2560676 DEBUG:root:Loading tri_chunks size 194624 at 2560676 DEBUG:root:Loading vert_chunks size 48656 at 2755300 DEBUG:root:Attaching streams to models0 DEBUG:root:Loading verts size 977296 at 2803956 DEBUG:root:Loading tris size 127408 at 3781252 DEBUG:root:Loading uvs size 0 at 3908660 DEBUG:root:Loading tri_chunks size 74240 at 3908660 DEBUG:root:Loading vert_chunks size 18560 at 3982900 DEBUG:root:Loading mesh data for ultimasaucos C:\Users\联想\AppData\Roaming\Python\Python311\site-packages\numpy\linalg\linalg.py:2582: RuntimeWarning: overflow encountered in multiply s = (x.conj() * x).real DEBUG:root:Loading mesh data for ultimasaucos_airliftstraps C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\ms2\compounds\packing_utils.py:51: RuntimeWarning: invalid value encountered in divide arr[:] = arr / UBYTE_MAX DEBUG:root:Read models.ms2 in 0.66 seconds DEBUG:root:Updating MS2 name buffer DEBUG:root:Updating MS2 name hashes DEBUG:root:ultimasaucos has its own bone_info DEBUG:root:BONE INFO starts at 1280 DEBUG:root:Aligning to 16 from 1280 to 1280 (0 bytes) DEBUG:root:Updating name buffer DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 38096 DEBUG:root:ultimasaucos_airliftstraps has its own bone_info DEBUG:root:BONE INFO starts at 38096 DEBUG:root:Aligning to 16 from 38096 to 38096 (0 bytes) DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 57032 DEBUG:root:Aligning to 16 from 57032 to 57040 (8 bytes) DEBUG:root:update_buffer_2_bytes DEBUG:root:Updating buffer 2 DEBUG:root:Attaching streams to DEBUG:root:Attaching streams to DEBUG:root:Storing ultimasaucos DEBUG:root:Updating lod vertex counts DEBUG:root:Storing ultimasaucos_airliftstraps DEBUG:root:Updating lod vertex counts INFO:root:Writing to D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\JPUltimasaurusCosmetic\Dinosaurs\Land\Ultimasaucos\resized\models.ms2 DEBUG:root:ultimasaucos has its own bone_info DEBUG:root:BONE INFO starts at 6196 DEBUG:root:Aligning to 16 from 6196 to 6196 (0 bytes) DEBUG:root:Updating name buffer DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 43012 DEBUG:root:ultimasaucos_airliftstraps has its own bone_info DEBUG:root:BONE INFO starts at 43012 DEBUG:root:Aligning to 16 from 43012 to 43012 (0 bytes) DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 61948 DEBUG:root:Aligning to 16 from 61948 to 61956 (8 bytes) DEBUG:root:Reading keys block at 4855 ERROR:root:Reading ManiBlock failed at 4855 for ManiInfo [288 @ 83] ultimasaucos@hatcheryexit_01

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 111, in from_stream new_array.read(stream) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in read self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in fill self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'Segment.unk_a' at 2019303

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'CompressedManiData.segments' at 2019303

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis\compounds\KeysReader.py", line 40, in read_fields mani_info.keys = ManiBlock.from_stream(stream, instance.context, mani_info, bone_dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManiBlock.compressed' at 2019303 Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\base\basic.py", line 29, in from_stream return unpack(stream.read(size))[0] ^^^^^^^^^^^^^^^^^^^^^^^^^ struct.error: unpack requires a buffer of 4 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 111, in from_stream new_array.read(stream) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in read self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in fill self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'Segment.unk_a' at 2019303

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'CompressedManiData.segments' at 2019303

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis\compounds\KeysReader.py", line 40, in read_fields mani_info.keys = ManiBlock.from_stream(stream, instance.context, mani_info, bone_dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManiBlock.compressed' at 2019303

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\resize_manis_cmd.py", line 78, in resize(args.dir, args.fac) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\resize_manis_cmd.py", line 20, in resize manis.load(filepath) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis__init__.py", line 244, in load self.read_fields(stream, self) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManisFile.keys_buffer' at 2019303

when i use it on indominus, it also has error like: C:\Users\联想\Desktop\mod\cobra-tools-master new>python resize_manis_cmd.py "D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex" 1.8 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 8413 DEBUG:root:Reading keys block at 11693 DEBUG:root:Reading keys block at 13125 DEBUG:root:Reading keys block at 14581 DEBUG:root:Reading keys block at 16037 DEBUG:root:Reading keys block at 34005 DEBUG:root:Reading keys block at 40973 DEBUG:root:Reading keys block at 49573 DEBUG:root:Reading keys block at 57685 DEBUG:root:Reading keys block at 65341 DEBUG:root:Reading keys block at 69293 DEBUG:root:Reading keys block at 73285 DEBUG:root:Reading keys block at 80445 DEBUG:root:Reading keys block at 87701 DEBUG:root:Reading keys block at 93021 DEBUG:root:Reading keys block at 99093 DEBUG:root:Reading keys block at 732 DEBUG:root:Reading keys block at 15244 INFO:root:Reading D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex\models.ms2 DEBUG:root:ModelReader starts at 5204 DEBUG:root:Reading bone info 0 at 5988 DEBUG:root:BONE INFO 0 starts at 5988 DEBUG:root:Aligning to 16 from 5988 to 5988 (0 bytes) DEBUG:root:Reading additional hitcheck data at 41900 DEBUG:root:end of bone info 0 at 41900 DEBUG:root:Reading bone info 1 at 41900 DEBUG:root:BONE INFO 1 starts at 41900 DEBUG:root:Aligning to 16 from 41900 to 41908 (8 bytes) DEBUG:root:Reading additional hitcheck data at 60844 DEBUG:root:end of bone info 1 at 60844 DEBUG:root:Vertex buffer starts at 60852 DEBUG:root:Attaching streams to STATIC DEBUG:root:Loading verts size 1023920 at 60852 DEBUG:root:Loading tris size 100592 at 1084772 DEBUG:root:Loading uvs size 0 at 1185364 DEBUG:root:Loading tri_chunks size 37888 at 1185364 DEBUG:root:Loading vert_chunks size 9472 at 1223252 DEBUG:root:Attaching streams to models0 DEBUG:root:Loading verts size 755856 at 1232724 DEBUG:root:Loading tris size 80304 at 1988580 DEBUG:root:Loading uvs size 0 at 2068884 DEBUG:root:Loading tri_chunks size 28032 at 2068884 DEBUG:root:Loading vert_chunks size 7008 at 2096916 DEBUG:root:Loading mesh data for indominusrex DEBUG:root:Loading mesh data for indominusrex_airliftstraps C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\ms2\compounds\packing_utils.py:97: RuntimeWarning: invalid value encountered in multiply arr[:, (0, 1)] = -1.0 C:\Users\联想\AppData\Roaming\Python\Python311\site-packages\numpy\linalg\linalg.py:2582: RuntimeWarning: overflow encountered in multiply s = (x.conj() x).real DEBUG:root:Read models.ms2 in 0.27 seconds DEBUG:root:Updating MS2 name buffer DEBUG:root:Updating MS2 name hashes DEBUG:root:indominusrex has its own bone_info DEBUG:root:BONE INFO starts at 1280 DEBUG:root:Aligning to 16 from 1280 to 1280 (0 bytes) DEBUG:root:Updating name buffer DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 37192 DEBUG:root:indominusrex_airliftstraps has its own bone_info DEBUG:root:BONE INFO starts at 37192 DEBUG:root:Aligning to 16 from 37192 to 37200 (8 bytes) DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 56136 DEBUG:root:Aligning to 16 from 56136 to 56144 (8 bytes) DEBUG:root:update_buffer_2_bytes DEBUG:root:Updating buffer 2 DEBUG:root:Attaching streams to DEBUG:root:Attaching streams to DEBUG:root:Storing indominusrex DEBUG:root:Updating lod vertex counts DEBUG:root:Storing indominusrex_airliftstraps DEBUG:root:Updating lod vertex counts INFO:root:Writing to D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex\resized\models.ms2 DEBUG:root:indominusrex has its own bone_info DEBUG:root:BONE INFO starts at 5988 DEBUG:root:Aligning to 16 from 5988 to 5988 (0 bytes) DEBUG:root:Updating name buffer DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 41900 DEBUG:root:indominusrex_airliftstraps has its own bone_info DEBUG:root:BONE INFO starts at 41900 DEBUG:root:Aligning to 16 from 41900 to 41908 (8 bytes) DEBUG:root:Writing additional hitcheck data DEBUG:root:BONE INFO ends at 60844 DEBUG:root:Aligning to 16 from 60844 to 60852 (8 bytes) DEBUG:root:Reading keys block at 4891 ERROR:root:Reading ManiBlock failed at 4891 for ManiInfo [288 @ 83] indominusrex@hatcheryexit_01

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 111, in from_stream new_array.read(stream) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in read self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in fill self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'Segment.unk_a' at 2031067

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'CompressedManiData.segments' at 2031067

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis\compounds\KeysReader.py", line 40, in read_fields mani_info.keys = ManiBlock.from_stream(stream, instance.context, mani_info, bone_dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManiBlock.compressed' at 2031067 Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\base\basic.py", line 29, in from_stream return unpack(stream.read(size))[0] ^^^^^^^^^^^^^^^^^^^^^^^^^ struct.error: unpack requires a buffer of 4 bytes

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 111, in from_stream new_array.read(stream) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in read self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in fill self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 83, in self[:] = [function_togenerate() for in range(self.shape[0])] ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\array.py", line 68, in self[:] = self.fill(lambda: self.dtype.from_stream(stream, self.context, self.arg, self.template)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'Segment.unk_a' at 2031067

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'CompressedManiData.segments' at 2031067

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 219, in read_fields setattr(instance, f_name, f_type.from_stream(stream, instance.context, *arguments)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis\compounds\KeysReader.py", line 40, in read_fields mani_info.keys = ManiBlock.from_stream(stream, instance.context, mani_info, bone_dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 420, in from_stream cls.read_fields(stream, instance) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManiBlock.compressed' at 2031067

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\联想\Desktop\mod\cobra-tools-master new\resize_manis_cmd.py", line 78, in resize(args.dir, args.fac) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\resize_manis_cmd.py", line 20, in resize manis.load(filepath) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\formats\manis__init__.py", line 244, in load self.read_fields(stream, self) File "C:\Users\联想\Desktop\mod\cobra-tools-master new\generated\base_struct.py", line 225, in read_fields raise BufferError(f"Failed reading '{cls.name}.{f_name}' at {stream.tell()}") BufferError: Failed reading 'ManisFile.keys_buffer' at 2031067

HENDRIX-ZT2 commented 1 month ago

This is an issue with the anim format, I'll try to find the cause.

Binyu907 commented 1 month ago

This is an issue with the anim format, I'll try to find the cause.

OK looking forward to your good news. By the way,I found that the enlarged model was misaligned. For example, after the Spinosaurus become twice bigger, the picture of killing the dinosaur will be misaligned a lot, and even the mouth will be misaligned with the neck of the prey very far.

HENDRIX-ZT2 commented 1 month ago

Found and fixed it!

Binyu907 commented 1 month ago

python resize_manis_cmd.py D:\steam\steamapps\common\Jurassic World Evolution 2\Win64\ovldata\Content0\Dinosaurs\Land\IndominusRex 1.5

!!!!great!!!! but Unfortunately, there is a problem when I create indominus in the game by new resize_manis cmd.py, the game crashes. If I use this script to enlarge ultimasaurus, the game will not crash, but the models in the game will be strange, all crowded together, unable to expand the body of the dinosaur, like the skeleton does not change but the skin is enlarged and squeezed together

HENDRIX-ZT2 commented 1 month ago

Not sure what causes either of those.