Author Topic: Detection range for Size 6 missiles  (Read 659 times)

0 Members and 1 Guest are viewing this topic.

Online Iceranger (OP)

  • Lt. Commander
  • ********
  • I
  • Posts: 272
  • Thanked: 135 times
Detection range for Size 6 missiles
« on: May 03, 2020, 10:31:52 AM »
It seems this bug existed in VB6 Aurora too so I will leave it out of a bug report thread for a particular version.

We know that for targets smaller than a sensor's resolution, its max detection radius is

Code: [Select]
(target size / sensor resolution)^2 * sensor max range
Let's check the following sensor:


Code: [Select]
Resolution 1     Maximum Range vs 50 ton object (or larger): 8,574,929 km
Range vs Size 6 Missile (or smaller): 933,810 km
Range vs Size 8 Missile: 1,371,989 km
Range vs Size 12 Missile: 3,086,975 km

For size 8, it is
Code: [Select]
(8/20)^2*8,574,929=1,371,988.64 close enough.

For size 12, it is
Code: [Select]
(12/20)^2*8,574,929=3,086,974.44 again, close enough

However, as shown in the picture, for size 6 the calculation breaks down.
Code: [Select]
(6/20)^2*8,574,929=771,743.61 which is apparently much smaller than 933,810. Instead, if we do the following:
Code: [Select]
(6.6/20)*2*8,574,929=933,809.7681 this time, it seems to match exactly.

Let's look at another senor:
Code: [Select]
Active Sensor Strength 60.0   Sensitivity Modifier: 320%
Sensor Size 1.0 HS  (50 tons)    HTK 1
Resolution 1     Maximum Range vs 50 ton object (or larger): 24,721,520 km
Range vs Size 6 Missile (or smaller): 2,692,174 km
Range vs Size 8 Missile: 3,955,443 km
Range vs Size 12 Missile: 8,899,747 km
Again:
Code: [Select]
(6/20)^2*24,721,520=2,224,936.8
(6.6/20)^2*24,721,520=2,692,173.528
Again, seems the second one matches perfectly.

Since the calculations for 8 and 12 MSP missiles are correct, I suspect the bug is in the code that limits the min missile size, where 6MSP is typoed as 6.6MSP, or something like that.

« Last Edit: May 03, 2020, 10:34:17 AM by Iceranger »
 

Offline Alsadius

  • Lieutenant
  • *******
  • Posts: 176
  • Thanked: 80 times
Re: Detection range for Size 6 missiles
« Reply #1 on: May 03, 2020, 11:06:46 AM »
I'm pretty sure this is WAI, because I've seen 16.5 tons cited as the lowest size in a lot of places. The "size 6" is just a hold-over from the VB version that didn't have fractional-sized missiles. So the text is oversimplified, but the mechanic is correct.

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 10151
  • Thanked: 11189 times
    • http://www.starfireassistant.com
Re: Detection range for Size 6 missiles
« Reply #2 on: May 03, 2020, 11:11:03 AM »
The static value MINCONTACTSIGNATURE was set to 0.33. I've changed to 0.3.
 
The following users thanked this post: SpikeTheHobbitMage

Offline Steve Walmsley

  • Aurora Designer
  • Star Marshal
  • S
  • Posts: 10151
  • Thanked: 11189 times
    • http://www.starfireassistant.com
Re: Detection range for Size 6 missiles
« Reply #3 on: May 03, 2020, 11:12:12 AM »
I'm pretty sure this is WAI, because I've seen 16.5 tons cited as the lowest size in a lot of places. The "size 6" is just a hold-over from the VB version that didn't have fractional-sized missiles. So the text is oversimplified, but the mechanic is correct.

Yes, I obviously made it 0.33 for a reason. I just can't remember what that reason was :)

Size 6 missile is what everyone usually remembers though.
 
The following users thanked this post: SpikeTheHobbitMage

Online Iceranger (OP)

  • Lt. Commander
  • ********
  • I
  • Posts: 272
  • Thanked: 135 times
Re: Detection range for Size 6 missiles
« Reply #4 on: May 03, 2020, 11:42:48 AM »
I'm pretty sure this is WAI, because I've seen 16.5 tons cited as the lowest size in a lot of places. The "size 6" is just a hold-over from the VB version that didn't have fractional-sized missiles. So the text is oversimplified, but the mechanic is correct.
hmm interestingly I have never seen the reference of 16.5 tons in wiki page or elsewhere, perhaps it was from ancient time, and later people just use 6MSP as a rough approximate?
 

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72