War on the Sea

War on the Sea

skwabie Sep 15, 2022 @ 10:43pm
[1.08g7h2] campaign001 navigation failures - Buka, Bougainville, Newgeorgia, SantaIsabel
Experienced 2 weird things during campaign:

1. Aircraft cooldown timer not counting down.
2. All units disappear on map.

output_log.txt errors:
NullReferenceException: Object reference not set to an instance of an object at CampaignAI.OnDestinationReached (WorldMapStrategyKit.GameObjectAnimator goa) [0x00000] in <filename unknown>:0 at CampaignManager.GetNextNavPosition (WorldMapStrategyKit.GameObjectAnimator obj) [0x00000] in <filename unknown>:0 at CampaignManager.Check5Min () [0x00000] in <filename unknown>:0 at CampaignManager.FixedUpdate () [0x00000] in <filename unknown>:0 (Filename: Line: -1)

As the entries are related to navigation, decided to test AI pathfinding.

Tested the 8 locations north of the Guadalcanal area, namely Buka, Bougainville, Shortland, Vella la vella, Kolumbangara, New georgia, Santa Isabel, Russell.

Method: Everything stock except MaxAirAt: and MustControl: set to location so that most AI missions are generated towards it; base detection radius x100 to spot everything.

Each location is tested 2 times, one is mission spawned from Rabaul, approaching destination from the west; the other is mission spawned from Pac2, approaching destination from the east. Did not test shortland spawns.
Only listing missions that are bugged:

Buka:

Mission from the west:
mediafire dot com/file/48g6zsd7zgdjv18/
4x submarine TF, to the northwest of Buka and to the east of rabaul. Reaches SPac4 and disappears. All units disappear. Output_log.txt errors.

Mission from the east:
mediafire dot com/file/zseb1t1vb78ju2c/
The 2 CA+MS group is on a perpetual repeat between SPac3 and SPac5, unable to reach destination. No errors are generated.

Bougainville:

Mission from the east:
mediafire dot com/file/qnauicjhkj3dken/
BB+MS group on a perpetual repeat between Slot0 and SPac5, unable to reach destination. No errors generated.

New georgia:

Mission from the west:
mediafire dot com/file/pe7y8eg8gjyckgm/
CA+MS group approaches from northwest, passes between Vella la vella and Kolumbangara, reaches Sol5 then disappears. All units disappear. Output_log.txt errors.

Mission from the east:
mediafire dot com/file/gp2wkf830t6pqoi/
2 CA+MS group on perpetual repeats between Slot2 and Slot3. No errors generated.

Santa isabel:

Mission from the east:
mediafire dot com/file/v51lxh5pi0jdjmk/
CA+MS group on perpetual repeats between SPac8 and Slot6. No errors generated.

Mission from the west:
mediafire dot com/file/g9f8lnm3v9mgnq1/
3xSubmarine TF outta Rabaul. Passed between Shortland and Vella la vella, reaches Slot3 next to Santa Isabel and disappears. All units disappear. Output_log.txt errors.


In all above disappearing units/logged error cases, recruit whatever CV, launch bombers --> cooldown timer no longer counts down, e.g. 12 hours later it still cannot launch aircraft.

Apparently the AI does have a chance to invade non-primary non-secondary neutral locations using subs. During testing the AI invaded Malaita and Milnebay using subs which are not campaign objectives.
< >
Showing 1-9 of 9 comments
Killerfish Games  [developer] Sep 16, 2022 @ 4:42pm 
Thank you for this report!!!
Just want to verify this is in a 100% vanilla game correct?
skwabie Sep 16, 2022 @ 6:15pm 
Originally posted by Killerfish Games:
Thank you for this report!!!
Just want to verify this is in a 100% vanilla game correct?
Thank you KFG, the game is stock except edits described above to facilitate testing:
Method: Everything stock except MaxAirAt: and MustControl: set to location so that most AI missions are generated towards it; base detection radius x100 to spot everything.
Last edited by skwabie; Sep 16, 2022 @ 6:16pm
skwabie Sep 16, 2022 @ 9:36pm 
OK, the locations that generate output_log errors, namely rabaul spawned missions to Buka, New Georgia and Santa Isabel, are simpler than expected.

The locations are placed on land, likely making the AI pathfinding to fail, so AI TF attempts to unload cargo at the previous waypoint, but there's no object to unload to, because "interactionDistanceMetres":12000 and objective is too far away, so it generates NullReferenceException.

Slightly moving their locations is good enough (as well as waypoint pos ofc):
buka "locationPosition":{"x":-0.049,"y":0.239}
newgeorgia "locationPosition":{"x":0.039,"y":0.062}
santaisabel "locationPosition":{"x":0.079,"y":0.086}
Last edited by skwabie; Sep 17, 2022 @ 2:46am
Killerfish Games  [developer] Sep 18, 2022 @ 4:42pm 
Its always the little things... :)

Were these the only 3 locations you identified as causing the issue? All others were verified as working correctly?
skwabie Sep 18, 2022 @ 7:47pm 
Originally posted by Killerfish Games:
Its always the little things... :)

Were these the only 3 locations you identified as causing the issue? All others were verified as working correctly?
Yes.
Since this post, have tested every single one of the locations. All the others are good.

Have also edited the waypoints, so that the 4 locations can be reached from the east - tested all other locations and they're good.
mediafire dot com/file/y0r75c5exbyfkyo/

Edits are:
1) Adds waypoint SPac9, south of SPac4 and west of SPac3. Connects Buka, SPac4, SPac3, Bism3. So that Buka can be reached from the east.
2) Connects Bougainville to Slot0. So that Bougainvillle can be reached from the east.
3) Connects Sol5 and Slot2 - there's a miraculous canal on the island, making it passable. So that New Georgia can be reached from the east.
4) Connects SPac8 to Slot4. So that Santa Isabel can be reached from the east.

Note: did not test Campaign002.
Last edited by skwabie; Sep 18, 2022 @ 7:47pm
Killerfish Games  [developer] Sep 20, 2022 @ 4:58pm 
Thank you sir!

Campaign002 uses the same waypoint map, so copying the fixes to both folders should solve it.
skwabie Sep 21, 2022 @ 7:30am 
Originally posted by Killerfish Games:
Thank you sir!

Campaign002 uses the same waypoint map, so copying the fixes to both folders should solve it.
o.O Thank you KFG. Plz keep up the good work.
YorT Oct 12, 2022 @ 8:08pm 
Originally posted by skwabie:
Originally posted by Killerfish Games:
Thank you sir!

Campaign002 uses the same waypoint map, so copying the fixes to both folders should solve it.
o.O Thank you KFG. Plz keep up the good work.
Hey Mate I'd be keen for you to test my Campaign Mod waypoints too, if thats not too difficult a task.
Killerfish Games  [developer] Oct 23, 2022 @ 8:50pm 
Just rolled out a fix for this to the beta branch:
https://steamcommunity.com/app/1280780/discussions/0/3484123157253824960/
< >
Showing 1-9 of 9 comments
Per page: 1530 50