• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Foundry loose integration

I think child topics in RW are always alphabetized, which is how I like it anyway, so it threw me off when they weren't ordered right in Foundry.

If aliases don't work, I might have to go through and convert some links before exporting. I've become used to using everything from aliases to custom links based on what looked best in the particular context. What are the limitations on which ones don't work?

One of the broken links is my "Welcome to the Realm" homepage. I wonder if it might not work because it is a unique topic in RW with no topic type.

Hi,

As you can see, I've pushed out a small update to deal with topic with & in the title.

I need to check aliases again.

The issue is that the RWoutput file only contains the text for the link inside a "span" element, with no mention as to where that link is actually connected.

For each topic, the RWoutput file also has a list of "linkages", but there's no indication as to where each linkage appears in the actual topic!

Because only the text of the link is in a "span", sometimes the import module will see a "span" and assume that it is a link - and so might create a broken link rather than not showing any type of link at all. This is the reason that "Himinborg" appears to be a link the Portals topic.

The RWoutput file you previously sent me didn't include the topic called "Welcome to 'The Realm'" so I see broken links to that topic when I test with your file.

I tried creating some additional links in one of my own realms, and they appeared in the RWoutput with NO span at all; so the import module didn't think that there were any links at all in that topic.

I may have to revisit whether I should be using the RWexport file as the basis for the import - but that gets far more complicated in processing the XML file.
 
Hi,

As you can see, I've pushed out a small update to deal with topic with & in the title.

Thanks!

I need to check aliases again.

The issue is that the RWoutput file only contains the text for the link inside a "span" element, with no mention as to where that link is actually connected.

For each topic, the RWoutput file also has a list of "linkages", but there's no indication as to where each linkage appears in the actual topic!

Because only the text of the link is in a "span", sometimes the import module will see a "span" and assume that it is a link - and so might create a broken link rather than not showing any type of link at all. This is the reason that "Himinborg" appears to be a link the Portals topic.

Himinborg should be a real link, but it's a custom link to "1st - Ysgard (Layer)", which is probably at least as tricky as a link to an alias.

The RWoutput file you previously sent me didn't include the topic called "Welcome to 'The Realm'" so I see broken links to that topic when I test with your file.

That's actually the name of my RW home page--the one you get when you click the house button next to the back button. Looking at it, it seems its topic category is "Realm Starting Point".

I tried creating some additional links in one of my own realms, and they appeared in the RWoutput with NO span at all; so the import module didn't think that there were any links at all in that topic.

I may have to revisit whether I should be using the RWexport file as the basis for the import - but that gets far more complicated in processing the XML file.

I'll be happy with whatever we end up with. It's really useful in any event. As long as I know what glitches aren't fixable I can try to work around them.

Also, the roll table extraction is really cool! I can see a few of my random encounter tables got converted. I'll check and see if there are others that didn't and what the differences might be.
 
Last edited:
Release 1.0.0 is out

There is a big change with this release, in that it will read RWEXPORT files, not rwoutput files.

By reading the rwexport file it will allow all links to be created properly, and allows for better features in the future.

TRUE NAME is now identified in the topic's list of aliases.
The Category of each topic is listed at the top of the journal entry.
Date fields will have a different format, since rwexport doesn't have the "display" option that was present in rwoutput files.
 
1.0.1 fixes a bug introduced in 1.0.0 where links were mis-aligned within or after a table appearing in a snippet.
 
I attached a picture of some warnings I got on import. I'm not sure if they mean some of my topics didn't make it through.

Looks like the custom Himinborg link works now.

This time the links to "Welcome to 'The Realm'" are completely missing, not even listed but broken.
 

Attachments

  • Screenshot 2021-10-16 142112.png
    Screenshot 2021-10-16 142112.png
    21 KB · Views: 2
I attached a picture of some warnings I got on import. I'm not sure if they mean some of my topics didn't make it through.

Looks like the custom Himinborg link works now.

This time the links to "Welcome to 'The Realm'" are completely missing, not even listed but broken.

I will need to fix the wording of that particular error report.

