Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 5.17.19
-
Fix Version/s: 6.01.01
-
Component/s: Rules (LST) persistence
-
Labels:None
Description
See CODE-1277
I have a set of 'campaign' PCC's (one for each gaming session), that defines the various sourcebooks (sub-PCC's) that are used for that particular gaming group.
Each of these sub-PCC's may in turn also include other PCC's based on their dependancies.
While each of these PCC's can be included manually in the 'select source' screen, the 'campaign' PCC's make it far easier to switch from one game to another.
To aid in diagnosing issues in my homebrew, I'd like to have the log indicate which PCC it has loaded in and is processing (in order), so that any data errors that appear can be easily traced back to the originating PCC file.
Not all errors indicate the source file that caused them unfortunately, so this additional logging will help with diagnosing those hard to find issues.
PCC files are all loaded when PCGen is loaded, so the PCC files are all resident in memory before you load any sources. It is then the files they refer to that are loaded individually when you load sources. As it so happens, if a file is mentioned in more than one PCC file, we try to avoid loading it twice. So the concept of "which PCC file is being loaded" is a lost by the time we are loading LST files.
So there are potentially two separate issues here. The first is diagnosing the PCC files themselves, the second is diagnosing the LST files.
We can add a debug-level message prior to loading each LST URI (file/URL/whatever) if that is what you are asking for, but it will not be for PCCs, it will be for the content. Adding the PCC files would be a different endeavor.
Can you confirm if that the message about the LST to be loaded is actually what you are looking to achieve?