View Issue Details

IDProjectCategoryLast Update
0021481AI War 2Bug - GameplayAug 10, 2019 2:20 am
Reporterwm46 Assigned ToBadgerBadger  
Status resolvedResolutionfixed 
Product Version0.880 Belatedly Finding Friends... And Enemies 
Fixed in Version0.881 AI Neighborhood Watch 
Summary0021481: Coarse background simulation causes ships to appear in the wrong location when using wormholes
DescriptionIf a ship enters a wormhole when you are not looking at the destination planet, the ship will instead appear at the location of the entrance wormhole, but on the other planet.

Essentially the decollision / wormhole bug from 50 or so patches ago.
TagsNo tags attached.

Relationships

has duplicate 0021487 resolvedBadgerBadger Ships going through wormhole will warp to opposite end of planet if player is not watching. 

Activities

wm46

Aug 9, 2019 7:11 pm

reporter   ~0052515

So if you order ships to go through the wormhole, and switch your view to the destination before they reach it, they will warp just fine.

If you keep your view on the same planet, or a completely different one, they will appear in the wrong place, and then get a move order to move back to the wormhole.

BadgerBadger

Aug 9, 2019 7:57 pm

manager   ~0052517

Last edited: Aug 9, 2019 7:58 pm

My fix for that was to put in a check in GameEntity_Squad to say
+ //the decollision code can race with wormhole traversal code, causing ships to teleport unexpectedly when entering a new planet.
+ //only handle decollision stuff after the ships have moved
+ if ( this.SecondsSinceEnteringThisPlanet > 0 )
+ this.Inner_CheckForPlannedMove();

If this is the same bug then perhaps this check is no longer adequate. Perhaps going through a wormhole should set a "This unit is not eligible for decollision" flag or something, which is unset on the next sim-step?

BadgerBadger

Aug 9, 2019 8:49 pm

manager   ~0052518

Last edited: Aug 10, 2019 2:07 am

Fixed. When going through a wormhole, the entity discards information from the Movement Planning/Decollision threads so as to not see stale move requests pertaining to the position on the previous planet

Issue History

Date Modified Username Field Change
Aug 9, 2019 7:09 pm wm46 New Issue
Aug 9, 2019 7:11 pm wm46 Note Added: 0052515
Aug 9, 2019 7:57 pm BadgerBadger Note Added: 0052517
Aug 9, 2019 7:58 pm BadgerBadger Note Edited: 0052517
Aug 9, 2019 8:49 pm BadgerBadger Assigned To => BadgerBadger
Aug 9, 2019 8:49 pm BadgerBadger Status new => resolved
Aug 9, 2019 8:49 pm BadgerBadger Resolution open => fixed
Aug 9, 2019 8:49 pm BadgerBadger Fixed in Version => 0.881 AI Neighborhood Watch
Aug 9, 2019 8:49 pm BadgerBadger Note Added: 0052518
Aug 10, 2019 2:07 am BadgerBadger Note Edited: 0052518
Aug 10, 2019 2:20 am BadgerBadger Relationship added has duplicate 0021487