Numbered Steps to Reproduce Problem:
1. Make 1024x1024 PNG file
2. Attempt to use the code snippet a couple times in a loop
3. Get unexpected results
Code Snippet (if applicable) to Reproduce Problem:
var/icon/Tile = icon(file("mapbase.png"))
if (Tile.Width() != 1024|| Tile.Height() != 1024)
world.log << "<B>BASE IMAGE DIMENSIONS ARE NOT 1024x1024</B>"
NOTE: "mapbase.png" is a PNG file created with Macromedia Fireworks CS4 Educational. It is 1024x1024 pixels, all solid white. I used the normal save mode, not "Flattened PNG."
Expected Results:
1024x1024 icon to be created from 1024x1024 PNG
Actual Results:
Sporadic erroneous returns of a 32x32 icon instead
Does the problem occur:
Every time? Or how often?
Sporadically, but never the first time the icon(...) line is called
In other games?
Unknown
In other user accounts?
Unknown
On other computers?
Unknown
When does the problem NOT occur?
The first time (since closing and reopening Dream Daemon) that this line executes.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
This problem has been present since at least 464, when the DM code was written
Workarounds:
Restart server, try again.
If it is relevant, I can post the entire code file that the problem manifests in.