MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
296 stars 281 forks source link

[0.50.0-SNAPSHOT] Princess engaging targets outside of visual range in heavy fog. #5870

Open Tzahr opened 1 month ago

Tzahr commented 1 month ago

Environment

04:32:57,538 INFO [megamek.MegaMek] {main} megamek.MegaMek.initializeLogging(MegaMek.java:143) - Starting MegaMek v0.50.0-SNAPSHOT Build Date: 2024-08-04T01:23:25.882857488 Today: 2024-08-07 Origin Project: MekHQ Java Vendor: Eclipse Adoptium Java Version: 21.0.3 Platform: Windows 11 10.0 (amd64) System Locale: en_GB Total memory available to MegaMek: 8 GB MM Code Revision: 0f0d10d35f6bbc190c42be24563140865de228c5 MML Code Revision: 35aa5ce66ca59272c0d1e05c3d174cd4c0335b3c MHQ Code Revision: 76e9cea125956ab9a9d8af389ee60c2bb2eca81d

Description

image

In the attached imagine, I have a Lance deployed with double-blind and sensor rules in operation. I also specifically do not have Princess on single blind. The heavy fog weather modifier is in effect. Princess is able to fire on my units beyond visual range, seemignly ingoring the hard visual limits imposed by the fog. In fact,in my screenshot, you can even see that the black Warhammer being shot is displayed as semi-translucent, suggesting it should not be visible to Princess at all.

This is more noticeable as ranges decrease, since if the shots miss from beyind visual range, they do not appear in the round report. I forced a /victory directy after this screenshot, and attached the gamelog - you can see repeated volleys being fired at my formation when they are in the long range and medium range bands. I have attached a quicksave of this round, as well as the one custom unit included that will be required to load this savegame.

This can easily be replicated by having the lance remain at the edge of visual range, and monitor incoming fire.

Files

megamek.log gamelog.zip quicksave.sav.gz Lancelot LNC25-01-Gr "Grailsworn".zip

repligator commented 1 month ago

Couple observations.

  1. If you load the game and choose to play as WoB Primary OpFor, you too can shoot at units outside of visual range, but only with two units. The LRM Carrier (3055 Upgrade) and Partisan Defense Tanks are targeting the Warhammer. They will continue to target the warhammer across turns. If you target something else (for example right click an empty hex and clear), then the Warhammer can't be re-targeted, but as long as you keep shooting at it, it stays a viable target. It also can't be spotted. Screenshot_20240809_074955

  2. However if a human is playing as WoB Primary OpFor, they can't target the warhammer with the C3 Master on the Partisan Air Defense Tank, which the gamelog clearly shows Princess doing.

Sleet01 commented 1 month ago

There may be an opportunity here to fix this and knock out an RFE (see link above).