Aurora 4x
C# Aurora => C# Utilities => Topic started by: imaginary on June 26, 2020, 12:53:29 AM
-
Hi all
I wrote a small python script for missile optimizations in case someone is interested: https://github. com/jjermann/aurora4xMissiles
The optimizer really tries to check all possible missiles and allows arbitrary sorting of the results.
-
Thanks, this looks like a great tool!
I have one issue though, it suggested a missile with 330% Engine Power Modifier despite me having set calcContext.maxPowerFactor = 2
See this image:
(https://i.imgur.com/Tmh2Rh9.png)
Am I doing something wrong or is this a bug?
Also, I have suggestion: currently it looks like you can set a range for damage with only a set size. However, due to square damage being optimal, it might be useful to allow the user to choose for a set damage and a range in size.
-
Thanks, this looks like a great tool!
I have one issue though, it suggested a missile with 330% Engine Power Modifier despite me having set calcContext.maxPowerFactor = 2
See this image:
(https://i.imgur.com/Tmh2Rh9.png)
Am I doing something wrong or is this a bug?
Also, I have suggestion: currently it looks like you can set a range for damage with only a set size. However, due to square damage being optimal, it might be useful to allow the user to choose for a set damage and a range in size.
I guess it depends on how the maxPowerFactor is defined. If it is the same as in game, i.e., you engine boost tech, then 2x max boost for ships means 4x max boost for missiles.
-
Ah, my bad then. I only have 100% max power so I should have set it to 1 and not 2.
didn't realize missiles worked differently so by looking at the missile design screen I thought I was at 200%.
-
Thanks, this looks like a great tool!
I have one issue though, it suggested a missile with 330% Engine Power Modifier despite me having set calcContext.maxPowerFactor = 2
See this image:
(https://i. imgur. com/Tmh2Rh9. png)
Am I doing something wrong or is this a bug?
Also, I have suggestion: currently it looks like you can set a range for damage with only a set size. However, due to square damage being optimal, it might be useful to allow the user to choose for a set damage and a range in size.
I guess it depends on how the maxPowerFactor is defined. If it is the same as in game, i. e. , you engine boost tech, then 2x max boost for ships means 4x max boost for missiles.
Yes, you have to fix the size. You can choose the sort order though, for example:
topMissiles = example.printTopMissiles(sortFn = lambda m:m.getRange())
topMissiles = example.printTopMissiles(sortFn = lambda m:m.engineSetup.ep)
topMissiles = example.printTopMissiles(sortFn = lambda m:m.getSpeed())
instead of just
topMissiles = example.printTopMissiles()
Usually I fix the range and first figure out the damage and then I tweak the speed/Cth.
Ordering by ep usually gives a good result regarding speed/cth.