Thread: 4E Item Parser
-
April 8th, 2017, 03:01 #411Grand Templar
- Join Date
- Aug 2009
- Posts
- 262
I posted a new parser that outputs the mundane items twice. One output is formatted with cost as "string", the description as "flavor", and a "mitype" field. Those entries are under "reference.items" along with all the magic items. The other output is the same as before. Those entries are under "reference.mundaneitems". Going directly to the module works as before and references the old window types ("referencearmor", "referenceweapon", and "referenceequipment".) Going through the Items interface now also works.
Understood as 4E is not a money-maker for FG anymore. All the work you have done so far is greatly appreciated. Thank you very much for the help.I have higher priority items
-
April 8th, 2017, 03:19 #412
Absolutely, thanks for the work you do put in Moon, and thanks valeros for keeping the parser working
Ongoing Campaigns:Zeitgeist Adventure Path|:|4e Tyranny of Dragons || Finished Campaigns:Tyranny of Dragons|:|Rage Of Demons
-
April 8th, 2017, 14:55 #413Zealot
- Join Date
- Jan 2010
- Posts
- 72
-
April 8th, 2017, 17:10 #414
Hi mrgrey this is a tool written by valeros - it exists in the form you see here. Im sure you could get it to run in a WineSkin with some effort though.
-
April 8th, 2017, 17:22 #415Grand Templar
- Join Date
- Aug 2009
- Posts
- 262
There is not alternative of which I am aware. This program uses .NET extensively. I think there is a push to get .NET on a lot more platforms (.NET CORE) including Linux.I don't suppose there's an alternative to this that works on Linux, is there?
-
April 8th, 2017, 17:30 #416Zealot
- Join Date
- Jan 2010
- Posts
- 72
The problem is, the web browser component of .Net doesn't work on Linux at all. If I had a copy of the source code, I could take a look at seeing if there's a way to do the same thing in Linux and get roughly the same output, but the only way to run this program on a Linux machine, until the Mono community come up with a replacement for libgluezilla, is with a VM running Windows.
-
April 9th, 2017, 00:28 #417Grand Templar
- Join Date
- Aug 2009
- Posts
- 262
So does the program not start or does the browser portion just not work? I ask because it is possible to make an alternative where the entries are downloaded using HttpWebRequest instead. (Note that saying it is possible and I promise to do it are not the same.) But ripping the browser out of the program as a whole is a lot. It is really integrated into the program to the point of taking it out even if not used/needed would be a lot of effort and would require two versions of the program. Probably not willing to do that.the web browser component of .Net doesn't work on Linux at all
-
April 9th, 2017, 01:36 #418Zealot
- Join Date
- Jan 2010
- Posts
- 72
The program doesn't start, near as I can tell. It certainly doesn't open a window of any description. As soon as I use wine or mono to open it, I first receive an error saying that libgluezilla is missing, followed by unhandled NullReferenceExceptions due to System.Windows.Forms.WebBrowser not being available.
-
April 9th, 2017, 06:03 #419Grand Templar
- Join Date
- Aug 2009
- Posts
- 262
So another problem that I just found out that really makes removing the WebBrowser not an option is that the WebBrowser output changes the HTML. (It does things like changing the capitalization of tags and adding line breaks.) And the parser is extremely sensitive to the HTML being exactly as the WebBrowser provides. Sorry
-
April 16th, 2017, 20:40 #420Grand Templar
- Join Date
- Aug 2009
- Posts
- 262
mrgrey, try the new executables attached on the first entry of this thread. The Compendium Reader and File Parser may work for you as I removed all references to a WebBrowser. One executable downloads entries to files, the other parses the files into modules.the web browser component of .Net doesn't work on Linux at all
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote


Bookmarks