Grimrukh / soulstruct-blender

Blender plugins for FromSoft games, via `soulstruct`.
87 stars 4 forks source link

Tried importing 2040b0 Demon's Souls flver, got "internal error setting the array" #70

Open fromsoftserve opened 6 hours ago

fromsoftserve commented 6 hours ago

Tried importing the 2040b0 flver from the m08_00_00_00 map in Demon's Souls and got this error:

Screenshot 2024-09-27 194147

I was able to import all of Boletaria using the msb import function, so this seems specific to some flvers. I tried importing 3-4 other flvers from the m08 tutorial map, and only 1 of them succeeded. the rest all had the same array error.

Grimrukh commented 6 hours ago

Gotcha, must be something funny with those materials, probably UV data. Will investigate.

fromsoftserve commented 6 hours ago

thank you so much! also I noticed when you export the flvers, it defaults to exporting them as flver.dcx, but weirdly Demon's Souls has both the .flver and the .flver.dcx. I've tested to make sure, and only modifying the .flver ones actually presents changed in game. Not sure why they doubled up like this.

Grimrukh commented 3 hours ago

Right; my guess is that the original disc had DCX files only, but the PS3 automatically unpacked them for usage, so that's the disc image we have today.

Re: the original problem, it seems to be specifically caused by my mesh-merging algorithm for these few map pieces. If you disable "Merge Submesh Vertices" on FLVER import, you can get around it for now.

fromsoftserve commented 3 hours ago

ahhh that makes sense.

and sounds good, thanks again!