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
368 stars 58 forks source link

RPFM 3.0 #192

Closed mextrinc closed 2 years ago

mextrinc commented 2 years ago

Hi,

Ver: 3.0 Game: WH3

Problem:

After changing values & saving (not string, just integers) in data.pack > db > melee_weapons I encountered an error:

Error while trying to save the currently open PackFIle: Error while trying to save a row from a table: We expected a field of type "StringU8", but we got a field of type "l32".

Frodo45127 commented 2 years ago

Have you fully restarted RPFM after both, the update and the schema update?

mextrinc commented 2 years ago

Have you fully restarted RPFM after both, the update and the schema update?

I downloaded the release, opened it, it asked for a schema update so I did. After doing that, I went ahead and change some values and save, the error appeared. I restarted RPFM, changed the game, did the same thing yadayada. Error still there.

Frodo45127 commented 2 years ago

mmmm not getting the error here with 3.0 and the schemas updated, and that table doesn't have any special features in the definition like grouping or bitwise, that can cause that....

mextrinc commented 2 years ago

Hm... that's really weird.

I tried restarting my PC as well. Maybe I'll redownload the release and try again!

Frodo45127 commented 2 years ago

Ok, now I see it. It's not the melee_weapons table, it's another table within the data pack that's failing to save.... well, at least the error message to not corrupt packs works. I'll see if I can find what table is causing it....

mextrinc commented 2 years ago

Ok, now I see it. It's not the melee_weapons table, it's another table within the data pack that's failing to save.... well, at least the error message to not corrupt packs works. I'll see if I can find what table is causing it....

Thank goodness, always the hero to save the day.

I'll patiently wait as you find the table, thank you as always.

ahamm3rs commented 2 years ago

I tried it pretty vanilla - just opened data.pack and tried to save it. Same error as mextrinc "Error while trying to save the currently open PackFIle: Error while trying to save a row from a table: We expected a field of type "StringU8", but we got a field of type "l32"."

Frodo45127 commented 2 years ago

Found the problem, there's a specific table that has a duplicate name, and that causes RPFM to get confuse about the type of the column.... not hard to fix.

ahamm3rs commented 2 years ago

Found the problem, there's a specific table that has a duplicate name, and that causes RPFM to get confuse about the type of the column.... not hard to fix.

You rock :D

Frodo45127 commented 2 years ago

Building 3.0.1 with the hotfix. So.... closing this issue.