Page 1 of 1

PlaceObject ...glitch (solved!)

Posted: Sat May 07, 2011 7:07 am
by Merr
Pip,

I've have good news, and some bad news ... It's not a show stopper regarding it's function, just a little glitch I found ...

Oh ... the good news is that Placing Objects is awesome! Random maps are cool.

Bad news .... If the object is placed on a "tile" that is defined in the TERRAIN.TXT as having a "coverflag" value of 1 or the object (such as a building) is defined as having a coverflag value of 1, the object will always be shown using the "out-of-los" color of grey, and it will never have any color there-after (even when it comes into LOS).

I hope this is an easy fix.

Thank's for your work!

Posted: Sat May 07, 2011 4:43 pm
by pipfromslitherine
Hmmm - that's odd. The code is pretty much the same - is this true even if you end the turn? I did do some work which was dealing with the cost of updating exactly that kind of data when adding objects, so I will take a look.

If you can give me a tile+object pair where you know it happens that would be awesome, it will mean we are looking at the same thing :)

Cheers

Pip

Posted: Sat May 07, 2011 5:28 pm
by Merr
pipfromslitherine wrote:Hmmm - that's odd. The code is pretty much the same - is this true even if you end the turn? I did do some work which was dealing with the cost of updating exactly that kind of data when adding objects, so I will take a look.

If you can give me a tile+object pair where you know it happens that would be awesome, it will mean we are looking at the same thing :)

Cheers

Pip
Yes ... turn after turn it remained grey. A classic tile/object pair ... Any tree (so far using TEST) paired with any forest tile (from MoreTiles).... and I just used one building "farmhouse" that remains grey turn-after-turn no matter what tile it resides on. Also, it doesn't matter if the tile was created from the BAM or added before/afterwards via code. The only common denominator (IMO) was the "coverflags" value being 1.

If you want, I can zip up my scenario BSF that I'm using to create the map along with some screenshots, but I won't be able to do that for at least 5 hours from now.

Posted: Sat May 07, 2011 6:13 pm
by pipfromslitherine
No - that's fine. I will repeat here. Probably not until next week as I'm going to be OOO for a few days. Thanks for the details.

Cheers

Pip

Posted: Thu May 12, 2011 7:34 am
by Merr
Disregard the "glitch" .... It would have helped if I didn't use only Armored units in my initial test ... if you catch my drift :wink:

I could have sworn I put gas in the tank ... :oops:

Posted: Thu May 12, 2011 3:22 pm
by pipfromslitherine
LOL

Disregarded.

Cheers

Pip