View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0021450 | AI War 2 | Bug - Gameplay | Aug 2, 2019 9:19 pm | Aug 7, 2019 4:20 pm | |
Reporter | Zoreiss | Assigned To | Chris_McElligottPark | ||
Status | resolved | Resolution | fixed | ||
Product Version | 0.876 Counterattacks Ate My Waves | ||||
Fixed in Version | 0.879 Many Fixes and the Tutorial Rework Starts | ||||
Summary | 0021450: Fleet stuck on ForceField | ||||
Description | Whatever I do the fleet will not move in system Aroma. | ||||
Tags | No tags attached. | ||||
related to | 0021199 | resolved | Chris_McElligottPark | Ships getting stuck on forcefields |
|
|
|
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. |
|
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. |
|
Please feel free to give those a try -- I think that forbidding approximations in particular ought to do it. |
|
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. |
|
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. |
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 |