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
299 stars 288 forks source link

[49.8] Princess or Map pathing issue and other. #3573

Open Thom293 opened 2 years ago

Thom293 commented 2 years ago

13:16:05,503 INFO [megamek.MegaMek] {main} megamek.MegaMek.initializeLogging(MegaMek.java:122) - Starting MegaMek v0.49.8-SNAPSHOT Build Date: 2022-04-03T01:39:41.436491700 Release Date: 2022-02-18 Today: 2022-04-14 Origin Project: MegaMek Java Vendor: AdoptOpenJDK Java Version: 11.0.10 Platform: Windows 10 10.0 (amd64) System Locale: en_US Total memory available to MegaMek: 4 GB

I asked and was told to post this. Was having random discussion on an unrelated matter and opened this particular map to test a turret I made (Literally just a renamed Dual ML turret, the below tests were completed and confirmed with normal dual ML turrets and not my custom one). The log is only from the last test. The map is 32x34 "Pirate Base Before." Also relates to "floating turret" issue. #3362 All MM settings are default to whatever is set in 49.8. Ran across the following and my Discord posts:

FYI noticed two things with the map. 1) Princess (The Centurions) could not or did not want to navigate through the doors on the top back of the base. As long as I hid behind the height level 3 wall princess just stood there doing nothing after she killed the turret in the middle. Dont know if that is a pathfinding issue or a "we just dont want to go there" issue. 2) The middle turret is on a height 3 building so could be and was destroyed. Top turret is essentially invincible and can shoot without return fire if placed on the Height 2 buildings behind the height 3 walls because of the turret oddity of "floating" above the top of a building one level. So the turret on that building could shoot out, but the Centurions could not shoot the building it was on because it was behind a level 3 wall. Coupled with the fact that they would not path inside the base, its essentially invincible.

After discussion and further testing:

Similar with Warhawks, but they parked farther away because they dont have any short range weapons. Tested with Atlas. Same as Centurions. Then I set the Atlas Princess to Berserker with no fear and same result. AI will not path into that base on foot. But they aint scared of the urbies or turrets. Loaded LBX20 Highlander 734s with JJ and they pwned face. I would assume its something to do with entrance to this base. Maybe because its one level higher? Anyway non-jj mechs wont path inside. Maybe a princess bug?

The lagging Atlas and Highlander in the two screens are because both of them slipped on pavement and are a little behind. They were not camped where they were standing in the screens.

EDIT: Look-busy Loop said he changed map to non-cliffside and she would enter base. So that may be part of it.

Related and perhaps an issue?: I ran two of the tests to turn 50 with this behavior, fyi. I fled the Urbanmechs off the back of the map during the Atlas test. The top turret inside the base was still alive. When I fled the Urbies, the Atlas all wandered off. As if they didnt see the turret as an enemy or objective (even though the turret could shoot them). i.e. the Urbies were the only thing keeping them aggroed on the base. I think they should still treat the turret as an enemy? Or perhaps they still were and could not reach it so walked off? Dunno.

Dont have saves, Sorry. Screens should explain every step though.

megamek.log Screenshot (382) Screenshot (387) Screenshot (391) Screenshot (392) Screenshot (395)

SimonLandmine commented 2 years ago

The Princess pathfinder might be getting confused about the Sheer Cliff edges - because there is a non-sheer-side route in on each 'entrance' hex. But if Princess doesn't analyse the edges, just the hex, it might be believing that the whole hex is sheer.