moo-man / FVTT-DD-Import

Allows Importing Dungeondraft map files into FoundryVTT
MIT License
59 stars 27 forks source link

Unexpected end of JSON input #135

Closed CatbotTsumi closed 1 year ago

CatbotTsumi commented 1 year ago

Trying to import a dd2vtt file i made with dungeondraft into FoundryVTT using the module, but when i try it says: Error Importing: SyntaxError: Unexpected end of JSON input I've been on a break, but i've imported many maps over the last years without problems. i'm not sure whats wrong now. I tried re-exporting but it has the same problem.

moo-man commented 1 year ago

How large is the file? Can you provide it?

CatbotTsumi commented 1 year ago

Highcliff-3010.dd2vtt 552 MB, file hosted on Drive (I know i make big maps, i've made bigger maps than this without issues)

moo-man commented 1 year ago

That... is the largest file I've seen somebody try to import...

You might've been able to before but that is simply impractical in every aspect from network speeds to your GPUs max texture sizes. Reduce the PPI of the grid first off, Foundry can go as low as 50.

I'm just going to close this because it is wildly outside expectations.

CatbotTsumi commented 1 year ago

Oh i just remembered i did something wrong. I'm not supposed to export the dd2vtt at 150 grid ppi. I'm supposed to do it at 100 and generate a webp at higher ppi for quality. That is on me, and it seems to work now!

However, i do not agree with denying people to make bigger maps if they know what they're doing. I know my player's webgl limits and they load into the maps without problems, i've been doing this for almost 4 years this way. Its my way of how i do my games. It's just been a while since i last made a map so i forgot this one step. Oops~!

moo-man commented 1 year ago

Glad it works! I wouldn't say I'm denying anything, but when someone pushes beyond practical limits, there's not much I can do to really help. Whether it works or not depends wildly on how their game is set up, their hardware, and their connection speeds, and probably even more variables.