Another two tables I found aren't working:
units_to_groupings_military_permissions
units_custom_battle_permissions
Both are strange examples due to how small the tables are.
Another two tables I found aren't working:
units_to_groupings_military_permissions
units_custom_battle_permissions
Both are strange examples due to how small the tables are.
Magnar Plays Magnar Mod: https://www.youtube.com/playlist?lis...r7s7EZQXeu3yaC
Magnar Tutorials: https://www.youtube.com/channel/UCtd..._n1Y7DrBtVK-1A
My Youtube Channel: https://www.youtube.com/channel/UCtd4sdZYB_n1Y7DrBtVK-1A
Those two work, but building_levels_tables still doesn't. I tried fiddling around with the Decode Tool myself, but I have too little knowledge of how this stuff works.
Last edited by Augustusng; March 04, 2015 at 09:17 PM.
No, you cannot. It is only possible that a field is declared as a boolean although it really is an optstring with all fields empty; an empty optstring will only appear as a single 0 byte in the data, as will a boolean "false" value.
That does not mean that you can just edit any boolean field to be an optstring field; this will result in PFM allowing you to enter a string there, but that will result in the game not loading the edited pack (or crash or whatever) because it's not really an optstring.
When experimenting with schemas, it is safe to leave out the fkeys; those are only used in the PFM db editor to fill the combo boxes with available entries.I don't see 0, 15 or 16 being it because they existed in Vanilla. And trying to replace 15 or 16 as entries with <field fkey='region_unit_resources_tables.key' name='region_unit_resource_requirement' type='optstring_ascii' /> did not work.
Unless it's possible to switch a boolean or int entry to ascii strings, I'm not sure there'll be an entry for unit resources. Removing the f from fkey does let me load it, though. But then the game doesn't load, hangs up at the splash screen.
If you get it wrong and set it to an incorrect reference, filling the combo boxes will fail and you won't be able to edit the table at all. If you leave it out although it really is a reference, it will still work; you just have to manually edit the entries.
Uploaded schema_48.zip containing this; I got it from Radious last week who included gate_damage instead of unknown13; has that been found out to be wrong or did he figure it out without telling you?
Tools: PFM 4.1 - EditSF 1.2.0
(Download PFM - Download EditSF)
Warscape Modding Guide
Join the PFM User Group on Steam to receive PackFileManager update notifications.
Respecto Patronum
Hi Daniu,
great job with the PFM! I use the data to fill a unit stats visualization for Attila http://forums.totalwar.com/showthrea...-Visualization .
I wonder if there is any way to extract multible db files at once. I tried AutoIt but it seems to loose focus on the windows when extractiong the files :/. So if you have any idea pls let me know. Kind regards Vaenson
Magnar Plays Magnar Mod: https://www.youtube.com/playlist?lis...r7s7EZQXeu3yaC
Magnar Tutorials: https://www.youtube.com/channel/UCtd..._n1Y7DrBtVK-1A
My Youtube Channel: https://www.youtube.com/channel/UCtd4sdZYB_n1Y7DrBtVK-1A
Magnar Plays Magnar Mod: https://www.youtube.com/playlist?lis...r7s7EZQXeu3yaC
Magnar Tutorials: https://www.youtube.com/channel/UCtd..._n1Y7DrBtVK-1A
My Youtube Channel: https://www.youtube.com/channel/UCtd4sdZYB_n1Y7DrBtVK-1A
Here are two tutorials for the decode tool. By default, the decode tool is found in the folder where you installed PFM.
Also I've been trying this again with building_levels_tables... still not much progress, but I'm fairly sure that:
- unknown15:optstring_ascii = resource
- unknown18:optstring_ascii = superchain
- unknown19:optstring_ascii = building type, or something like that.
Also, create_time, create_cost, and upkeep_cost need to be shifted in to the previous columns. Unknown3 should be create_time.
Edit: Oh wow, I think I did it. Double-posting with the new table once I confirm...
Last edited by Augustusng; March 05, 2015 at 12:59 PM.
Okay, confirmed. I've got the new building_levels_tables here with some columns I managed to figure out. Means I can release my building mod later today.
Code:<table table_name='building_levels_tables' table_version='11' > <field name='level_name' type='string_ascii' pk='true' /> <field fkey='building_chains_tables.key' name='chain' type='string_ascii' /> <field name='level' type='int' /> <field name='create_time' type='int' /> <field name='create_cost' type='int' /> <field name='upkeep_cost' type='int' /> <field name='unknown6' type='string_ascii' /> <field name='unknown7' type='int' /> <field name='unknown8' type='boolean' /> <field name='unknown9' type='int' /> <field name='unknown10' type='int' /> <field name='unknown11' type='int' /> <field name='unknown12' type='int' /> <field name='unknown13' type='boolean' /> <field name='unknown14' type='boolean' /> <field name='religion_required' type='optstring_ascii' /> <field name='unknown16' type='optstring_ascii' /> <field name='resource' type='optstring_ascii' /> <field name='unknown18' type='int' /> <field name='unknown19' type='boolean' /> <field name='superchain' type='optstring_ascii' /> <field name='building_type' type='string_ascii' /> <field name='unknown22' type='int' /> <field name='unknown23' type='int' /> <field name='unknown24' type='boolean' /> <field name='unknown25' type='boolean' /> <field name='unknown26' type='boolean' /> </table>
Last edited by Augustusng; March 05, 2015 at 01:20 PM.
Woops, just one change I forgot. Should read table_version='11' up at the top.