Senior Member
Join Date: Dec 2010
Posts: 468
|
Dang, eight. Great work
|
#121 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
|
#122 |
Senior Member
Join Date: Jan 2012
Posts: 1,147
|
Love the sig.
Love the work. |
#123 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
I don't know if anyone here remembers, but a while back, I wrote a redaction script for people who wanted to author data sets for Hero Lab. The script would redact descriptions so you could have full descriptions in your own copy but remove them from the shared copy, so as to avoid illegal distribution of copyrighted content.
I figured since I now have a GitHub account and an official signature here, I may as well post the redaction script. I was revisiting that code, and I realized that with what I learned in writing the export script, I can rewrite the redaction script properly. The way I wrote it originally, it read in the .user files as text files, searched (via plain text) for the Description tag, parsed for the substring of the actual description, and replaced it either with other text, or replaced it with a null value. Now I can properly read it and handle it as an XML file. :-) |
#124 |
Junior Member
Join Date: Aug 2007
Posts: 22
|
Have not, as of yet, had any luck with this, although my Powershell (and coding on the whole) experience is pretty limited... so there's probably a reasonable explanation for it.
On the occasions I've tried it (using the GUI script), the script tends to balk early on (Line 207, right after Mandatory), where I assume that my source file might be incorrect. I've been trying to put everything in the same folder (script, export (compact export) file, css and use the same folder for export of the HTML or DOC) for ease of making sure I've got everything... in my case, C:\Users\Mark\Desktop\Folder. I basically copy and paste direct from Explorer. Should I be trying it as a relative folder instead? The GUI script locks if I try to click on the buttons to locate, like I would most Windows GUIs, so I've made do by copying and pasting into the entry forms, instead. Attached is a screenshot of my GUI and the powershell reply. First time is running the script standard, second is bypassing entry validation. Hate to ask, because I'm obviously no coding whiz, but any ideas what I might be doing wrong, just at a look? Darker Age Press - Writer and Developer Realm Works Projects: World of Phantasie (Castles & Crusades) RPG and Art Software Used: Realm Works, Hero Lab, Campaign Cartographer 3+, Cityographer, Hexographer, Fractal Mapper, Evernote, Scrivener, OneNote, Photoshop, Poser Pro, Cinema 4D, Vue 8 Complete. |
#125 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
Second, if you're selecting Word as the output format, change your destination file to have a .doc or .docx extension. Other than that, I'm not sure. Is anyone else besides ArgoForg having these issues? |
|
#126 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
|
|
#127 |
Senior Member
Join Date: Apr 2014
Location: Perth, Australia
Posts: 161
|
Quote:
I just updated my version of the code, and now it doesn't seem to work for me any more, it just hangs and sits there (I left it for about and hour to see if it was something and my realm isn't that big), but after cancelling I could see that it only had about 4 lines in it... I did the compact export but only selected player content, as this is the information I put into a HTML file for my players. I have no idea what's different, and to be sure I found one of the older codes that exported to a text file and that seems to work... Am I missing a step ? I even tried the GUI version with the same result. Any suggestions ? I'll try and find an older html one to see which version it stopped for me on. |
|
#128 |
Senior Member
Join Date: Apr 2014
Location: Perth, Australia
Posts: 161
|
Quote:
the only one that works is: RWExport-To-Text.ps1 # by EightBitz # Version 0.5a # 1/17/2017, 3:40 PM CST I'll try doing a compact export (without turning on the player only flag and see what happens) |
|
#129 |
Senior Member
Join Date: May 2013
Posts: 1,458
|
Quote:
Edit: Nevermind, you answered my question already. I'm reading on a tablet in the middle of a frustrating issue with one of my laptops, so my reading comprehension is a bit off right now. I'll ask you the same question. Can you join me in Google Hangouts or Skype? Not right now, but can we coordinate a time? Last edited by EightBitz; February 12th, 2017 at 09:17 PM. |
|
#130 |
Thread Tools | |
Display Modes | |
|
|