Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Diaz Ex Machina
Member
 
Join Date: Feb 2017
Location: Italy
Posts: 64

Old April 22nd, 2022, 06:05 AM
Is it possible to avoid the double description in the alchemical items?

Thank you in advance for your help and time.
Diaz Ex Machina is offline   #1 Reply With Quote
ploturo
Member
 
Join Date: May 2021
Posts: 79

Old April 22nd, 2022, 03:36 PM
Short version:

It's a bug in the code that automatically generates the description text, since it doesn't handle the case where something has multiple unique ids properly.

(Or you could consider it a bug in the code that automatically generates the DescInfo.? tags, but there are probably reasons for creating all auto-generated tags for both the old and replacement thingid.)


Long version:

It happens because of how the "replace thing" functionality is implemented, since it automatically generates tags for both the original version of the thing and the replacement version of the thing.

The replaced item has two thingid.? tags, a thingid.oldThing tag and a thingid.newThing tag.

The reason the description is shown twice is because the replaced item also has two DescInfo.? tags generated for it.

Normally, the description display code uses extra DescInfo.? tags to append relevant information from another thing (like appending the description of the primary version of a spell, when another version of the spell just says that it works like the other spell in its own description.)

The display code isn't written to ignore additional DescInfo.? tags for itself when an object has multiple thingid.? tags though, and thinks it is supposed to append another object's description.

You could fix it for the descriptions of Picks that have been added to the hero by adding a script to the replacement that deletes the DescInfo.? tag with the old thingid. But you can't delete tags from a Thing entry, and so the chooser where you add items would still always show the double description since it uses the database of Things. I'm not sure it is worth it to add an extra script to every replacement thing.

It's a relatively minor glitch and either no-one has given the effort to file a bug report, or LW considers the problem to be a low enough priority that they haven't gotten around to fixing it.

Last edited by ploturo; April 22nd, 2022 at 03:43 PM. Reason: wasn't logged in, and the forum ate my post
ploturo is offline   #2 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 09:01 AM.


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