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

Import TWAD files from pre warhammer AKs to make editing some of the tables easier (like the rpfm unit editor for warhammer 2/3?) #292

Open GregoireDerrough opened 1 month ago

GregoireDerrough commented 1 month ago

In the assembly kit for shogun 2, Rome 2, attila, and thrones of Britannia, there is something called a form launcher, which allows you to edit multiple linked tables in one window (eg new incidents/events). I think this feature is controlled by some of the TWAD files (there seems to be 2 kinds, TWAD and TWaD_, but I'm not sure which one is used by the AK form launcher).

Since RPFM has the unit editor for warhammer 2/3, I was wondering if it would be possible to add that sort of functionality but for the tables? And maybe for the other games as well? Does the rpfm unit editor use some sort of UI template?

I'll try to look into this more, add some screenshots and look into which TWaD files are used for the form launcher.

Frodo45127 commented 1 month ago

The unit editor, in its current form, doesn't use any kind of template. It's all hardcoded, which is why it hasn't been expanded much.

About the AK forms, they're in the TWADFORMDESCR files, but RPFM has no template system to use them. There was an old json-based template I made a while ago, but it got scraped and replaced with the currently hardcoded editors due to bugs and nobody using it.

GregoireDerrough commented 1 month ago

Damn, shame. I'll try to see if I can't help with anything related to that, but looking at those ui files rpfm has, looks complicated as hell.

Frodo45127 commented 1 month ago

The ui files are not intended to be manually edited. They're created and edited using QtDesigner, which is a visual editor rather easy to use.