Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Discussion

Notices

Reply
 
Thread Tools Display Modes
Zaphod Beebledoc
Senior Member
 
Join Date: May 2013
Location: Birmingham, UK
Posts: 459

Old January 24th, 2017, 03:06 AM
Excellent!

So, would a similar type of conversion be able to be done on other files? An Excel or .csv file for example?

Sleet was enjoying a tasty beverage at his local tavern, when a Tarrasque showed up in the local area. He managed to valiantly get on it's back and ride it. How he did it is a mystery to this day...

RW: Engine Heart, I Love The Corps! Home Brew: Star Gate: Avalon, Monda Minutia. I'm good with: OpenOffice, Paint, Lego Digital Designer. & not so good with: Realm Works, Hero Lab, CC3+, GIMP, Cityographer, Hexographer, Fractal Mapper, AstroSynth, Inspiration Pad Pro. RW Kickstarter Supporter.
Zaphod Beebledoc is offline   #11 Reply With Quote
kbs666
Senior Member
 
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690

Old January 24th, 2017, 04:55 AM
Quote:
Originally Posted by Zaphod Beebledoc View Post
Excellent!

So, would a similar type of conversion be able to be done on other files? An Excel or .csv file for example?
It should be possible to convert most such structured formats into XML and therefore into RW.

my Realm Works videos
https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw
kbs666 is offline   #12 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old January 24th, 2017, 03:03 PM
Quote:
Originally Posted by Zaphod Beebledoc View Post
So, would a similar type of conversion be able to be done on other files? An Excel or .csv file for example?
Yes, if you have the scripting knowledge.

The simplicity of the OB script is that it uses XSLT to convert one XML format to another XML format.
Farling is offline   #13 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old January 26th, 2017, 08:59 AM
Quote:
Originally Posted by Farling View Post
You could take the EightBitz's HTML printing script and modify it to output separate HTML documents for each topic, and so build a web page to emulate your realm, if you really felt that you needed web right now.
So let it be written; So let it be done.

EDIT: Which means, of course, there's a new version up.
EightBitz is offline   #14 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old January 30th, 2017, 02:39 PM
So thinking this through.

I want to enter alot of data and need to understand the efficiency gains that can be made with this process.

lets say i have 300 of the same articles to enter. I'm thinking about items currently.

Article Name:
Type:
Group:
Rarity:
Description:
History:
Abilities/Effects:
Curse:

Would it be possible to put all the information into a spreadsheet and then manipulate the spreadsheet to output a text string in an XML format that could then be turned into an import file and loaded into RW?

Realm Works - Community Links
Realm Work and Hero Lab Videos
Ream Works Facebook User Group
CC3+ Facebook User Group

D&D 5e Community Pack - Contributor
General Hero Lab Support & Community Resources
D&D 5e Community Pack - Install Instructions / D&D 5e Community Pack - Log Fault / D&D 5e Community Pack - Editor Knowledge Base

Obsidian
Obsidian TTRPG Tutorials
daplunk is offline   #15 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old January 30th, 2017, 03:33 PM
Hmmm, not going to reinvent the wheel on this one. I suspect If I create an excel spreadsheet where I paste the source text and output each item in the following format and then paste the end result into the original XML file and run the script... then the result should be much faster entry of these items...

Quote:
<item gm_only="false" pc="false">
<id>https://campaignname.obsidianportal.com/items/1001463</id>
<link>https://campaignname.obsidianportal.com/items/glow-dust</link>
<title>Glow Dust</title>
<category>potion/oil/substance</category>
<content gm_only="false" format="textile">Copyright Material Removed</content>
<content gm_only="false" format="html">&lt;p&gt;Copyright Material Removed&lt;/p&gt;</content>
<content gm_only="false" format="textile"></content>
<content gm_only="false" format="html"></content>
<content gm_only="true" format="textile"></content>
<content gm_only="true" format="html"></content>
</item>
Wont be able to test this tonight... But theoretically this should work...

https://drive.google.com/file/d/0B_6...ew?usp=sharing

Realm Works - Community Links
Realm Work and Hero Lab Videos
Ream Works Facebook User Group
CC3+ Facebook User Group

D&D 5e Community Pack - Contributor
General Hero Lab Support & Community Resources
D&D 5e Community Pack - Install Instructions / D&D 5e Community Pack - Log Fault / D&D 5e Community Pack - Editor Knowledge Base

Obsidian
Obsidian TTRPG Tutorials
daplunk is offline   #16 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old January 30th, 2017, 04:01 PM
Don't bother with the empty <content></content> tags, they won't do anything useful if you use my OB conversion stuff.

I did have a look via google for some CSV to XML conversion scripts, and there is web site which can do it, as well as tools which use XSLT v2 which might do it more directly.
Farling is offline   #17 Reply With Quote
Parody
Senior Member
 
Join Date: Jan 2013
Location: Rochester, MN
Posts: 1,516

Old January 30th, 2017, 05:12 PM
Quote:
Originally Posted by daplunk View Post
Would it be possible to put all the information into a spreadsheet and then manipulate the spreadsheet to output a text string in an XML format that could then be turned into an import file and loaded into RW?
I'd make a template in Word and use Mail Merge. ::shrug::

When I was Publications and Webmaster for our local gaming convention I did our book and sorted event list menus that way. CSV from database->Excel to fix up the data->Word mail merge->extract plain text containing tagged text for the desktop publishing program or JavaScript for Acrobat, all done automatically via VBA.

If it's short enough you could just make a formula in your spreadsheet program, but that can get out of control pretty quickly. It worked for generating HTML results tables for our Car Wars group's website from my scoring sheets, though.


Last edited by Parody; January 30th, 2017 at 05:29 PM.
Parody is offline   #18 Reply With Quote
daplunk
Senior Member
 
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294

Old January 30th, 2017, 05:17 PM
You can Mail Merge into XML?

/XML Noob here

Realm Works - Community Links
Realm Work and Hero Lab Videos
Ream Works Facebook User Group
CC3+ Facebook User Group

D&D 5e Community Pack - Contributor
General Hero Lab Support & Community Resources
D&D 5e Community Pack - Install Instructions / D&D 5e Community Pack - Log Fault / D&D 5e Community Pack - Editor Knowledge Base

Obsidian
Obsidian TTRPG Tutorials
daplunk is offline   #19 Reply With Quote
kbs666
Senior Member
 
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690

Old January 30th, 2017, 05:36 PM
I think the work flow doesn't go directly from Word's mail merge to XML

I think he means he creates a bunch of mail merge documents and then runs a VBA script to extract the plain text from them. From there conversion to XML is easy enough.

my Realm Works videos
https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw
kbs666 is offline   #20 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:53 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.