Results 1 to 6 of 6

Thread: (Help) Working with raw XML files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default (Help) Working with raw XML files

    Salve fellow citizens,

    Jack released the raw xml. files for modding purposes.

    And i was working on them. However when i find the originals in DB directory (thanks to packmanager) theyre not xml format. Something else... i dont know which format but not xml.

    So i decided to ask our veterans for their lead.

    What should i do with them? If i edit XML files i can't export them as DB format. (for example unit_variant_colors)

    Should i convert original file to something else and edit it and then convert the file again?

    How?

    Please help fellas, im pretty stucked there :/

  2. #2

    Default Re: (Help) Working with raw XML files

    You don't need the xml files at all; you work on pack files with the PFM by adding db/<table_name>_tables/your_modded_table files; this is what's read by the game.

    The xmls are very helpful for decoding the pack's db structure, but there are no tools to convert them to pack files.
    Yet, I should say; the Shogun 2 modding tools did exactly that: gave you an editor writing the xml and an exporter to write them into a pack.
    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

  3. #3

    Default Re: (Help) Working with raw XML files

    Understood,

    Thanks a lot for the reply Daniu!

    Then if i understood correctly i'll use the PFM 2.4.1 to modify the original DB files? Because thats all i need.

    It'd be such a great thing if we had a tool to convert XML files to DB files...

    Cheers mate, i'll start to work on it asap!

  4. #4

    Default Re: (Help) Working with raw XML files

    Quote Originally Posted by Little Legionaire View Post
    Then if i understood correctly i'll use the PFM 2.4.1 to modify the original DB files? Because thats all i need.
    No, 2.4.1 supports only up to Shogun 2; for Rome 2, you have to use 3.0.2.

    It'd be such a great thing if we had a tool to convert XML files to DB files...
    Not much point; the game data gets updated when the game is patched,
    So with PFM, you're basically always working on the most current version of the files.
    The XML files we got with the AssemblyKit for S2 never got updated so they froze with the patch level they were in at that time.

    I do have code that can read the XML files, but I use it only for the pack structure decoding;
    Really, there is so little use for an XML import/export I don't even bother to integrate it to PFM.
    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. #5

    Default Re: (Help) Working with raw XML files

    DP as usual...
    Last edited by Little Legionaire; September 11, 2013 at 10:31 AM.

  6. #6

    Default Re: (Help) Working with raw XML files

    I can't thank you enough Daniu!

    Perfect! Now, i'm ready to work at last.

    Very very kind of you good sir,

Posting Permissions

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