Author Topic: Questions Not Worth Their Own Thread: C# Edition  (Read 359725 times)

0 Members and 3 Guests are viewing this topic.

Offline skoormit

  • Rear Admiral
  • **********
  • Posts: 801
  • Thanked: 321 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1680 on: April 28, 2021, 04:35:39 PM »
Hi Everyone.
Just building my own Active Sensor Model.
Does anyone know what the PI is short for in the formula below.
Apologies if its terribly simple but ive tried making it the subject of the formula, which works, but cant re-create it for other resolution values which stumped me.   
I cant see any other related posts when searching. 

Specifically using the formula: 
Sensor Range = SQRT((Racial Sensor Strength * HS * Racial EM Sensitivity * (Resolution ^ (1/1. 5)) / PI) * 1,000,000 km

Formula mentioned here:  hxxp: aurora2. pentarch. org/index. php?topic=8495. msg102701#msg102701

Thank you in advance :)
PI is Pi. 3.14etc.
 

Offline villaincomer

  • Petty Officer
  • **
  • v
  • Posts: 23
  • Thanked: 10 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1681 on: April 28, 2021, 04:57:55 PM »
PI!  Facepalm!  Seems so obvious now, thank you. 


Also another one please as it still isnt working for me. .

Q: How does the sensor size variable fit into that formula? 

I assumed "HS" was the size of ship the sensor was searching for.

Thank you :)

(forgot to mention am on latest patch)
 

Offline brondi00

  • Warrant Officer, Class 1
  • *****
  • b
  • Posts: 88
  • Thanked: 30 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1682 on: April 28, 2021, 05:07:56 PM »
I'm pretty sure HS is the size of the sensor itself.  Resolution is the size of ship it's searching for optimally
 

Offline villaincomer

  • Petty Officer
  • **
  • v
  • Posts: 23
  • Thanked: 10 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1683 on: April 28, 2021, 06:03:36 PM »
I still cant recreate results.  >:(

Screenshot of Game data versus the results Steve posted which match versus 1000 & 250 tonnes
Res 200,
Size 1.   
21 strength
11 sensitivity.

Has anyone else managed to build a model or replicate the results?

Apologies if I am missing something very obvious (Like PI!). 
Thank you :)
 

Offline nuclearslurpee

  • Admiral of the Fleet
  • ***********
  • Posts: 2982
  • Thanked: 2243 times
  • Radioactive frozen beverage.
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1684 on: April 28, 2021, 06:30:07 PM »
I still cant recreate results.  >:(

Screenshot of Game data versus the results Steve posted which match versus 1000 & 250 tonnes
Res 200,
Size 1.   
21 strength
11 sensitivity.

Has anyone else managed to build a model or replicate the results?

Apologies if I am missing something very obvious (Like PI!). 
Thank you :)

This looks like it matches almost exactly except for a small error in the maximum range which is only 60 km difference and probably a floating point mismatch.

Make sure you are comparing to the C# values on the right, not the VB6 values on the left.
 

Offline villaincomer

  • Petty Officer
  • **
  • v
  • Posts: 23
  • Thanked: 10 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1685 on: April 29, 2021, 04:11:56 AM »
No that doesn't work.   The screenshot is from the Steve post.   I was demonstrating my version of the game matched his results.

Its the "formula inner workings" I am trying to determine :)

Apologies if I confused anyone inadvertently. 
 

Offline nuclearslurpee

  • Admiral of the Fleet
  • ***********
  • Posts: 2982
  • Thanked: 2243 times
  • Radioactive frozen beverage.
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1686 on: April 29, 2021, 11:07:46 AM »
No that doesn't work.   The screenshot is from the Steve post.   I was demonstrating my version of the game matched his results.

Its the "formula inner workings" I am trying to determine :)

Apologies if I confused anyone inadvertently.

Ah. No problem then.

The formula for active sensor range is already in Steve's post but I will re-write it here in a slightly more readable form for the sake of discussion:

Code: [Select]
RANGE = SQRT(STR * HS * SEN * RES^(2/3) / PI) * 1,000,000 km

where:
  STR = racial grav sensor strength
  HS = sensor size in HS, 1 HS = 50 tons
  SEN = racial EM sensor sensitivity
  RES = sensor resolution in HS
  PI = 3.1416

Be aware that the information in the notes box during component creation is out of date but Steve hasn't changed it for some reason. Also note that Steve uses PI = 3.1416 exactly, and using a more accurate value will cause you to be off by a few km.

Anyways, for an example take the sensor you've designed with STR = 21, HS = 1.0, SEN = 11, and RES = 200:

Code: [Select]
RANGE = SQRT(21 * 1.0 * 11 * 200^(2/3) / 3.1416) * 1,000,000 km = 50,146,491 km
The sensor model works exactly as advertised. Make sure you are using the correct formula and the correct values for all variables.
 
The following users thanked this post: Migi

