View Issue Details

IDProjectCategoryLast Update
0020913AI War 2Bug - GameplayFeb 19, 2019 10:05 am
Reporterwm46 Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.811 Transport Ships 
Fixed in Version0.813 Tractor Tentacles 
Summary0020913: Black Widow Golem tractors ships outside of its own range
DescriptionThe tractor range on the BWG is 8000 and the attack range is also 8000, but somehow ships are getting tractored outside of the range of its own cannons.

I double checked the XML and there's no sneaky extra range per mark that gets added, and the C# looks fine:

                if ( !TractorPlanning.NonClosure_TractorSource.GetIsWithinRangeOf( otherEntity, TractorPlanning.NonClosure_TractorRange ) )
                    continue;

I don't know what's going on in GameEntity_Squad, but it seems like its searching a greater area than what you pass to it, so it'd be better if the weapon range was strictly larger than the tractor range.
TagsNo tags attached.

Activities

wm46

Feb 7, 2019 2:09 am

reporter   ~0050781

Second option: change:
GetIsWithinRangeOf( otherEntity, TractorPlanning.NonClosure_TractorRange )

to something like:

GetIsWithinRangeOf ( otherEntity, TractorPlanning.NonClosure_TractorRange - TractorPlanning.NonClosure_TractorSource.DataForMark.Radius )

(Note: I don't know if TractorPlanning.NonClosure_TractorSource.DataForMark.Radius is the proper way to access the source entity radius, not my fault if the code explodes.)

wm46

Feb 7, 2019 2:16 am

reporter   ~0050782

Mission accomplished, my fix works. Double check on your end.

wm46

Feb 7, 2019 2:21 am

reporter   ~0050783

Forgot to mention just in case it wasn't clear, I was modifying line 114 of TractorPlanning.cs

BadgerBadger

Feb 7, 2019 11:20 am

manager   ~0050788

Chris, I don't know this logic

RocketAssistedPuffin

Feb 19, 2019 10:05 am

reporter   ~0050819

That fix is included now.

Issue History

Date Modified Username Field Change
Feb 7, 2019 1:47 am wm46 New Issue
Feb 7, 2019 2:09 am wm46 Note Added: 0050781
Feb 7, 2019 2:16 am wm46 Note Added: 0050782
Feb 7, 2019 2:21 am wm46 Note Added: 0050783
Feb 7, 2019 11:20 am BadgerBadger Assigned To => Chris_McElligottPark
Feb 7, 2019 11:20 am BadgerBadger Status new => assigned
Feb 7, 2019 11:20 am BadgerBadger Note Added: 0050788
Feb 19, 2019 10:05 am RocketAssistedPuffin Status assigned => resolved
Feb 19, 2019 10:05 am RocketAssistedPuffin Resolution open => fixed
Feb 19, 2019 10:05 am RocketAssistedPuffin Fixed in Version => 0.813 Tractor Tentacles
Feb 19, 2019 10:05 am RocketAssistedPuffin Note Added: 0050819