Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units not following, even though it says they are in console #420

Closed
xeryx01 opened this issue Mar 31, 2021 · 5 comments
Closed

Units not following, even though it says they are in console #420

xeryx01 opened this issue Mar 31, 2021 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@xeryx01
Copy link

xeryx01 commented Mar 31, 2021

I have noticed an issue with multi-phased missions. Even though in the console it says a unit is set to follow, their behavior is not following MY UNITS, They work just fine when the mission is started (not mission-related), but after an engagement ends they do not go back to follow the leading or heaviest target of my lance mech. Originally I thought it was settings being incorrect but it isn't because when you move on the map before an engagement they work just fine!

here are my new settings in my settingsmodpack.json

"AI": {
"FollowPlayer": {
"Pathfinding": "Alternative",
"Target": "HeaviestMech",
"StopWhen": "OnEnemyDetected",
"MaxDistanceFromTargetBeforeSprinting": 60,
"TargetZoneRadius": 90,
"TimeToWaitForPathfinding": 60,
"TicksToWaitForPathfinding": 20
}

here is the log,
output_log.txt
output.log
as you can see everything is fine in the console, but I have been watching the movement of the tanks (for 8 turns and gave up) It is as though the Target 'Mech is being lost from the lead lance (mine) and being moved to one of their members in the lance. Then they just keep moving around each other, and will not follow me, until I go and detect an enemy!

Here is a pic

Tanks00000

@xeryx01
Copy link
Author

xeryx01 commented Apr 9, 2021

After much long thought about this issue, I firmly believe the allies are not being reassigned properly is the cause of the crash from the other thread. Causing logical and fatal errors when leaving the battle. It would be really great if other people could get involved and perform some Blackout Missions and watch for these abhorrent behaviors and see if the mission will crash afterward to confirm.

@CWolfs CWolfs added investigation Investigate a potential issue bug Something isn't working labels Jun 7, 2021
@CWolfs CWolfs removed the investigation Investigate a potential issue label Sep 21, 2022
@CWolfs CWolfs added this to the v1.5.0 milestone Sep 21, 2022
@CWolfs
Copy link
Owner

CWolfs commented Sep 21, 2022

I discovered certain checks I was using GetVisibleEnemyUnits and GetDetectedEnemyUnits from the vanilla code were picking up dead units. I now filter out dead units and this fixes the problem.

@CWolfs CWolfs closed this as completed Sep 21, 2022
@CWolfs
Copy link
Owner

CWolfs commented Sep 21, 2022

In develop for release v1.5.

@xeryx01
Copy link
Author

xeryx01 commented Sep 23, 2022

OMG!!! That is AWESOME!!! Can't wait! Great JOB! I bet that wasn't easy

@CWolfs
Copy link
Owner

CWolfs commented Sep 30, 2022

Video showing things working.

https://youtu.be/zBhnTauFwV8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants