PDA

View Full Version : Graphic: Unable to load file (imagefilename.jpg) (modules/modfilename.mod)



sstarsslayer
July 6th, 2020, 06:08
When type searches in the Assets window, I sometimes get errors and the image preview is blank:
37448
FGU, 5E, Mac, no extensions
If I unzip and rezip the module, the errors for that one go away.
I checked the .mod's file permissions and even deleted the extended attributes but that didn't fix it.
I don't understand why rezipping some modules fixes this.
These are downloaded modules. I don't know the original zip method used.
eg Mordenkainen's_Lost_Notebook_(Fantasy_Grounds).mod

Example error messages:
Graphic: Unable to load file (Map - SkalintownMap.jpg) (modules/Nerzugals_Dungeon_Master_Toolkit_2.mod)
37446
37447
Logs attached

LordEntrails
July 6th, 2020, 16:42
This appears to be due to a zipping issue. FGC accepted some forms of zip files that FGU does not. If this is for FG Store modules (which it appears these are not) then posting in the 5E Bug Report thread. But, since these appear to be non-FG Store modules, you will have to reach out to the author of the modules and let them know they need to properly re-zip these files so they work with FGU.

sstarsslayer
July 7th, 2020, 06:17
I decided to try loading one of the broken modules.
You can see the module loaded but with no cover image:
37487
I'm able to load story records and NPC records but no image records from the modules. Upon opening an NPC, it gives the image error message as it fails to load the attached token. I would have expected not to be able to access any records if it was an unsupported compression or something like that. Strange.
The docs say "zip format" is supported which I guess isn't very specific so I'm not yet entirely sure what I would tell the module makers. https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4096121/Developer+Guide+-+Overview
The four that I have fixed so far by rezipping are:
Mordenkainen's Lost Notebook
Nerzugal's Dungeon Master Toolkit 2
Nerzugal's Extended Bestiary 2
The Stores Handbook
The preview images now load for these four, in addition to now being able to load images instead of only non-image records:
37486

LordEntrails
July 7th, 2020, 16:39
I'm not sure what the details on the zip file formatting is either. Hopefully someone else can provide more details.

Sulimo
July 7th, 2020, 16:47
That link shows what to use for .zip format (bold mine).


For creating single file delivery packages (.mod, .pak, .ext), you will need to be able to compress the files using the Zip format. You can create a compressed file using the Windows right click menu within File Explorer. Or, you can acquire a utility like 7-Zip to help.

Basically, select all of the files to be zipped (CTRL+A), then right click them and choose Send to, then Compressed (zipped) folder on Windows. This is a built in option of Windows (I think it was introduced in WinXP, but I forget exactly when it was first introduced).

The other option would be to use 7-zip if you prefer a different tool.

https://i.imgur.com/ZRgoY1O.png

It's possible the author was using some other tool that is not implementing the .zip format as FG expects.

Trenloe
July 7th, 2020, 17:00
Some info here: https://www.fantasygrounds.com/forums/showthread.php?45630-Engineer-Suite&p=497092&viewfull=1#post497092