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 286 forks source link

Unit stacking bug with Princess deployment #443

Open monbvol opened 7 years ago

monbvol commented 7 years ago

gamelog.zip stackingbug stackingbug.sav.gz

No error in log but included log anyway.

Quickdraw and Dervish got deployed to the same hex by the bot. Lower left corner of the included screen shot.

No custom units in the match.

pheonixstorm commented 1 year ago

Is this still an issue?

SuperStucco commented 1 year ago

Yes, it is as of 49.12. Princess is not checking for stacking limits with opposing units in overlapping deployment zones. This may be a double blind/sensor contact rules thing. It doesn't violate stacking with it's own units.

repligator commented 3 months ago

As of 50.00, Princess will not deliberately deploy her units on top of each other (beyond stacking limit). However, if there is an enemy unit she may deploy on top of them, which may cause one of her units to domino effect itself on top of one of her other units. In the attached save file, Princess has a force of 30 Wasps on a map with only 25 hexes. In both cases, she only deployed 25 of them. deploy_test.sav.gz Screenshot_20240716_161451 Screenshot_20240716_162406

Sleet01 commented 3 months ago

Sounds like we already have the correct handling, we just need to remove from the deployment candidates list any hexes that contain enemies that can't share occupation, in the same way that (presumably) we do for friendlies.

I will say, though, that this is such an edge case that I'm not sure it warrants spending more time on.

repligator commented 3 months ago

I will say, though, that this is such an edge case that I'm not sure it warrants spending more time on.

I'm inclined to agree. It's only going to occur if:

  1. Double Blind is on
  2. The deployment zones overlap (and there is a setting to warn the player of this).
  3. All the initiative rolls and settings line up absolutely perfectly.