It indicates that the identified numbered topic does not exist within the RWEXPORT file.

Does your RWEXPORT contain everything in your realm, or is it a partial export?
 
Version 1.1.0 sorts Governed Content and Content Links alphabetically.
It also provides a better warning message when a link is to a topic not found in the rwexport file.
 
I should add that 1.0.0 onwards should always correctly create links regardless of whether the text is the real topic title, an alias, or a manual link created on non-matching text.
 
That's actually the name of my RW home page--the one you get when you click the house button next to the back button. Looking at it, it seems its topic category is "Realm Starting Point".

I think this is a BUG in Realm Works: the HOME PAGE topic is not put into the Realm Works Export file.

This will affect anybody who tries to use that page in a realm that they want to export to another user.

Links TO the home page do get put into the Export file, but the topic to which the link points does not get created - maybe this will generate an exception/error during import into a new realm.

Even the "Duplicate Topic" link is disabled, so it isn't a trivial matter to make it a normal topic within Realm Works.
 
Version 1.1.1 is out.

Fix the labels on map pins.
Don't include aliases in the name of RollTables.
Remove old code that supported RWoutput files.
 
I will need to fix the wording of that particular error report.

It indicates that the identified numbered topic does not exist within the RWEXPORT file.

Does your RWEXPORT contain everything in your realm, or is it a partial export?

It's a full export. I tried it again with the updated importer and I didn't get any warnings this time, so maybe something is different, or maybe it was just a glitch.

I think this is a BUG in Realm Works: the HOME PAGE topic is not put into the Realm Works Export file.

This will affect anybody who tries to use that page in a realm that they want to export to another user.

Links TO the home page do get put into the Export file, but the topic to which the link points does not get created - maybe this will generate an exception/error during import into a new realm.

Even the "Duplicate Topic" link is disabled, so it isn't a trivial matter to make it a normal topic within Realm Works.

I don't really need the home page, since making a custom landing page in Foundry is probably better practice anyway, and it can include all the links I want from the RW home page.

I will note that the links to it in the import seem to have vanished. So rather than broken links there is nothing. That's not a problem, since otherwise I'd have to delete them manually, but it seems to differ from the expected behavior as I understand it, so I wanted to report on it.

Is it possible to also alphabetically sort the Relationships? I think that's about the only issue I can see left. Everything else seems to be working great.
 
Version 1.2 is now available.

It contains improvements for the presentation of Connections:

They are sorted in alphabetical order of the linked topics.
They are put into a bullet list instead of just separate paragraphs.
The link information is all presented before the link, and only enough text displayed to show the full connection.
 
Version 1.3

Two new processing modes have been added:

Only import NEW topics
Any already-imported topics will remain untouched; only new topics will be processed to create new items in your Foundry world.

Overwrite previously imported things
This will overwrite the contents of world things, but will retain the same foundry IDs so that manual links are retained.
Unfortunately, Actors will be deleted and created again (new IDs) since there is no simple way to edit everything attached to an Actor.
Any changes made locally to these things within Foundry VTT will be lost.
Note that this option will NOT delete anything that was previously created but no longer exists in the import file. (maybe a future evolution).

Also:
d% should be recognised as a valid dice formula when creating RollTables (it will be replaced with d100).
 
Awesome.

I noticed some of the Relationships are coming through odd, so I made a test topic to see which ones were affected.

The following Relationship types are showing up as "undefined":

Family Relationship to: Immediate Ancestor of
Family Relationship to: Offspring of
Family Relationship to: Union with

Also, with using the RW export instead of RW output, would it allow for an option to have unrevealed snippets show up in Foundry's secret style?
 
Awesome.

I noticed some of the Relationships are coming through odd, so I made a test topic to see which ones were affected.

The following Relationship types are showing up as "undefined":

Family Relationship to: Immediate Ancestor of
Family Relationship to: Offspring of
Family Relationship to: Union with

Also, with using the RW export instead of RW output, would it allow for an option to have unrevealed snippets show up in Foundry's secret style?

I've identified the wrong relationships, and I'm about to release an update that uses all the correct text (to match what you see in RW).

