[Scummvm-tracker] [ScummVM :: Bugs] #12764: Lamplight City - pencil and calender puzzle apparently does not work.

ScummVM :: Bugs trac at scummvm.org
Thu Aug 12 05:41:15 UTC 2021


#12764: Lamplight City - pencil and calender puzzle apparently does not work.
-------------------+--------------------------
Reporter:  Sslaxx  |       Owner:  (none)
    Type:  defect  |      Status:  new
Priority:  high    |   Component:  Engine: AGS
 Version:          |  Resolution:
Keywords:          |        Game:
-------------------+--------------------------
Comment (by dreammaster):

 It has thanks. It took me a little while, because I was getting crashes on
 the standalone AGS interpreter, and couldn't do comparisons, but I've
 resolved it, and now can.

 I narrowed the problem. The script at offset 3428 calls
 Sc_DrawingSurface_GetPixel(x = 367, y = 288), and then compares the
 resulting rgb16 value to 8419 exactly. That's an incredibly specific
 color, and I guess it represents the shading resulting from blending the
 calendar background and the "pencil mark sprite" to gradually darken the
 calendar by specific increments. The trouble is that our current blending
 isn't 100% precisely equal to the original Allegro routine that AGS
 standalone uses, so doesn't reach that exact value.

 Fixing it will, I guess, tie into blending optimizations. At least that
 particular special case. I'll have to look into replicating the Allegro
 original routine exactly.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12764#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list