Player icon indicating copy to clipboard operation
Player copied to clipboard

Maniacs Patch - SetPicturePixel Command + GetPictureInfo Update

Open jetrotal opened this issue 1 month ago • 1 comments

Another one that must come in pairs:

SetPicturePixel Command

Implements the CommandManiacSetPicturePixel function to allow direct pixel manipulation of game pictures via event commands. Handles bitmap uniqueness, format conversion, and window picture detachment to ensure safe editing. Updates command dispatch logic and header declaration.


Update - GetPictureInfo (pixel data extraction)

Adds support for extracting raw pixel data from pictures, including window-type pictures with forced refresh. Optimizes out-of-bounds handling to preserve variable values and ensures only 32-bit bitmaps are processed. Existing logic for info types 0, 1, and 2 remains unchanged.


TODO:

  • Save persistence
  • Few Quirks that I could not figure out, e.g.: I assumed some opacity changes between maniacs and easyRPG were due to out of bounds color picking. But I was wrong, someone smarter than me could help me with that.

Map0003.zip

jetrotal avatar Dec 07 '25 01:12 jetrotal

Also supporting game Info pixels, test map: Map0003.zip

jetrotal avatar Dec 09 '25 21:12 jetrotal