Frodo45127 / rpfm

Rusted PackFile Manager (RPFM) is a... reimplementation in Rust and Qt5 of PackFile Manager (PFM), one of the best modding tools for Total War Games.
MIT License
357 stars 57 forks source link

Cannot open bin files #244

Open adayoegi opened 1 year ago

adayoegi commented 1 year ago

I started using RPFM since 4.0.0 and till now 4.0.12, modding Warhammer3 During my mod development, sometimes the portrait_settings.bin cannot open anymore It still works ingame, but in RPFM it cannot open This happened a few times but I am not aware of when it happens (as a beginner I did not realize it is abnormal at the first glance) Recently I heard that portrait_settings.bin should not have multiple ones so this is probably a problem need to solve

From image below we can see bl_portrait_settings.bin is not editable (I created this file, was once working) bl_portrait_settings_ritual_lords.bin is still editable. (This is the fresh one I created today) RPFM_bin_issue

Frodo45127 commented 1 year ago

Can you send me a pack where a portrait settiings file is nor readable so i can see what's happening? It's also possible it's a name issue. Try renaming it to "portrait_settings_whatever.bin", save, reopen the pack and see if it works.

adayoegi commented 1 year ago

Seems to be naming issues Rename bl_portriat_settings to bl_portriat_settings1
to bl_portriat_settings_test
to bll_portriat_settings ❎ to bll_portriat_setting ❎ to bll_portriat_settings__

Any ideas?

adayoegi commented 1 year ago

Do you still need the pack file? If yes, how should I send it to you? Github does not support this file type

Frodo45127 commented 1 year ago

If it's a name issue, the pack is not needed. I'll put some fixes to make sure those corner cases are recognized properly as currently the regex used for detection them fails in very specific situations.