Error and failure to export maps to jpg's etc

32 views
Skip to first unread message

ian humes

unread,
Jan 13, 2020, 1:57:14 PM1/13/20
to MapForge User Group
Hi Folks

I have installed MF v1.1.4 and am using Windows 10 Enterprise 64-bit and 32gb ram, the shortcut is NOT set to run in compatibility mode or as administrator as these cause other problems which I haven't been able to work around...

I have created a map using only the Jade Halls tiles that is 100x100 grid with 100 pixels per grid, i am using a square grid colored black with 50% opacity.

When I select Export Map from the pull down menu I get the Export Bitmap Window as expected with Include Grid Overlay and Include GM-only Info ticked (all other options un-ticked).  The resolution is set to 100 pixels (same as my grid setting).  When I click ok the following happens, the dialog shows that something is happening as the progress bar fills up.  Then the save as dialog appears and i can name the file.  When i click ok i get the following errors dialogs

Problem copying temp file, error code 1

Problem saving the map image. error 181

There was a problem resizing the canvas.

After which I am returned to the Export screen.  If however I un-tick the Include Grid Overlay the file exports... huh?

Changing the settings in the shortcut to compatibility mode and to run as administrator creates a script error which asks if i want to continue, Yes gives me the above messages and no exits the program.  The reason i am not currently using the admin and compatibility is because it still fails even if i un-tick Include Grid Overlay and I cant export any maps and the grid only covers part of the screen when i am trying to build my maps. 

I have a messy workaround but would be interested if there is a better fix. 

All the best


Heruca

unread,
Jan 13, 2020, 2:27:43 PM1/13/20
to MapForge User Group
Ian,

The failure to export with a grid overlay is a bug which I've already found and fixed for v1.1.5, which I'm hoping to release this Friday. If you really need the fix before then, I can try to create a patch for v1.1.4 tomorrow.

MapForge needs read & write permission in its folder in order to create and later access cache files, search tags, etc, which is the reason the app can't reside in the Programs directory and has to be run as Admin. Can you provide more info on the exact error it throws when you run as admin?

By the way, are you actually using the full 100x100 grid square area? If not, I suggest you make the map canvas smaller so that the app isn't needlessly running at near-maximum capacity.

ian humes

unread,
Jan 14, 2020, 2:30:44 AM1/14/20
to MapForge User Group
Hi  Heruca,

Good to know that you have already caught this one.  There is no great rush to fix this as i'm still copying across the floor plans so can wait for the full patch.

I have installed MF in C:/documents/MapForge and made sure it wasn't in the Programs directory so have full access to the folder.  If I set the icon to run as admin and in compatibility (A&C) mode for vista  sp2 i get the following errors.

Opening the large map only shows the top left 50x50 squares and I have to change the grid layout to a to Huge for 110x110 then back to Large for 100x100 to get it to draw the rest of the grid (this happens even if i don't run in A&C mode but just thought i should mention it).

After getting the 100x100 file to display the grid only show the 50x50 that it opened with.  If not running A&C then the grid covers the full map area.

When i try and export the map via File>export map as a jpeg and turn off both Grid Overlay and Include GM only info the progress bar runs and the file save dialog opens.  When I give it a name and click save I get the following error messages

There was a problem copying temp file.  Error code 1

There was a problem saving the map error code 181.  export time 62.2 seconds

And I get no map saved no matter which file type i choose.



If I leave Grid Overlay and Include GM info ticked then after the progress bar completes i get the following error

Four parameters expected.  Script error continue?  Yes/No

If i click no then MF exits and if i click yes then i get a blue circular "im doing stuff" tool which just spins.  Task manager shows that MF is using 0.8% of my cpu and that's all that happens until i cancel it on the export maps dialog and yet again no map output.

So by not using A&C i at least get some output.



The reason that i'm using a 100x100 grid is because i'm creating a large catacomb under my city of 60k people based upon real world catacombs.  So im building the sections that are orthoginal to themselves individually and then joining them to the next piece which is at a different angle in photoshop.  Once it is complete I will cut it up into sensible sized chunks for use with roll20 etc...  I could use smaller pieces if that solved some of the above problems but would mean more stitching in photoshop.

All the best and looking forward to your reply.






Heruca

unread,
Jan 14, 2020, 8:45:51 AM1/14/20
to MapForge User Group
Vista mode should be avoided at all costs, as noted in the "Technical Tips" section of the Downloads page.

What is "A&C mode"?

ian humes

unread,
Jan 14, 2020, 11:11:21 AM1/14/20
to MapForge User Group
Hi Heruca,

thanks very much for takingthe time to try and get this sorted.

A&C mode was as administrator and in compatibility mode.  I have swapped from Vista sp2 to Windows 8 and i still get the grid appearing on only the top left 50x50 squares (a minor problem but i'm mentioning it in case it helps to solve the issue).

Export with grid overlay and Gm-only info unticked, progress bar completes, file save as dialog

There was a problem copying a temp file.  Error code 1

there was a problem saving the map image error 181.  Export time 59 seconds

Windows 7 gives the same error messages, windows xp, 98/me & 95 all lose the licence and resizes the pixel count to 50/grid (98 and 95 then also then crash)

Though i accept that vista should be avoided after trying all the other options its currently the only one that manages to save a file even if it does have issues.

What else would you like me to try

Heruca

unread,
Jan 14, 2020, 11:31:45 AM1/14/20
to MapForge User Group
Well, changing the compatibility mode will have caused your Challenge Code to change, which in turn has caused the app to revert to Unlicensed, so the max map size for the unlicensed app will have reverted to 50x50 grid cells.

What you need to do, once you've settled on a non-Vista mode, is to send me your new Challenge Code so that I can reissue all your codes.
Reply all
Reply to author
Forward
0 new messages