?-Terrain Popup

This forum is for bug reports and support requests.

Moderator: Arjuna

Post Reply
User avatar
BigJ62
Posts: 1132
Joined: Sat Dec 28, 2002 9:53 am
Location: Alpharetta, Georgia
Contact:

?-Terrain Popup

Post by BigJ62 »

When I right click on the map the terrain popup indicates a different terrain than what I clicked on.
1. Is this a bug?
2. Which am I to believe the popup or the map?


Fantastic game by the way.
Thanks...

Image
Attachments
img_000.jpg
img_000.jpg (23.99 KiB) Viewed 143 times
Witp-AE
AeAi…AeAi …AeAi…Long live AeAi.
RayWolfe
Posts: 1556
Joined: Wed Feb 05, 2003 9:40 pm
Location: Kent in the UK

RE: ?-Terrain Popup

Post by RayWolfe »

The map features are on a grid. I seem to remember that it's set at 100 metres. So if you click within the feature grid it will pop-up the feature even though the map picture does not show at the clicked point.
That reads as clear as mud to me but I know what I mean! I hope you do do. [;)]
Ray
User avatar
simovitch
Posts: 5938
Joined: Tue Feb 14, 2006 7:01 pm

RE: ?-Terrain Popup

Post by simovitch »

Actually BigJ It's not a bug at all, it's more the result of a terrain feature enhancement. Dave O'Conner explained this during the development of the game:
Oh and one other thing to remember about what is drawn and the underlying data. These can be at variance due to the terrain grid, which is set at 100m. Previously, in determining the terrain and hence the effects at a certain location, the code would simply check to see if any pixel within the grid was set for a given layer and if so then it was deemed to apply. So if only 1 pixel out of say 100 was woods, then woods effects would apply assuminmg nothing with a worse effect was also present.

We changed this by adding in the CalcPercentagePrecence() function. This now determines the proportion that a particular terrain type is present and modifies the effects by a pro-rata amount, except where certain types are present like urban. It returns the dominant terrain type and this is displayed in the terrain popup but it modifies the move and hit percentages. The end result is a more realistic representation. In most cases it also is closer to what you see. However, if you click in a location it may actually be the corner of a location and it may end up picking up terrain effects for area up to 100m away from where you clicked. So please keep that in mind.
simovitch

Post Reply

Return to “Conquest of the Aegean Support”