You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the bad version. the menu on the right and the top stats bar which
are normal transparent black shade are blue background. The black
undiscovered areas, which are normally solid black, are now solid
blue. The blackish fog out when an area is out of view of
buildings/units is now a transparent blue instead of black. Also
notice that all units and buildings, where normally pink, are orange.
The bar above the main building (Swarm) should have white dots, the
bar to its left should have yellow dots, the bar below it should have
green dots. All three bars are blue. The small pink areas over the
resources called wheat are actually meant to be red.
There are quite a few other issues throughout the game menus and other screens.
Smaller example?
I emailed one of the devs of the game, who said that, given the custom graphics lib we use (called libgag - http://hg.globulation2.org/glob2-new/file/default/libgag ) it won't be
trivial to find the exact code causing the issue for you to test. And as mentioned earlier, I'm not a c++ dev so please don't ask. Just compile/run the game, and if it gives the same error, something somewhere is doing something it shouldn't.
On 2009-10-16 21:59:06 +0000, Sam Lantinga wrote:
I haven't been able to build it, but I think the problem is in these functions:
// Color
Uint32 Color::pack() const
{
return (SDL_MapRGB(&_glFormat, r, g, b) & 0x00ffffff) | (a << 24);
}
void Color::unpack(const Uint32 packedValue)
{
SDL_GetRGB(packedValue, &_glFormat, &r, &g, &b);
a = packedValue >> 24;
}
They assume that the alpha is in the high bits, which isn't necessarily the case. I believe they want to use SDL_MapRGBA() and SDL_GetRGBA() instead.
On 2009-10-16 22:10:49 +0000, Kieran P wrote:
(In reply to comment # 1)
I haven't been able to build it, but I think the problem is in these functions:
The mac scons scripts looks for libraries in /opt/local. Will probably need to add /usr and /usr/local at some point. You can just do a find and replace of /opt/local in SConstruct with the prefix where boost etc are installed.
// Color
Uint32 Color::pack() const
{
return (SDL_MapRGB(&_glFormat, r, g, b) & 0x00ffffff) | (a <<
They assume that the alpha is in the high bits, which isn't necessarily the
case. I believe they want to use SDL_MapRGBA() and SDL_GetRGBA() instead.
Are you able to provide a quick diff for testing please? As I stated earlier, I don't know c++ myself, and given the release of this version within a day or two, it would be good to get this sorted beforehand.
On 2009-10-16 22:28:15 +0000, Sam Lantinga wrote:
Created attachment 420
Fix for Globulation 2
On 2009-10-16 22:29:36 +0000, Sam Lantinga wrote:
Yep this was a bug in Globulation where it assumed that the alpha channel was in the high bits. I suspect all of the other windowed color issues on Snow Leopard will be the same thing.
On 2009-10-16 22:45:04 +0000, Kieran P wrote:
(In reply to comment # 4)
Yep this was a bug in Globulation where it assumed that the alpha channel was
in the high bits. I suspect all of the other windowed color issues on Snow
Leopard will be the same thing.
Hmm, there are still some graphics issues, though thankfully not as much now :-D
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 1.2.14
Reported for operating system, platform: Mac OS X 10.6, x86_64
Comments on the original bug report:
On 2009-10-16 12:35:09 +0000, Kieran P wrote:
On 2009-10-16 21:59:06 +0000, Sam Lantinga wrote:
On 2009-10-16 22:10:49 +0000, Kieran P wrote:
On 2009-10-16 22:28:15 +0000, Sam Lantinga wrote:
On 2009-10-16 22:29:36 +0000, Sam Lantinga wrote:
On 2009-10-16 22:45:04 +0000, Kieran P wrote:
On 2009-10-16 22:50:29 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: