Skip to content
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

Colors are not being generated when using bitmap fonts #35939

Open
JoeFreeman-Adv opened this issue Dec 7, 2019 · 8 comments
Open

Colors are not being generated when using bitmap fonts #35939

JoeFreeman-Adv opened this issue Dec 7, 2019 · 8 comments
Labels
<Bug> This needs to be fixed SDL: Tiles / Sound Tiles visual interface and sounds.

Comments

@JoeFreeman-Adv
Copy link

Describe the bug

When using bitmaps in place of font files colors are only being partly generated (background colors appear to be working) - everything else is in black and white.

This seems to happen on Mac and Android. (According to discord - see links down below)

Steps To Reproduce

Placing .bmp or .png file into the data/font folder and entering the corresponding file name into font.json. Open the game.

Expected behavior

Fonts are being generated from bitmaps with the full range of colors.

Screenshots

Ingame:
Screenshot_JoeFreeman

Color menu:
Screenshot_colors_Joe

Versions and configuration

  • OS: macOS Mojave Version 10.14.6
  • Game Version: 0.D-9868-gf04c6d5815
  • Graphics version: Tiles
  • Mods loaded: no mods, bug occures when starting the game

Additional context

The issue has been reported by several people on discord, twice on Mac OS and once on Android.

1.: https://discordapp.com/channels/598523535169945603/598529538015887372/650983242392010753
2.:https://discordapp.com/channels/598523535169945603/642349261320880128/652738883863183362
3.: https://discourse.cataclysmdda.org/t/color-generation-of-image-fonts/22165

I've included my debug.log:
debug.log

@ZhilkinSerg
Copy link
Contributor

Did you try using your font in older versions? Is it working there?

@JoeFreeman-Adv
Copy link
Author

Yes, I've tried the latest stable version. Same problem:

JoeFreeman_stable

I've also used several image files. For example the one included in the new Overmap Mod by @Larwck to rule out a issue with the files.

@ZhilkinSerg
Copy link
Contributor

What about more distant versions - e.g 0.C stable or 0.B stable?

@JoeFreeman-Adv
Copy link
Author

I'm having a hard time finding a version of 0.C stable or 0.B stable that works on my Mac. I tried to compile it myself but I'm getting a bunch of errors.

@JoeFreeman-Adv
Copy link
Author

Because I couldn't compile the older versions of the game myself I found and downloaded this one:
0.C-E006

Still the same bug:

Joe Freeman_OC

@ZhilkinSerg
Copy link
Contributor

That is good. It is not some recent regression then.

@kevingranade
Copy link
Member

This issue has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/trouble-with-graphical-overmap/22435/7

@JoeFreeman-Adv
Copy link
Author

I just checked if anything has changed, but the bug still persists.

Bildschirmfoto 2020-08-24 um 22 53 43

The sidebar is rendered using a truetype font and is working just fine. Using a .png for the actual map and overmap however still doesn't work. Colors are only being partially generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

No branches or pull requests

4 participants