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

MS2&blender problem #389

Closed Binyu907 closed 1 month ago

Binyu907 commented 1 month ago

Every time I exported MS2 files from blender into the game, the game model would become strange, such as feet embedded in the ground, face distortion, etc. In addition, when I pull the far field of view in the game, the model will become the original model, and only when I pull the close field of view will it become the morphed model that I changed. All I'm doing is scaling up the model. Can you tell me how to scale up a dinosaur model?

Version Info:

HENDRIX-ZT2 commented 1 month ago

Don't scale up the model in blender, as it will distort because you moved away from the bones. If you want to scale, you need to scale the anims too. There's a script that scales both the anims and model:

https://github.com/OpenNaja/cobra-tools/blob/master/experimentals/resize_manis.py

Binyu907 commented 1 month ago

thank you. But i am sorry, i am not sure how to use this script. Do i drop it into "Content 0"? or others? and If I directly use the resize main python file and can't open it. if i use CMD to operate it, there will show "permission Error: {winerror 5}"

Binyu907 commented 1 month ago

Is this script input in blender? But it gave me the following error:

if filename.endswith(".ms2"):

File "", line 1 if filename.endswith(".ms2"): ^ IndentationError: unexpected indent

        ms2 = Ms2File()

File "", line 1 ms2 = Ms2File() ^ IndentationError: unexpected indent Is this script input in blender? But it gave me the following error: ms2.load(file path, read_editable=True) File "", line 1 ms2.load(filepath, read_editable=True) ^ IndentationError: unexpected indent

Binyu907 commented 1 month ago

i think this script should be inputed in blender. But there are nothing change after i exporting ms2 even i put script in blender.