UFO:Alien Invasion

Technical support => Mac => Topic started by: keybounce on July 10, 2009, 04:43:12 am

Title: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 10, 2009, 04:43:12 am
So I've posted some examples of how the map looks bad on PPC macs.

Today, I ran across something by accident. The map looks good when the window is not active, and covered by another window. Maybe.

The ufo window is updating and changing what is displayed when another window is active, and placed over it, and moving. And, the display in the UFO map changes based on what's in the moving window.

If I have a mostly white finder window, I get a brighter UFO map -- bright enough that it looks good. The problems seem to be one of brightness -- Ufo seems to want to normally make parts of the map darker, and that's what it does badly. For testing: Is there a way to force full brightness when playing?

Equally, when I move a window over, UFO acts like the map needs to be made brighter, and it works. But the brightness isn't constant.

If I move a mostly green window over, such as activity monitor, then the greenness shows up in the map.

Here's an attached picture that shows what's going on. Why Ufo would care about other windows, I don't know.
Title: tracking the map issue in past versions
Post by: keybounce on July 17, 2009, 02:14:43 am
Going back in history, trying to find out where the maps last worked on G4.

22268, with the "brush byteswap", does not display properly. This version was the first that was supposed to work from the command line.
Code: [Select]
Index: src/common/cmodel.c
===================================================================
--- src/common/cmodel.c (revision 22268)
+++ src/common/cmodel.c (working copy)
@@ -279,6 +279,16 @@
  out->firstbrushside = LittleLong(in->firstbrushside);
  out->numsides = LittleLong(in->numsides);
  out->contentFlags = LittleLong(in->contentFlags);
+
+ /* fix byteswap issue */
+ if (out->numsides > 500)
+ {
+ out->numsides = in->numsides;
+ out->contentFlags = in->contentFlags;
+ out->firstbrushside=in->firstbrushside;
+ }
+
+
  }
 }
 


Kleiman-ibook:trunk michael$ egrep lightmap ~/.ufoai/2.3-dev/base/keys.cfg
bind m "r_lightmap 1; r_deluxemap 0"
bind n "r_lightmap 0; r_deluxemap 1"
Kleiman-ibook:trunk michael$

Alright, I've got my lightmap toggles, right?

For whatever reason, half of that command adjusts the screen, and the other half goes into chat.

Pictures in two posts; it won't let me put them in one (claims too big)
Title: Re: tracking the map issue in past versions
Post by: keybounce on July 17, 2009, 02:17:38 am
And the colored version
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 18, 2009, 08:11:25 am
Happens on 2009-01-15 (21824).
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: Mattn on July 18, 2009, 11:36:38 am
Happens on 2009-01-15 (21824).

do you mean that this revision introduced it? because the revision you showed here is nothing renderer related: http://ufoai.svn.sourceforge.net/viewvc/ufoai?view=rev&revision=21824
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 18, 2009, 08:58:38 pm
Nope, still going backwards in time trying to find it.

Happens in -r20959 (2008-12-20) on Wilderness; that revision won't play an assembled map (africa).

Still trying to find when it works ...
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 22, 2009, 06:42:11 am
Present in 18605 (going back before 18829 when the shaders were changed).
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 23, 2009, 08:11:24 pm
Present in 17430 {2008-06-26}

Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: Mattn on July 23, 2009, 10:42:52 pm
looks like its quite old - thanks for your work to find out which revision broke this.
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 26, 2009, 05:52:26 pm
Revision {2008-04-10}, 16256, sometimes works, and sometimes fails.

Still testing...
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 27, 2009, 06:14:51 pm
Revision {2008-04-01}, 16032, has this.
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: Mattn on July 27, 2009, 09:07:15 pm
"has this" means that it has the error, too?
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 29, 2009, 10:51:52 pm
Yep.

Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 29, 2009, 11:19:35 pm
Ok, something is really odd here. I'm back farther than the 2.2.1 branch, and its still showing up this way.

So the new hypothesis: This came up in 2.2.1 testing, and was fixed in 2.2.1, but after the 2.2.1 branch was made.

Rewinding off the 2.2.1 branch to see if it shows up...
Title: Re: Map problem, graphically, hopefully with information to tell what's going on
Post by: keybounce on July 31, 2009, 02:43:49 am
Ok, rewinding off the 2.2 branch :-).

working: branches/ufoai_2.2 -r 24913
working: branches/ufoai_2.2 -r 16579 (the 2.2.1 tag)

-r16511: The geoscape error shows up!
Battle map works fine.