Line of Sight Oddness

Post Reply
Kabill
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 246
Joined: Fri Mar 16, 2018 8:52 pm

Line of Sight Oddness

Post by Kabill »

Just found some strangeness with LoS for missile units.

In this image, my horse archers on a straight diagonal can shoot at a unit of foot in an elevated position:

20180903215955_1.jpg
20180903215955_1.jpg (542.54 KiB) Viewed 1176 times


However, the horse archer unit adjacent to it cannot shoot:

20180903215958_1.jpg
20180903215958_1.jpg (537.03 KiB) Viewed 1176 times


I assume the hill corner is obstructing LoS for the second unit (which I've see with other LoS blocking terrain, e.g. trees, which seems inconsistent with the general LoS rules but could still be working as intended). But if that was the case, then surely the first unit would not be able to attack as well as it is also obstructed by the same space.

For reference, both the tile the targeted unit is on and the hill corner are the same elevation level (100).
Attachments
20180903215958_1.jpg
20180903215958_1.jpg (537.03 KiB) Viewed 1178 times
20180903215955_1.jpg
20180903215955_1.jpg (542.54 KiB) Viewed 1178 times
Kabill's Great Generals Mod for FoG2: http://www.slitherine.com/forum/viewtopic.php?f=492&t=84915
Kabill
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 246
Joined: Fri Mar 16, 2018 8:52 pm

Re: Line of Sight Oddness

Post by Kabill »

(Ignore the repeat images at the bottom. Seem to have some issues with image attachments where it's duplicating images that are placed inline.)
Kabill's Great Generals Mod for FoG2: http://www.slitherine.com/forum/viewtopic.php?f=492&t=84915
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28411
Joined: Sun Dec 04, 2005 6:25 pm

Re: Line of Sight Oddness

Post by rbodleyscott »

The LOS code is in the engine (not in the game scripts). Apparently there are difficulties in making the LOS calculations perfect without performance issues, and anomalies such as this can arise.
Richard Bodley Scott

Image
Kabill
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 246
Joined: Fri Mar 16, 2018 8:52 pm

Re: Line of Sight Oddness

Post by Kabill »

Fair enough. It's not a major issue.
Kabill's Great Generals Mod for FoG2: http://www.slitherine.com/forum/viewtopic.php?f=492&t=84915
Post Reply

Return to “Field of Glory II: Tech Support”