Page 7 of 30 FirstFirst 1234567891011121314151617 ... LastLast
Results 121 to 140 of 594

Thread: PFM 3.5.2 - Updated string handling

  1. #121

    Default Re: PFM 3.5.1 - Attila support

    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.

  2. #122
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Walrusjones View Post
    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.
    both work fine for me

  3. #123

    Default Re: PFM 3.5.1 - Attila support

    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.

  4. #124

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Ahiga View Post
    The problem I am encountering is if I replace a boolean or int table with <field fkey='region_unit_resources_tables.key' name='region_unit_resource_requirement' type='string_ascii' /> (or optstring), it won't let me load the table. Seems that you cannot convert a binary or number entry to string_ascii.
    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.

    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.
    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.
    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.

    Quote Originally Posted by Magnar View Post
    New melee weapons table

    Code:
      <table table_name='melee_weapons_tables'
             table_version='7' >
        <field name='armour_penetrating' type='boolean' />
        <field name='armour_piercing' type='boolean' />
        <field name='bonus_v_elephants' type='int' />
        <field name='bonus_v_cavalry' type='int' />
        <field name='bonus_v_infantry' type='int' />
        <field name='key' type='string_ascii' pk='true' />
        <field name='damage' type='int' />
        <field name='ap_damage' type='int' />
        <field name='first_strike' type='int' />
        <field name='shield_piercing' type='boolean' />
        <field name='weapon_length' type='float' />
        <field name='melee_weapon_type' type='string_ascii' />
        <field name='audio_material' type='string_ascii' />
        <field name='unknown13' type='float' />
      </table>
    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

  5. #125
    Inevitability won
    Patrician Citizen

    Join Date
    Mar 2010
    Posts
    9,594

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by daniu View Post
    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?
    I added it and gave the schema to Radious, however I was wrong and it's not gate_damage, it should be building_damage.

  6. #126

    Default Re: PFM 3.5.1 - Attila support

    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

  7. #127
    Inevitability won
    Patrician Citizen

    Join Date
    Mar 2010
    Posts
    9,594

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Vaenson View Post
    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
    You can use pfm.exe that comes with the PFM files.

    Write a .bat file to extract your files for you something like:

    pfm.exe x yourpack.pack "filetoextract"

    ...but I can't remember the exacty syntax, run the exe to get the usage details.

  8. #128
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by daniu View Post

    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?
    Ah he didn't tell me

  9. #129
    Magnar's Avatar Artifex
    Join Date
    Jul 2013
    Location
    The last place you look
    Posts
    4,370

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Vaenson View Post
    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
    File -> Extract -> Extract All

  10. #130

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by .Mitch. View Post
    You can use pfm.exe that comes with the PFM files.

    Write a .bat file to extract your files for you something like:

    pfm.exe x yourpack.pack "filetoextract"

    ...but I can't remember the exacty syntax, run the exe to get the usage details.
    this sounds like what i was looking for

    Thanx alot!

  11. #131

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Augustusng View Post
    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.

    Yea, same problem since the Longbeard patch. Any resolution on this yet?
    While at it, what's the Decode tool and where would one find it please?

    Cheerios.

  12. #132
    Verzione's Avatar Miles
    Join Date
    Sep 2014
    Location
    Sandefjord
    Posts
    332

    Default Re: PFM 3.5.1 - Attila support

    God I wish I could understand this decodetool thingy.. but no matter how hard I try I can never figure it out. Could someone please fix the building_levels table?

    Thanks

  13. #133

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by kemorand View Post
    Yea, same problem since the Longbeard patch. Any resolution on this yet?
    While at it, what's the Decode tool and where would one find it please?

    Cheerios.
    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.

  14. #134

    Default Re: PFM 3.5.1 - Attila support

    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.

  15. #135
    Verzione's Avatar Miles
    Join Date
    Sep 2014
    Location
    Sandefjord
    Posts
    332

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Augustusng View Post
    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='10' >
        <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>
    You are a GOD! Thanks mate, works perfectly!

  16. #136

    Default Re: PFM 3.5.1 - Attila support

    Woops, just one change I forgot. Should read table_version='11' up at the top.

  17. #137

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Augustusng View Post
    Woops, just one change I forgot. Should read table_version='11' up at the top.
    Yep.

    But massive kudos man. Spent some time trying to figure out but gave up for the day couple minutes before you posted about your update. Saves me some screens staring tomorrow

  18. #138

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Augustusng View Post
    Woops, just one change I forgot. Should read table_version='11' up at the top.
    Done that, still doesn't work for me. I just copy pasted the table in or do I have to do more?

  19. #139

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Dangerman View Post
    Done that, still doesn't work for me. I just copy pasted the table in or do I have to do more?
    Yeah, it should be copy-pasted into the appropriate place in the master_schema file. After that, make sure you update your DB definitions in PFM (you can load from that file). Then it should work.

  20. #140

    Default Re: PFM 3.5.1 - Attila support

    Quote Originally Posted by Augustusng View Post
    Yeah, it should be copy-pasted into the appropriate place in the master_schema file. After that, make sure you update your DB definitions in PFM (you can load from that file). Then it should work.
    Is there an exact appropriate place or is it somewhat guesswork?

    EDIT: I think I do not know what I am doing.
    Last edited by Dangerman; March 05, 2015 at 02:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •