NPCs with different .bod2 files have the same face morph

Post Reply
Lucius
Posts: 2
Joined: Tue Apr 02, 2024 12:45 pm

Tue Apr 02, 2024 1:40 pm

The NPC's face textures and body shapes are displayed with the settings in the .bod2 file, but the morphs ( e.g. "big_eyes" and "big_mouth") are displayed with the settings of the first NPC loaded.
For example, the spawned Izumi and Jewel's face textures and body shapes are as set in their respective .bod2 files, but their eyes, nose, and mouth are both set in Izumi's .bod2 file.

Upon my investigation, this problem is caused by an incorrect calculation of the hash value used to check if morphs are the same.
The hash value is calculated after casting the float type to the integer type, so it seems that setting the "big_eyes" value to 0, -0.99 or 0.99 will all result in the same hash value.

I think this problem can be solved by multiplying the value by 100 and then calculating the hash value.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests