Page 1 of 1

BMP Button Question

PostPosted: Fri Jan 31, 2020 9:36 am
by jrball
Button bmp files in HauptwerkStandardImages are used in HW Sample 2, for example.
If these same files are used in identical manner in a new CODM various errors occur, such as:
"Could not load the bitmap image file ... the specified mask bitmap has a different size" "Message code 4410"

Different size from what?
The TransparencyMaskFilename and Stagexx_ImageFilename fields have only ">=96" as constraints.
The Mask and two Button bmp files are consistent, each being 38x39 pixels.
Are there hidden validation constraints or interactions for these fields, even in other non-related tables?

Re: BMP Button Question

PostPosted: Sat Feb 01, 2020 7:32 am
by mdyde
Hello jrball,

For any given CustomDisplayControlStyle the size of the .bmp specified by the Image_TransparencyMaskFilename attribute needs to be identical to that of every one of the specified Image_StageNN_ImageFilename attributes. I.e. all specifed stages' .bmp files need to have the same size as the specified mask.

If you're certain that's definitely the case (e.g. because you copied the whole CustomDisplayControlStyle object exactly from the CODM ODF of 'example custom organ 2'), then note that you can also get that error if you change a CODM ODF but its OrganID isn't unique and/or when loading it (via 'Design tools | Load custom organ') you didn't tell Hauptwerk that the organ's cache needed to be regenerated.

Image files are stored (along with audio samples) in organ caches, to allow faster loading. However, if you change anything in your ODF that relates to images or samples, then you need to make sure that when you use 'Design tools | Load custom organ' you have both of the following options ticked, so that Hauptwerk knows that the cache is no longer valid (because of the changes made in the ODF) and so needs to be regenerated:

- Force source samples to be loaded, bypassing the sample set cache
- Force source images to be loaded, bypassing the sample set cache

(If those options aren't ticked then Hauptwerk will by default read the images from the existing sample set cache, which may result in images being loaded that are no longer the intended ones for your changed ODF.)

(There's an old topic on the subject here: viewtopic.php?f=13&t=5190 .)

Re: BMP Button Question

PostPosted: Sun Feb 02, 2020 10:44 am
by jrball
Thank you Martin.
Missing obvious details - must be my old age showing?

Re: BMP Button Question

PostPosted: Mon Feb 03, 2020 4:45 am
by mdyde
Thanks, jrball.

No problem. You're welcome. Glad it helped.