Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Bug/Patch Discussion => Topic started by: dino on March 27, 2019, 10:22:54 PM

Title: Spartan labels display glitch
Post by: dino on March 27, 2019, 10:22:54 PM
I have a display error when Spartan labels text next to units/bases ( unit orders, bases size ) are ampty black rectangles.
The fonts is rendered black instead of white, so it's invisible on the black backround. Anyone else had this issue ?
Title: Re: Spartan labels display glitch
Post by: Vidsek on March 28, 2019, 12:02:22 AM
    Yes, I've seen the same thing.  A bit frustrating.
Title: Re: Spartan labels display glitch
Post by: scient on March 28, 2019, 01:02:31 AM
Does a reload fix this? And if not, got a saved game you could upload? I have poked around the Font engine class a little bit and might be able to see the issue.
Title: Re: Spartan labels display glitch
Post by: dino on March 28, 2019, 06:45:51 AM
OK, I think I've found the source of the issue. It seems that white font for Sparta is hardcoded and applied only for a faction called SPARTANS that is in the FACTIONS# section of the alphax.txt.

I've made a mod where original factions where replaced with "faction_ai" with ai buffs and NEWFACTIONS# where replaced with unmodified original seven, for me to pick from.
So SPARTANS_AI didn't work because of the name and SPARTANS didn't work because of wrong section. Basically you can't have custom faction with black theme.
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 15.

[Show Queries]