• 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

XML Transformation Script (PowerShell)

Two very important things:

1) During my last update to GitHub, I carelessly pasted the wrong things in the wrong places, so the script wasn't properly updated with the latest version.

That is fixed now. (I hope.)

2) I have made a rather large oversight regarding snippets that contain both GM directions AND text. Up until now, I was making certain incorrect assumptions about how that case was handled in the XML code. I just now found out I was wrong. These snippets are not being handled correctly. They are not currently being included in the conversion.

I will have a fix for this later today or early tomorrow (which means definitely no later than Sunday).
 
As soon as you caught Bob something started to happen... I'm excited. This output file is growing in size very quickly.
 
Its brilliant. I can't post the output... because well it's huge and not my content but it looks really good!
 
@EightBitz: I too am impressed. When the survey was taken, printing didn't rank high enough but Rob gave it an honorable mention due to some very vocal advocates (no names mentioned but I guess we were pretty vocal). As a result it got tagged on to the higher priority list along with calendars. When I saw the shift to HTML I knew that this might become possible when the webview was released. This is amazing and well before I thought it would be possible. The community owes you a great deal for taking the plunge down the XML hole.

@EightBitz: Please also take care of yourself. I just want to say that I think of you and wish you all the best in your job search whenever I fire up RW nowadays or see the printing posts. May you be successful soon!
 
@EightBitz: I too am impressed. When the survey was taken, printing didn't rank high enough but Rob gave it an honorable mention due to some very vocal advocates (no names mentioned but I guess we were pretty vocal). As a result it got tagged on to the higher priority list along with calendars. When I saw the shift to HTML I knew that this might become possible when the webview was released. This is amazing and well before I thought it would be possible. The community owes you a great deal for taking the plunge down the XML hole.

@EightBitz: Please also take care of yourself. I just want to say that I think of you and wish you all the best in your job search whenever I fire up RW nowadays or see the printing posts. May you be successful soon!

Thanks! I appreciate your kind words and your well wishes. :-)

I very much appreciate the work that Shadow and others put in to the Community packs, and the data sets that other people here have worked on and made available.

And though I haven't watched many of them yet, I'm going to start digging more into the videos people have been making. I know that type of thing takes a lot of time and patience. I could have made a video showing how to use this, but I think daplunk did a much better job with it than I would have.

I'm happy to share with a community where other people share, and it's really nice to hear that people are finding this not only useful, but impressive. It makes me realize that this is maybe something I can mention in job interviews. "Why should we hire you instead of anyone else?"

"Technology isn't just my career choice, it's a hobby and a passion. In fact, I wrote this XML conversion script for this application I use. I even shared it with the online community, and you'll be amazed at what happened next!"
 
If LWD has no objections, then for anyone who's willing to make a donation, I can privately share my PayPal info.

However, I want to make very clear that this is neither an expectation nor a condition.

You are welcome to use the script for free.

Pending Rob's approval, and assuming this does not violate the Realm Works license, I'm going to license this under the Creative Commons Attribution + Non-Commercial license.

-You are free to share and adapt the script.
-When sharing the script, you must give appropriate credit and indicate if changes were made.
-You may not use the material for commercial purposes.

Summary: https://creativecommons.org/licenses/by-nc/4.0/
Legalese: https://creativecommons.org/licenses/by-nc/4.0/legalcode
 
Oops. Accidentally left the text for numbered lists as red instead of black. I just updated the main.css file on github. If you've already downloaded it you, can redownload it or just edit the main.css file, look for the "Numbered Lists" section, and change the color from "red" to "black".
 
Just had a really cool idea. The organizational abilities of Realm Works + my conversion script = the ability to write and organize documentation that can be instantly converted to HTML, ready to print or publish on a web site. You can even include screenshots as simple pictures (just make sure to use the ScaleSimpleImages option to scale them up to 100%.

I don't have time to finish this right now as I have to get ready for game night, but see the attached for an example.

Congratulations, Rob. RealmWorks is now a productivity tool. :-D

This is making me reconsider the non-commercial license. I'd have to read up on how that works, exactly before I do. It might be worth it if people start convincing their bosses to let them expense the cost of purchase.

EDIT: Regarding the non-commercial bit, I have no objection to people using the script for something like this. I just don't want someone monetizing it.
 

Attachments

Last edited:
Ok to build upon EightBitz amazing effort and make it simpler for the masses...

Alpha V0.1: Generate XML Transformation Script

This is an application that will allow you to auto-generate the script that needs to be pasted into PowerShell. It still requires you to access PowerShell manually but should take the challenge out of creating the script.

I'm working on taking it to the next level and running the script itself. I'm not a programmer though so don't hold your breath. It's all dependant on my Googlefu.

Yes it's an executable. No it doesn't contain a virus. No it doesn't contain any error checking. No idea if it will work on all OS. No idea if you need to install anything to make it work. Yes I'm hungover so no there won't be any support provided today.

Good luck and EightBitz... thanks!

2017_01_22_11_43_51_Generate_XML_Transformation.jpg
 
You wrote the above in VB? My VB is ancient. I could give you a function to run that script in C# but you'd have to translate it into VB or create a VB module, which isn't that hard IIRC, and call it from your VB program.
 
Yeah it's VB.net. I have the script running already. Trying to figure out how to handle where the script is running from atm. It's close.
 
The Googlefu is very strong in this one.

Nice job, Daplunk. Just think what'll roll out over the next few months when the programmers in the community dive in. Pretty impressive start!
 
It should be possible to have that dialog window pop up directly from the powershell script to fill in missing questions (perhaps by invoking the script with a "-prompt" argument?).

I have a file selection dialog popup from my obsidian portal migration script, all done with powershell commands.
 
It should be possible to have that dialog window pop up directly from the powershell script to fill in missing questions (perhaps by invoking the script with a "-prompt" argument?).

I have a file selection dialog popup from my obsidian portal migration script, all done with powershell commands.

I don't think it's as easy -prompt. You have to procedurally define the form and its components, including event scripting. It's possible for sure. I've just been focusing on the script itself.

I still want to do logging so people with large realms can tell if the script is working or stuck. But maybe I'll look into this first.
 
Back
Top