ID:77063
 
Resolved
Fixed in 447
BYOND Version:446
Operating System:Windows XP Home
Web Browser:Firefox 3.0.11
Status: Resolved (447)

This issue has been resolved.
Descriptive Problem Summary:
Projects compiled with BYOND 3.5 using large icons with null icon_state do not display the thumbnail (32x32 miniaturization of the icon) when executed with recent BYOND versions (at least as early as 442.)

Numbered Steps to Reproduce Problem:
1) Create an icon larger than 32x32.
2) Assign the icon to a turf with icon_state = null or "".
3) Compile in BYOND 3.5.
4) Run the project in BYOND 442 or later.
5) Place the turf on the map at runtime.


Code Snippet (if applicable) to Reproduce Problem:
world
maxx = 10
maxy = 10

area
icon = 'grid.dmi' // for visibility
Click(turf/Loc)
if(istype(Loc))
new/turf/test(Loc)
world << "[Loc] placed at [Loc.x], [Loc.y]."

turf/test
icon = 'DDcircle.png' // 160 x 160 png image


Expected Results:
Display a 32x32 miniaturized thumbnail of the icon.

Actual Results:
No icon display.

Does the problem occur:
Every time? Or how often? Every time I host Darke Dungeon with a recent BYOND version.
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur? Projects compiled in recent BYOND versions work properly.

Workarounds:
Recompile in BYOND 446.
Ah, this is due to a behavior change that was added to deal with the fact that Last Robot Standing had display issues due to the old-style .png files it was using and the difference in large-image behavior between 3.0 and 4.0. However the lack of a thumbnail icon was an oversight. This can be fixed.