As a follow-on to my Larger Export Files
subject (and I don't see a dedicated Goblin section), I now have an issue running the script.
I now have a simple test script to export the loaded map to a JPG file.
At a width of 4000 pixels, it works. beyond, it fails.
The simple script:
expWidth = 5000
oDest = "c:\temp\apiexport.jpg"
oMap = GetCurrentMap()
oMap.SaveToGraphic oDest, expWidth, 0, 0, oMap.Width, oMap.Height
MsgBox ( "Image saved to " + oDest )
This fails with a VBScript error.
EOutOfResources: Not enough storage is available to process this command.
The same error occurs when I use the FM8 export function to export to JPG format.
(Running Windows XP, 3GB RAM, and the trial
version of FM8).