View Single Post
Janrith
Member
 
Join Date: Mar 2019
Location: Pacific Northwest, USA
Posts: 57

Old June 5th, 2020, 05:51 PM
Quote:
Originally Posted by Acenoid View Post
Wow great ! Imagine we would do an export, run a "fix-it" tool over it resolving common errors like left over categories, the xml version, or the (whatever it is) issue with imports of a realm that has been previously imported.
<drools enviously/>

That would be really helpful

Since I use SlickEdit, I've associated the rwexport and rwstructure file extensions with the XML language definition. That allows me to open the files and beautify them, rather than trying to parse large walls of text.

In the file, it seems built-in categories, domains and tags have a global_uuid attribute on the xml element, while user created ones use original_uuid instead. Also, built in categories, tags and article/topic sections have a "_global" suffix to their element tags, while user created objects just use the base object type as their element name.

Here's a built-in category:

Code:
        <category_global category_id="Category_25" 
                         name="General Article"
                         global_uuid="6C00287B-91C6-5D3A-00D0-6A935C3C6BA9">
            <partition_global partition_id="Partition_72" 
                              name="Overview"
                              global_uuid="A800287B-91C6-5D3A-00D0-6A935C3C6BA9"/>
        </category_global>
...and a user-defined one:

Code:
        <category category_id="Category_80" 
                  name="Malady/Affliction (AD&amp;D)"
                  abbrev="Disease" 
                  role="Article" 
                  family_id="12" 
                  asset_name="Virus"
                  asset_uuid="5400287B-91C6-5D3A-00D0-6A935C3C6BA9"
                  original_uuid="AFF995B6-BC31-1C61-9280-6893DE566BA9"
                  signature="986972">
            <description/>
            <summary/>
            <partition partition_id="Partition_467" 
                       name="Overview"
                       original_uuid="B0F995B6-BC31-1C61-9280-6893DE566BA9"
                       signature="986973">
                <description/>
                <purpose/>
            </partition>
        </category>
Running both the "preserved" and "unpreserved" files through diffzilla (built into SlickEdit) it appears there isn't an explicit "preserve owner" xml attribute. Instead, the original_uuid get the first six digits of the GUID changed during the export process. This is what pointed me to examine the custom elements for conflicts. It was interesting that the exporter altering these GUIDs is enough to tell the importer these are new elements rather than existing ones.

Code:
        <category category_id="Category_79" 
                  name="Malady/Affliction (AD&amp;D)"
                  abbrev="Disease" role="Article" family_id="12" asset_name="Virus"
                  asset_uuid="5400287B-91C6-5D3A-00D0-6A935C3C6BA9"
                  original_uuid="E6248BB6-BC31-1C61-9280-6893DE566BA9"
                  signature="986972">
            <description/>
            <summary/>
            <partition partition_id="Partition_437" 
                       name="Overview"
                       original_uuid="E7248BB6-BC31-1C61-9280-6893DE566BA9"
                       signature="986973"><description/>
                <purpose/>
            </partition>
        </category>
At any rate, with these breadcrumbs, I was able to manually remove the unneeded tags from the file and run an import on a test realm (a copy of the realm having import problems) successfully.

I'm now going through the process of ensuring I'm only using the tags I want, and clearing out any custom Categories/Tags I didn't personally create via the UI, and making individual exports based on the groupings I want (source books/modules).

Once that's done I'm going to run another set of import tests. I'll let you know how it goes.

Last edited by Janrith; June 5th, 2020 at 05:59 PM.
Janrith is offline   #6 Reply With Quote