Baezon / pof-tools

Program for manipulating the Freespace model format .pof
3 stars 8 forks source link

Model Malia.pof causes pof-tools crash #123

Closed tomimaki closed 1 year ago

tomimaki commented 1 year ago

This model Malia.zip causes crash. PCS2 can open it. Vishnan Arbiter from Blue Planet is the same model and crashes too. Error info: called`Result::unwrap() on an Err value: FromUtf8Error { bytes: [67, 111, 98, 50, 102, 115, 32, 86, 101, 114, 115, 105, 111, 110, 32, 48, 46, 48, 53, 32, 57, 45, 52, 45, 57, 57, 10, 195, 83, 255, 131, 195, 161, 180, 224, 66, 229, 201, 88, 66, 49], error: Utf8Error { valid_up_to: 27, error_len: Some(1) } }, C:\Users\Marcus\pof-tools\pof\src\parse.rs:418:77

digama0 commented 1 year ago

This is bad UTF-8 in the info section. It apparently says:

Cob2fs Version 0.05 9-4-99
�S���B��XB1

I'm really curious whether that's some codepage lost to time or just some random corruption.

tomimaki commented 1 year ago

Interesting. Deleted malformed thing and I could open model in poof-tools.

qazwsxal commented 1 year ago

This has been fixed in #120 , next release should open it without trouble (but will drop the corrupted info). Previously tested this model with Grizzly on the discord and it seems to work fine as of 01/16

tomimaki commented 1 year ago

Ah, I didn't check current source. Closing because it's fixed.