For unrevealed snippets, do you think that this should only be done in journal entries which are marked as revealed? Otherwise the import will end up marking entire journal entries as secret text.
 
I've identified the wrong relationships, and I'm about to release an update that uses all the correct text (to match what you see in RW).

For unrevealed snippets, do you think that this should only be done in journal entries which are marked as revealed? Otherwise the import will end up marking entire journal entries as secret text.

I'd probably pick it applying to unrevealed entries by default. That's just a matter of preference. If I reveal an entry and don't want the party to know everything about it, I'll have to either remove the secret formatting from the parts I want them to see, or add it to the parts I don't. Since I often start out with them only getting small bits of information about a topic, having to manually un-secret the info is likely the better option for me. (It's obviously a chore to do compared to RW, but I'll have to do it one way or another regardless.)
 
I'd probably pick it applying to unrevealed entries by default. That's just a matter of preference. If I reveal an entry and don't want the party to know everything about it, I'll have to either remove the secret formatting from the parts I want them to see, or add it to the parts I don't. Since I often start out with them only getting small bits of information about a topic, having to manually un-secret the info is likely the better option for me. (It's obviously a chore to do compared to RW, but I'll have to do it one way or another regardless.)

I'm working on this at the moment. It gets a lot more complex when you consider how reveal affects linking - the relationships and governed content need to have links hidden if they aren't revealed (or the topic to which they're connected isn't revealed).

And whilst writing the above I've realised that links within the body of the text can't really be replaced with just the text if the linked topic isn't already revealed. I don't have a solution for this particular aspect (other than creating completely separate PLAYER and GM versions of each revealed topic).

Maybe I should simplify this by having a switch for reveal processing. If the TOPIC is revealed, then the body will ONLY contain revealed content - so links to unrevealed topics can be created as normal text. If the topic is NOT revealed, then it will contain everything (since the assumption is that the topic is only of interest to the GM).
 
I'm working on this at the moment. It gets a lot more complex when you consider how reveal affects linking - the relationships and governed content need to have links hidden if they aren't revealed (or the topic to which they're connected isn't revealed).

And whilst writing the above I've realised that links within the body of the text can't really be replaced with just the text if the linked topic isn't already revealed. I don't have a solution for this particular aspect (other than creating completely separate PLAYER and GM versions of each revealed topic).

Maybe I should simplify this by having a switch for reveal processing. If the TOPIC is revealed, then the body will ONLY contain revealed content - so links to unrevealed topics can be created as normal text. If the topic is NOT revealed, then it will contain everything (since the assumption is that the topic is only of interest to the GM).

Yeah, I hadn't thought about the complication with links.

I can't think of a really good solution. I'd want all the material to come across--most of my topics are only partially revealed, and it would be a real pain to have to go through each one of them after import and copy+paste all the info in from RW.

Maybe the best way is to not worry about it at all, and just have a note that the conversion process doesn't preserve unrevealed states. I could just manually convert all my unrevealed snippets in RW to DM only text before bringing them across so they'll be secret in Foundry; and then after import manually hide the links.

Edit: I just noticed that there is no scene padding. Is there a way to add scene padding on import without it throwing off the map pins?
 
Last edited:
1.4 is available

FIX: Custom section names should now be decoded properly.
IMPROVEMENT: bold and italic text now encoded as strong and em text (to match how Foundry VTT does it).
FEATURE: Add option to include numbering on section headers, emulating the numbering in Realm Works.
CHANGE: Connections and Content Links now use same topic name format as in Realm Works "topicname ( suffix - prefix )", rather than the format used in topic titles and governed content "prefix - topicname (suffix)".
FEATURE: Add option to handle REVEALED state of things. If a topic is revealed, then its contents will be only the snippets that are revealed, and actors/tables/playlists will only be created from that topic if the containing snippets are revealed, and the topic will have its permissions set for players to be OBSERVERS. For topics which are not revealed, the full contents will be created (and the observer will NOT be set).

This has a first attempt at providing some capability for handling the reveal state of topics and snippets.
 
Back
Top