Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Xavorion is a huge overhaul, its incompatible with most other mods. This isnt something i can fix.
Ok, no problem, since it only affects T51 it doesn't seem serious to me, thanks for answering and reviewing it.
Had a look in to Turretgenerator.lua, I seem to have overlooked a function which does affect the range for mining/salvage turrets. Fixing it would likely cause incompatibilities with other mods though.
I tested it in-game shortly before making my comment and it gave expected values, although I didn't test all the way up to T51, are you using any other mods which touch turrets? It may be better if you DM me here or on the modding discord to help figure out the problem.
weapon.reach = math.floor(225 + ((tech / 50) * 225) + (((rarity.value + 1) / 7) * 350))
Calculating with the example I have:
Tech 51 -> Dual Prospector -> Exotic
225 + ((51 / 50) * 225) + (((6 + 1) / 7) * 350) = 801 -> 8.01Km
In game it shows 26.11Km (The turret has no range affixes added)
Something in the calculation is wrong.
Default reach is 3x higher (225), but it can additionally scale from tech and rarity.
With tech 1, and rarity -1 (grey), the result is 229. Tech 50 would take that up to 450. You seem to be evaluating the formula incorrectly?
If you want to test in Excel, use this:
=FLOOR.MATH(baseReach + ((tech/50)*techBonus) + (((rarity+1) / 6) * rarityBonus))
The reach in-game isn't a real km, so 459 shows as 4.59km. You can test this yourself by hardcoding to a value like 500, it'll show 5km.
There is one issue I forgot to update though: The /6 should be /7 as there are 7 rarities. I've just corrected that.
I have tried the mod, and I have seen that mining and scavenging turrets of between 15 and 21 kilometers are generated, when you indicate that they should be only 3 times more.
When reviewing the script you indicate in comments that the maximum should be 8 kilometers for mining and 16 for Raw.
In the formula (225 + ((tech / 50) * 225) + (((rarity.value + 1) / 6) * 350)) even if it is a level 1 technological and rarity 1 turret the result is 346, by the rule of three that I have done that already exceeds 331.9 which would be the equivalent of 8 kilometers.
I think the correct formula would be (225 + ((tech / 50) * 225) + (((rarity.value + 1) / 6) * 35)) or something similar.
Is it a bug or have you decided to leave it like that?