View Issue Details

IDProjectCategoryLast Update
0021450AI War 2Bug - GameplayAug 7, 2019 4:20 pm
ReporterZoreiss Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.876 Counterattacks Ate My Waves 
Fixed in Version0.879 Many Fixes and the Tutorial Rework Starts 
Summary0021450: Fleet stuck on ForceField
DescriptionWhatever I do the fleet will not move in system Aroma.
TagsNo tags attached.

Relationships

related to 0021199 resolvedChris_McElligottPark Ships getting stuck on forcefields 

Activities

Zoreiss

Aug 2, 2019 9:19 pm

reporter  

Chris_McElligottPark

Aug 3, 2019 6:23 pm

administrator   ~0052394

I notice that when the forcefield shrinks, the ship is released, but yeah -- beyond that it definitely is getting stuck. I would have thought this was a floating point precision error, but I thought we had fixed these. I'll definitely have to investigate this prior to 1.0.

wm46

Aug 4, 2019 8:14 pm

reporter   ~0052405

A possible fix is to just set "forbid approximations but allow imprecise" to true for the range check.

Another possibility would be to add a bit of extra push at the four corners (45, 135, etc), as the GetPointAtAngleAndDistance(forcefield_radius + 10) is less than the GetDistanceFrom(forcefield_radius) check. That's what's causing the infinite loop to begin with.

Chris_McElligottPark

Aug 5, 2019 7:13 pm

administrator   ~0052426

Please feel free to give those a try -- I think that forbidding approximations in particular ought to do it.

wm46

Aug 6, 2019 6:51 pm

reporter   ~0052448

Yeah, setting forbid approximations to true fixed the issue.

I was really confused at first, I thought you still needed to manually move the built external code dll to the moddable logic dll folder. I had built the new dll before starting testing because I wanted to just drag and drop after confirming things were stuck, but nothing was stuck anymore.

Chris_McElligottPark

Aug 7, 2019 4:20 pm

administrator   ~0052453

Wonderful, thank you!

* A more CPU-expensive range check is now used for forcefields, which is also more accurate and prevents ships from getting stuck on the edge of them.

Issue History

Date Modified Username Field Change
Aug 2, 2019 9:19 pm Zoreiss New Issue
Aug 2, 2019 9:19 pm Zoreiss File Added: Fleet Transport Stuck on Forcefield.savemet
Aug 2, 2019 9:19 pm Zoreiss File Added: Fleet Transport Stuck on Forcefield.save
Aug 3, 2019 6:23 pm Chris_McElligottPark Note Added: 0052394
Aug 3, 2019 6:23 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 3, 2019 6:23 pm Chris_McElligottPark Status new => assigned
Aug 4, 2019 8:14 pm wm46 Note Added: 0052405
Aug 5, 2019 7:13 pm Chris_McElligottPark Note Added: 0052426
Aug 6, 2019 6:34 pm wm46 Relationship added related to 0021199
Aug 6, 2019 6:51 pm wm46 Note Added: 0052448
Aug 7, 2019 4:20 pm Chris_McElligottPark Status assigned => resolved
Aug 7, 2019 4:20 pm Chris_McElligottPark Resolution open => fixed
Aug 7, 2019 4:20 pm Chris_McElligottPark Fixed in Version => 0.879 Many Fixes and the Tutorial Rework Starts
Aug 7, 2019 4:20 pm Chris_McElligottPark Note Added: 0052453