Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

MPMB to FoundryVTT

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

Conversion errors

A topic by angelo_genovese created Apr 02, 2023 Views: 251 Replies: 6
Viewing posts 1 to 7

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.Converters.MpmbToFoundryConverter.ConvertBio() in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\Converters\MpmbToFoundryConverter.cs:line 1042    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 54    at MainWindow.LoadXFDFFromTextAsync() in U:\Godot\Projects\2022\MPMB_PDF_to_FoundryVTT\CSharp\MainWindow.cs:line 347

  • Application version: 1.1.3
  • PDF version: 13.1.4 - Colorful - Letter
  • Foundry VTT Version 10 build 291
  • D&D 5th edition system version 2.1.5
  • XFDF link: https://pastebin.com/6m8aJA81

I'm just messing around with transitioning over to FVTT from Roll20, and it's been years since I used the MPMB sheet, so my apologies if I missed something obvious.

I managed to get a character to export earlier but had issues importing. I saved the exported json file but didn't hang on to the pdf or the XFDF as I was messing around. On attempting to import I get a validation error printed out to the browser's console

Stack Trace: https://pastebin.com/39FpXspW
Json file: https://pastebin.com/wxQpjrib

I'll keep trying to get to the point where I can reproduce this and provide the XFDF and JSON files if I manage, if there;s any info I've missed that would be helpful, please let me know.

Thanks for creating this bug report. I'll troubleshoot as soon as possible and I'll let you know my findings. I can already tell from the Foundry stack trace some values for a tool are missing, causing the import to fail. 

(1 edit)

I've managed to convert Bob. The issue was that his History field was empty causing it throw an exception. I've made the Bio converting more lenient to fix this issue. I've tested the JSON export and it seems to be working as intended in FoundryVTT. I'll include the fix in version 1.1.4.

In the meantime, you can download the JSON for Bob here: https://pastebin.com/qjbY2SB

I'll try to fix the import error soon as well, I think I might have enough info with just the JSON and the stack trace you provided, but if you do have the XFDF, that's welcome too.

Thanks for looking at it. unfortunately, I haven't been able to reproduce it but I'll keep poking at it when I have some free time.

I've released version 1.1.4, which includes several fixes that should prevent the errors you were getting in the converter and in Foundry. Let me know if the new version works better for you.

(+1)

That worked, thanks again for looking at it.

You're welcome!
Issue resolved in v1.1.4.

moved this topic to Issues (closed)