Offline skoormit

  • Rear Admiral
  • **********
  • Posts: 801
  • Thanked: 321 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1687 on: April 29, 2021, 11:21:15 AM »
Per Steve:

Quote
For C#, the ground forces signature is equal to the total signature of all ground formation elements on a planet, divided by 100.
The signature of each element is equal to (unit size * unit number) / (fortification level * dominant terrain fortification modifier).

My current scan of a planet shows an alien ground forces signature of 2,900tons.
Is my scanner compensating for the division by 100, or is the total signature of the ground force formation elements on the planet actually 290,000tons?
 
The following users thanked this post: villaincomer

Offline nuclearslurpee

  • Admiral of the Fleet
  • ***********
  • Posts: 2982
  • Thanked: 2243 times
  • Radioactive frozen beverage.
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1688 on: April 29, 2021, 11:50:12 AM »
Per Steve:

Quote
For C#, the ground forces signature is equal to the total signature of all ground formation elements on a planet, divided by 100.
The signature of each element is equal to (unit size * unit number) / (fortification level * dominant terrain fortification modifier).

My current scan of a planet shows an alien ground forces signature of 2,900tons.
Is my scanner compensating for the division by 100, or is the total signature of the ground force formation elements on the planet actually 290,000tons?

The latter. The total ground force signature is equivalent to 290,000 tons. However, the actual number of ground forces may be several times that due to fortification levels, and you may be looking at over a million tons of enemy ground forces.

Good luck.
 
The following users thanked this post: skoormit

Offline skoormit

  • Rear Admiral
  • **********
  • Posts: 801
  • Thanked: 321 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1689 on: April 29, 2021, 12:35:31 PM »
The total ground force signature is equivalent to 290,000 tons. However, the actual number of ground forces may be several times that due to fortification levels, and you may be looking at over a million tons of enemy ground forces.

Good luck.
Yeesh.
The planet's terrain type is "Jungle Mountain," which has a max fortification modifier of x3.
So, yeah. If these guys are dug in at all (which they probably are), I'm looking at several million tons of bugs to squash.
I could just nuke them, if I didn't want the planet so much.
 

Offline Droll

  • Vice Admiral
  • **********
  • D
  • Posts: 1704
  • Thanked: 599 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1690 on: April 29, 2021, 12:45:32 PM »
The planet's terrain type is "Jungle Mountain," which has a max fortification modifier of x3.

It literally couldn't be worse
 
The following users thanked this post: skoormit

Offline nuclearslurpee

  • Admiral of the Fleet
  • ***********
  • Posts: 2982
  • Thanked: 2243 times
  • Radioactive frozen beverage.
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1691 on: April 29, 2021, 01:01:52 PM »
The total ground force signature is equivalent to 290,000 tons. However, the actual number of ground forces may be several times that due to fortification levels, and you may be looking at over a million tons of enemy ground forces.

Good luck.
Yeesh.
The planet's terrain type is "Jungle Mountain," which has a max fortification modifier of x3.
So, yeah. If these guys are dug in at all (which they probably are), I'm looking at several million tons of bugs to squash.
I could just nuke them, if I didn't want the planet so much.

Ayeeeeep.

Assuming the aliens have CON elements present, maximum fortification would be 6x for INF/STA and I believe 3x for VEH elements. Assuming a 2:1 infantry to tank ratio of formations, you're probably looking at an average 15x multiplier here so in the neighborhood of 4.5 million tons of ground forces - all of course heavily fortified and just waiting for some clueless human battalion to wander into the line of fire. Given the fortification levels involved you probably need something like 15 million tons of forces to weed them out, and 20 or 25 million would be far more comfortable in terms of assuring a safe margin of victory.
 
The following users thanked this post: skoormit

Offline skoormit

  • Rear Admiral
  • **********
  • Posts: 801
  • Thanked: 321 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1692 on: April 29, 2021, 03:06:59 PM »
...you probably need something like 15 million tons of forces...

The governor of my HW spit his coffee when he read that.

I guess I could park a massive terraforming fleet in orbit for a decade or two and strip off enough oxygen to kill the jungle (my game has 10% TF rate).
That would get the fortification modifier down to 2, which reduces my theoretical force requirement by a third.
I mean, 10 million tons of forces sounds like a bargain at this point.
 

Offline Sebmono

  • Chief Petty Officer
  • ***
  • S
  • Posts: 46
  • Thanked: 27 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1693 on: April 29, 2021, 03:27:45 PM »
If I have the "No Maintenance Required" option checked on in game options, are MSPs still needed to repair battle damage (via Damage Control) outside of a shipyard?
 

Offline Droll

  • Vice Admiral
  • **********
  • D
  • Posts: 1704
  • Thanked: 599 times
Re: Questions Not Worth Their Own Thread: C# Edition
« Reply #1694 on: April 29, 2021, 03:47:07 PM »
If I have the "No Maintenance Required" option checked on in game options, are MSPs still needed to repair battle damage (via Damage Control) outside of a shipyard?

Yes
 
The following users thanked this post: Sebmono