Opened 3 years ago
Closed 3 years ago
#12764 closed defect (fixed)
AGS: Lamplight City - pencil and calender puzzle apparently does not work.
Reported by: | Sslaxx | Owned by: | dreammaster |
---|---|---|---|
Priority: | high | Component: | Engine: AGS |
Version: | Keywords: | ||
Cc: | Game: |
Description
Lamplight City version 1.12 (last version on Steam), on Linux. ScummVM build 2.3.0git21136.
The puzzle in case 5, where you have to uncover calender dates using a pencil, appears to be faulty. It seems to work for one of the dates, but the other cannot be made to trigger no matter how much you "draw" over the top of the calender.
Attachments (2)
Change History (11)
by , 3 years ago
Attachment: | lamplightcity.000.7z added |
---|
comment:2 by , 3 years ago
Priority: | normal → high |
---|
follow-up: 4 comment:3 by , 3 years ago
Hmmm.. do you have a savegame from before you started drawing? That way I can try it in an earlier version to see the first date triggering, and compare it to why it's not triggering now. That should help me zero in on what changed.
comment:4 by , 3 years ago
Replying to dreammaster:
Hmmm.. do you have a savegame from before you started drawing? That way I can try it in an earlier version to see the first date triggering, and compare it to why it's not triggering now. That should help me zero in on what changed.
Well, I found that on one occasion I could get neither to trigger, trying it again one did trigger but not the other, so I'm not sure how consistently reproducible this bug is.
follow-up: 6 comment:5 by , 3 years ago
Well, as I said, any savegame just prior to the puzzle will be helpful in investigating the matter further.
comment:6 by , 3 years ago
Replying to dreammaster:
Well, as I said, any savegame just prior to the puzzle will be helpful in investigating the matter further.
Going to add one, hope it helps.
by , 3 years ago
Attachment: | lamplightcity.011.7z added |
---|
comment:7 by , 3 years ago
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.
comment:8 by , 3 years ago
Summary: | Lamplight City - pencil and calender puzzle apparently does not work. → AGS: Lamplight City - pencil and calender puzzle apparently does not work. |
---|
comment:9 by , 3 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed. The blending now precisely replicates the original, and both days on the calendar are triggered when completely darkened
As of git21438 this no longer seems to trigger anything at all; no matter how much you "draw" on top of the calender, neither event triggers.