-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magic pink won't become transparent on macOS (both Intel and ARM64) #431
Comments
@naymapl wrote:
That would fix the pink, and give you correct physics. If you want it really fast, you could, in theory, go through the tiles in Even replacing pink with transparency in the image files would still leave the wrongly-colored symbols on the buttons, but those aren't as important. Lix 0.9.42 should, by itself, replace the pink with transparency and recolor the button symbols, but it doesn't. I've already investigated the source roughly: Allegro 5 and the addons are initialized, and I compute the colors with But this is the first time that somebody is running Lix on macOS ARM64. Anything might be the problem. I'll investigate. |
Ok - now is working - I maybye use wrong file name ;) |
Is it any way to make it bulk ? It so many images to make one by one :D https://graphicdesign.stackexchange.com/questions/16120/batch-replacing-color-with-transparency I found this but no idea how run this with LixD images. |
Lix images are normal PNGs with alpha. Assuming you have ImageMagick 7.x installed, here's a loop:
Still looking for the problem in Lix or Allegro on macOS ARM64. What I do in Lix should work on all systems. Really makes me wonder... |
(Sorry for late reply.) Great to hear that you can play singleplayer well! I'll keep this workaround in mind then -- the shell loop to recolor all graphics. The in-game recoloring still fails for the button icons. But the grey button icons (instead of pale blue) aren't a problem for singleplayer playability. You can still tell what's what. But in multiplayer, you'd have 8 identical-looking player colors instead of 8 different lix colors. This would be more serious, you wouldn't be able to tell apart lix of different players. Thus, I won't close this bug yet. |
Thanks for the report that this bug manifests on the Intel Mac! I haven't investigated since March 2022, but it's getting more important again. Lix is largely unplayable on all Macs until we mass-replace the pink with the shell loop, and even then, the UI elements remain unrecolored. |
My new year's resolution for 2023 is to solve this recoloring bug. I still don't have a Mac, but I have a first theory for you to test:
Do the levels from your earlier screenshots (Beneath the Lab, or the basher tutorial) still show the pink rectangles? |
@cameo69, please post the output of E.g., naymapl on ARM had |
Workaround: Mass-replace the magic pink with proper transparency. You need ImageMagick 7.x installed. Open a shell, navigate to Lix's directory, then run:
Originally reported by naymapl in #430:
Lix 0.9.42 builds and runs on Mac mini m1 that runs macOS ARM64. (We had to edit
dub.json
as in #430.) Some graphics have problems:cameo69 reports that this same bug also manifests on an Intel Mac.
The text was updated successfully, but these errors were encountered: