Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

MPMB to FoundryVTT

Easily move your D&D characters to FoundryVTT · By BlackDragonBE

Conversion Errors

A topic by tnkrnt created Apr 10, 2023 Views: 183 Replies: 7
Viewing posts 1 to 5
  • Bug description: Created a character and exported it, but got the following error from the application after pasting and clicking Convert to FoundryVTT Actor-
Something went wrong while trying to convert the XFDF data:
Object reference not set to an instance of an object.
   at MPMB_PDF_to_FoundryVTT.CSharp._5eTools.FiveClassDataLoader.LoadDataForClass(String className) in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\5eTools\FiveClassDataLoader.cs:line 26
   at MPMB_PDF_to_FoundryVTT.CSharp.Converters.MpmbToFoundryConverter.ConvertCharacterClassesAsync() in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\Converters\MpmbToFoundryConverter.cs:line 903
   at MPMB_PDF_to_FoundryVTT.CSharp.Converters.MpmbToFoundryConverter.Convert(MPMBCHaracterData mpmbCharacterData, FoundryCharacterData foundryTemplateData, MainWindow mainWindow) in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\Converters\MpmbToFoundryConverter.cs:line 41
   at MainWindow.LoadXFDFFromTextAsync() in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\MainWindow.cs:line 347
  • Application Version : 1.1.4
  • PDF Version:  13.1.5 Printer Friendly Version
  • Foundry VTT Version 10 build 291
  • D&D 5th edition system version 2.1.5
  • XFDF Link: https://pastebin.com/NCSDMAwx

I've been having trouble with several character sheets that I'm trying to convert.  This error keeps coming up with them.  Other characters made with the same starting sheet have worked just fine.  It's consistently the same few that don't work.  I started to tweak one element at a time to try to find the culprit, but I couldn't isolate anything specific.  I was having the same issue with the 13.1.0 PDF and just tried it again with the newest version.  Still having the same issue.

Thanks for reporting this bug, I'll take a look and try to resolve the issue as fast as possible.

Hi, it seems to be an issue with the class name. The class name is set as "Atrificer - Armorer 5, while the correct spelling is "Artificer". The converter reads this name and tries to match it to a database of known classes, that's why it's failing.

Can you correct the class name and let me know if the issue persists? Thanks!

I did correct the spelling (after face palming myself for making the mistake in the first place).  I also tried leaving the default values created by the PDF. I get the same error.

Can you send me the XFDF after correcting the class name? I can't seem to reproduce the issue after manually changing the class name in the XFDF you linked. 

I somehow managed to get the sheet working by starting it over from scratch.  Thank you for looking into it and finding my spelling error.  I did find very specifically that using the background "Pirate" causes an issue though (it happened on 2 different character sheets).  

No problem. I'll check if there's an issue with the Pirate background.

I can confirm there's was something wrong with some classes, including Pirate. I'm working on v1.1.5, which will fix that issue.

moved this topic to Issues (closed)