Topics

6.07.09 Bug?

Will Dover
 

Got the following when trying to view the Character Sheet tab:

Unable to process sheet
java.util.concurrent.ExecutionException: pcgen.io.ExportException: Error exporting character using template Q:\PCGen\6.07.09\preview\d20\starfinder\Standard.htm.ftl : Can't convert this string to number: "" The blamed expression: ==> pcstring('WEAPONH.TOTALHIT')?keep_before("/")?number [in template "Standard.htm.ftl" at line 699, column 24] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign fab = pcstring("WEAPONH.TOTAL... [in template "Standard.htm.ftl" at line 699, column 9] ----

Where do you want me to report it? This is also affecting printing and exports.

As it stands now, I cannot use this release as much as there are nice things about it.

Andrew Maitland
 

There is a replacement file [https://github.com/PCGen/pcgen/releases/download/6.07.09/Standard.htm.ftl] on Github where you downloaded the 6.07.09 release that fixes the Starfinder sheet bug.

Cheers,

Andrew


On 10/22/2018 2:58 PM, aeontrin@... [pcgen] wrote:
Got the following when trying to view the Character Sheet tab:

Unable to process sheet
java.util.concurrent.ExecutionException: pcgen.io.ExportException: Error exporting character using template Q:\PCGen\6.07.09\preview\d20\starfinder\Standard.htm.ftl : Can't convert this string to number: "" The blamed expression: ==> pcstring('WEAPONH.TOTALHIT')?keep_before("/")?number [in template "Standard.htm.ftl" at line 699, column 24] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign fab = pcstring("WEAPONH.TOTAL... [in template "Standard.htm.ftl" at line 699, column 9] ----

Where do you want me to report it? This is also affecting printing and exports.

As it stands now, I cannot use this release as much as there are nice things about it.

Will Dover
 

Thanks! Will be applying it ASAP.

Brian
 

Andrew,
That file works for the preview on the Character Sheet tab, but exporting is still broken.  I opened OS-514 for the exporting issue.

Thanks,
Brian

Will Dover
 

Preview works now. Export does not work.  Looks like the issue is related to unarmed attacks in system\gameModes\Starfinder\base.xml.ftl, line 775:

<#assign fab = pcstring('WEAPONH.TOTALHIT')?keep_before("/")?number>

My guess is that WEAPONH.TOTALHIT is an invalid string, possibly an empty string, which blows the number parse. This line is the same in the 6.07.08 version so the WEAPONH.TOTALHIT calculation may be broken in 6.07.09.

I changed the line to this:

<#assign fab = pcstring('WEAPONH.TOTALHIT')?keep_before("/")>

Afterward, export worked. I don't have values in the Unarmed Section, but I can add an Unarmed Strike equipment to get the values on the sheet. Still a bug, but with a workaround.

Thanks for the assistance!

Will Dover
 

Log also has this stack trace with the export.

13:51:16.348 SEVERE SwingWorker-pool-2-thread-2 ExportHandler:1988 Error replacing WEAPONH.TOTALHIT
java.lang.NullPointerException
    at pcgen.core.Equipment.getEffectiveWieldCategory(Equipment.java:5183)
    at pcgen.core.Equipment.isWeaponTwoHanded(Equipment.java:5099)
    at pcgen.io.exporttoken.WeaponToken.getToHit(WeaponToken.java:1802)
    at pcgen.io.exporttoken.WeaponToken.getTotalHitToken(WeaponToken.java:1623)
    at pcgen.io.exporttoken.WeaponToken.getWeaponToken(WeaponToken.java:396)
    at pcgen.io.exporttoken.WeaponhToken.getToken(WeaponhToken.java:86)
    at pcgen.io.ExportHandler.replaceToken(ExportHandler.java:1957)
    at pcgen.io.freemarker.CharacterExportAction.getExportVariable(CharacterExportAction.java:50)
    at pcgen.io.freemarker.PCStringDirective.exec(PCStringDirective.java:99)
    at freemarker.core.MethodCall._eval(MethodCall.java:65)
    at freemarker.core.Expression.eval(Expression.java:83)
    at freemarker.core.Expression.evalAndCoerceToStringOrUnsupportedMarkup(Expression.java:123)
    at freemarker.core.BuiltInForString.getTargetString(BuiltInForString.java:34)
    at freemarker.core.BuiltInForString._eval(BuiltInForString.java:29)
    at freemarker.core.Expression.eval(Expression.java:83)
    at freemarker.core.MethodCall._eval(MethodCall.java:58)
    at freemarker.core.Expression.eval(Expression.java:83)
    at freemarker.core.Assignment.accept(Assignment.java:134)
    at freemarker.core.Environment.visit(Environment.java:330)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.visit(Environment.java:336)
    at freemarker.core.Environment.process(Environment.java:309)
    at freemarker.template.Template.process(Template.java:384)
    at pcgen.io.ExportHandler.exportCharacterUsingFreemarker(ExportHandler.java:333)
    at pcgen.io.ExportHandler.write(ExportHandler.java:222)
    at pcgen.gui2.facade.CharacterFacadeImpl.export(CharacterFacadeImpl.java:2676)
    at pcgen.system.BatchExporter.exportCharacter(BatchExporter.java:514)
    at pcgen.system.BatchExporter.exportCharacter(BatchExporter.java:494)
    at pcgen.system.BatchExporter.exportCharacterToPDF(BatchExporter.java:227)
    at pcgen.gui2.dialog.ExportDialog$PDFExporter.doInBackground(ExportDialog.java:583)
    at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)