Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Discussion
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 21st, 2017, 01:24 AM
I'm working on a script that imports spells from the csv file at pathfindercommunity.net. It contains about 2700 spells. The last selectable one is maybe #1348 on the list (which happens to be "Pup Shape"). There are other spells listed beyond that, but I cannot select them.

And when I scroll, once Pup Shape gets to the top of the viewable window, the names stop scrolling. The vertical slide bar continues scrolling, but the spell names do not.

The import process does not report any errors. I have no idea if I'm doing something wrong, if I'm hitting a bug, or if there's an internal limit of some sort.

I'm putting all the spells in a container, if that makes any difference.
EightBitz is offline   #1 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old February 21st, 2017, 03:38 AM
This should be registered as a bug, although I've already registered this particular problem.
Farling is offline   #2 Reply With Quote
ibecker
Member
 
Join Date: Oct 2013
Posts: 87

Old February 21st, 2017, 06:07 AM
I filed a bug (#57622) for that problem 2 years ago. I was told it appeared to be a limitation of the display library, and they'd look into workarounds. That was the least I heard, and the case is still open.

It's a display limitation, so if you can collapse sections higher up, you'll be able to scroll down further in the list.
-Ian
ibecker is offline   #3 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 21st, 2017, 06:21 AM
Quote:
Originally Posted by ibecker View Post
I filed a bug (#57622) for that problem 2 years ago. I was told it appeared to be a limitation of the display library, and they'd look into workarounds. That was the least I heard, and the case is still open.

It's a display limitation, so if you can collapse sections higher up, you'll be able to scroll down further in the list.
-Ian
There are no sections higher up. I imported into an empty realm.
EightBitz is offline   #4 Reply With Quote
ErinRigh
Senior Member
 
Join Date: Oct 2016
Posts: 621

Old February 21st, 2017, 06:49 AM
Quote:
Originally Posted by EightBitz View Post
There are no sections higher up. I imported into an empty realm.
Can you divide them into different Sections, Like Alphabetical? IDK how hard that would be?
ErinRigh is offline   #5 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 21st, 2017, 07:31 AM
Quote:
Originally Posted by ErinRigh View Post
Can you divide them into different Sections, Like Alphabetical? IDK how hard that would be?
That would actually be quite easy.
EightBitz is offline   #6 Reply With Quote
Acenoid
Senior Member
 
Join Date: Dec 2013
Posts: 798

Old February 21st, 2017, 02:57 PM
Like he wrote in the 1st post: he reads the csv and creates an RW XML for import
probably it is being made especially for this task I wont be of much use, however I agree, it could be great to create all kinds of lists / topics / things via csv and import them.

Let's see what EightBlitz says

Join the (unofficial) Realm-Works IRC Chat: #realm-works on the Rizon Network (https://wiki.rizon.net/index.php?title=Servers)
-> Browser Client: https://kiwiirc.com/client/irc.rizon.net
Acenoid is offline   #7 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old February 21st, 2017, 03:25 PM
Quote:
Originally Posted by Acenoid View Post
Like he wrote in the 1st post: he reads the csv and creates an RW XML for import
probably it is being made especially for this task I wont be of much use, however I agree, it could be great to create all kinds of lists / topics / things via csv and import them.

Let's see what EightBlitz says
I'm doing my best to make the code easily adaptable, but you'll still have to be familiar with PowerShell scripting. That being said, there are a few pending issues.

1. There is currently a bug with RealmWorks where tag values assigned to snippets are instead assigned to topics. I'm told by Farling that this is a known bug which LWD says it's working on.

2. The CSV file I'm working is from pathfindercommunity.net, but I've had to clean it up a bit.

3. There's the issue with the view size limitation. I have yet to modify the code for the suggested workaround.

4. The CSV file has a column for a plain-text description and one for an HTML-formatted description. The formatted description is obviously preferable, but is giving me issues. At least one spell (#134 of ~2700) is giving me an error on import. I say at least one, because it stops there and doesn't go beyond.

5. I've had to modify the tags in the Pathfinder structure to add spell descriptors, schools and subschools. So if I distribute the code, I'd have to distribute it with my Pathfinder structure and my sanitized version of the CSV file, otherwise errors.

Once I get a clean, flawless import, I'll be willing to share. Right now, my copy of RW is supposedly deleting the imported spells so I can have a clean realm to start testing things again.

Except for the import error, all these things have workarounds. For example, I can clone the Spell category, and in the clone, replace the tag snippets with labeled text snippets. Or stick information in the annotation fields instead of assigning tags.

But that one import error, I gotta find out what's going on there, and right now, I'm clueless. I've submitted a support request.
EightBitz is offline   #8 Reply With Quote
HippyCraig
Member
 
Join Date: Jan 2015
Posts: 96

Old February 21st, 2017, 04:02 PM
Awesome looking forward to seeing the final result.
HippyCraig is offline   #9 Reply With Quote
Farling
Senior Member
 
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623

Old February 22nd, 2017, 09:06 AM
Quote:
Originally Posted by EightBitz View Post
5. I've had to modify the tags in the Pathfinder structure to add spell descriptors, schools and subschools. So if I distribute the code, I'd have to distribute it with my Pathfinder structure and my sanitized version of the CSV file, otherwise errors.
There is no need to modify the tags. All of these are already in the default Pathfinder structure.

I've got all the 4 CSV loading quite happily except for the tags issue. I decided to use the basic text instead of the HTML-ised text. I don't know if the HTML-ised text is from the raw PRD or someone has added from another source.

My solution uses XSLT scripts rather than PowerShell scripts.
Farling is offline   #10 Reply With Quote
Reply


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 05:54 AM.


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