fceux icon indicating copy to clipboard operation
fceux copied to clipboard

2001 register affects Lua GUI Library colors

Open cyneprepou4uk opened this issue 1 year ago • 1 comments

Describe the bug Bits 5-7 of 2001 PPU register change script colors on the screen.

To Reproduce Steps to reproduce the behavior:

  1. Open Felix the Cat game (it has bits 5-7 set)
  2. Open attached Lua script lua color test.lua.zip

Expected behavior At the screenshot, expected is on the left, and current is on the right 111

(please complete the following information): Windows 7 (64-bit), FCEUX 2.6.6 (32-bit), non-QT

Additional context My old EXE files suggest that this issue was introduced somewhere between r3145 and r3155 versions. It was normal in r3145, and colors changed in r3155. Unfortunately I don't have any more EXE in between this versions to pinpoint the exact one.

In r3145 version 2001 register doesn't affect script colors, but in current 2.6.6 versions colors restore back to normal once you disable bits 5-7. You can add AOUGSOEN Game Genie cheat and reset the game, or change value at 0011 RAM address while playing it (from FE to 1E at the title screen, for example).

cyneprepou4uk avatar Jan 24 '24 23:01 cyneprepou4uk

For the life of me I could not figure out how to define colors correctly in LUA! ;)

Glad to see it is not entirely my error for a change. Hope this will get corrected soon since it also seems to affect other gui.draw functions.

BeholdersEye avatar Dec 14 '25 05:12 BeholdersEye