20897 Posts in 3507 Topics - by 7110 Members - Latest Member: twodkyle

Author Topic: [Mod] Detailed Turret Tooltips  (Read 23770 times)

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
[Mod] Detailed Turret Tooltips
« on: February 09, 2017, 06:10:49 AM »
Detailed Turret Tooltips - v0.020
Alters the turret tooltips to give much more information to the player, aiming to make weapon comparisons easy. No German translation available. There are so many changes, take a look at the screenshot under features if you haven't! Download at bottom of the post. If you are on beta/0.12.x branch, download that one!

Spoiler: "Features & Terminology" • show


DPS Calculations
-DPS: Your usual DPS. Shown for weapons that do not overheat
-EDPS (Effective DPS): Takes cooldown into account, and replaces DPS stat for any weapon that can overheat

Turrets with Heat Mechanic
-Uses EDPS
-Buildup: Heat per shot stat in the middle, and "time to heat" (0 > 100+) in seconds on the right
-Cooldown: Cooling per second in the middle, and "time to cooldown" (100+ > 0) in seconds on the right

Burstfire Turret Stats
-Uses EDPS
-Burst Damage: Displays "projectiles per burst"x"damage per projectile", replaces "damage"
-Burst Cycle: Time between bursts (overheat + cooldown), replaces "fire rate"

Energy Turret Stats
-Split into two; energy turrets that drain battery, and energy turrets that consume power directly - at the end both has the same effect but the way they do it is different)
-Base Drain/Demand: Initial usage for the energy weapons, recalculated to reflect the actual usage
-Accumulation Rate: Cost increase per second/shot, recalculated to reflect the actual increase
-Normalization Rate: Cost decrease per second, added as an extra stat
note: as you keep firing the energy weapons, their cost will increase (accumulation as I call it), and when you stop firing them, their cost will return back to base (normalization as I call it)

Beam Turret Stats
-Tick Rate: Replaces "Fire Rate", how many times the beam will strike the target in a second. For fluff mostly
-Tick Damage: How much damage each tick will do to the target. For fluff mostly

Shield/Hull bonuses
-If present, these will split the damage values into two, displaying both values instead of a single value

Extra Stats
-Velocity: Muzzle Velocity; how fast the projectile travels
-Tracking Speed: How fast the turret turns (unit unknown)
-Range: Range is calculated instead of taken for granted
-Shield Penetration: The vanilla shield penetration chance, moved to a relative position
-Hull Penetration: The somewhat hidden value for Railguns; how many blocks they can penetrate
-Multiple Projectiles (if applicable): How many projectiles each weapon will fire (from vanilla, you saw this as DMGx2 etc...)
-Synchronized Weapons (if applicable): How many weapons that the turret will fire (was missing from vanilla, NOT the same as above)

Merged Stats
-If a Salvaging beam has "+hull damage%" then this is added to the "Salvaging" stat
-Mining beams include the +20000% bonus in their "Mining" stat

Some extra info
-Like, if the weapon consumes power or generates heat (duh)
-Or, that the mining/salvaging beams deals no damage to shields

Look Overhaul
-WIP. So far looks alright in my opinion, but as I've said: WIP. Any suggestions are welcome!
-Moved "Tech" and "Material" above
-Painted stuff a little bit
-Renamed a lot of stuff
-Added units (if known)
-etc... etc... a picture tells a thousand words they say, so check the screenshot out if you haven't!

...and a few more that I forgot while writing/editing this

Spoiler: "Notes" • show
-There are 2 cases where EDPS is slightly inaccurate. But from 0 to 100, or 100 to 0, I'd say accuracy of calculations are over 99%. The first case is, latency/game tickrate (?) causing you to fire an extra or a less shot. The second case is, overheated weapons do not have to fully cooldown in order to fire again.

-Energy weapons are weird. Especially the continuous ones. I tried my best to figure them out, and result portrays closer stats to the ship stats that you can see by checking power consumption and such.

-Force turrets are weird as well. I displayed my own results instead of the game's results because vanilla tooltips can show positive force for the turret as a whole while the individual weapons may have negative force which makes absolutely no sense.

Spoiler: "Change Log" • show
v0.021
-For cases where a turret/fighter is spawned without any weapons, added a failsafe that'd keep the mod from getting set to invalid by the game
-Mirrored an (so far) unused line from the vanilla tooltipmaker.lua

v0.020
-Added "Shield Penetration" and "Hull Penetration" stats
-Added info for weapons that are ineffective against stone (basically, all lightning weapons)
-Fixed "Tick Damage" showing incorrect values for applicable weapons (apparently, Tesla Guns can have "Synchronized Weapons", unlike any other continuous beam)
-"Range" is now calculated (it'll show correct range values for crafted weapons; a bug prevents real range from being altered for them, I'll make a fix/mod for turretfactory.lua later on fix for turretfactory.lua)
-"Force" stats now display the individual weapon force; for some reason turret stats show wildly different things (different things as in tooltip showing positive turret force while the weapon force is actually negative)

v0.012
-Corrected DPS for turrets that overheat in one shot, also these turrets display "Instant" for "Buildup" stat instead of 0
-Moved some stuff to the bottom of tooltips (colorful-special stuff like "Independent Targeting")

v0.011
-Hull Damage icon is not a shield icon anymore
-(Hopefully) Some weapons that caused an issue (blank tooltips, no buy/sell options) shouldn't cause them anymore

v0.010
-Cleaned the code up a little bit
-Renamed stuff in, cleaned and beautified the tooltip a little bit
-Added Hull/Shield damage calculations if the weapon has any bonus for those
-Merged some stats; the stone damage bonus is added to "Mining", and hull damage bonus (if the turret has any) is added to "Salvaging"
-Added a few (just two) info tooltips; Mining and Salvaging turrets are ineffective against shields, energy weapons use the energy in different ways
-Corrected energy drain/demand calculations
-Changed how burst damage looks; instead of showing total damage, now shows #projectiles fired before overheating and damage per projectile
-Corrected a potential bug related to overheating weapons
-etc... a few more stuff under the hood

Spoiler: "Known Issues" • show
If the game is crashing when looking at a tooltip, it is a game bug, not a mod bug. When the game detects that something is wrong in a mod, it'll simply set it to invalid and that part of the game won't function. For example, as this mod deals with weapon tooltips, if something was wrong, it'd show a blank tooltip but everything else would work fine.

TL;DR: Game crashes related to tooltips are not caused by this mod.
« Last Edit: July 10, 2017, 12:01:10 PM by lyravega »
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Kane Hart

  • Sr. Member
  • ****
  • Posts: 271
  • The Talk Too Much Guy!
    • View Profile
    • My Youtube
Re: [Mod] Detailed Turret Tooltips
« Reply #1 on: February 09, 2017, 06:14:42 AM »
Oh damn another one. Yours seems a bit more detailed but also a bit harder on the eyes to follow but sweet stuff.

There was another one today but it's not as detailed:
http://www.avorion.net/forum/index.php/topic,1626.0.html

Glad to see you guys and girls pumping out the mods :)

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Detailed Turret Tooltips
« Reply #2 on: February 09, 2017, 06:20:13 AM »
Oh damn another one. Yours seems a bit more detailed but also a bit harder on the eyes to follow but sweet stuff.

There was another one today but it's not as detailed:
http://www.avorion.net/forum/index.php/topic,1626.0.html

Glad to see you guys and girls pumping out the mods :)

I had to put some unnecessary stuff in to keep the stats aligned from weapon type to weapon type. Put the most important stat on the top though; DPS. For now I'm happy because I wasn't able to play the game for 2 days as I was trying to finish this up heheh. But I'll clean it up later on. So far, as I've said in the title, happy with the progress to share.
« Last Edit: February 09, 2017, 06:32:26 AM by lyravega »
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Kane Hart

  • Sr. Member
  • ****
  • Posts: 271
  • The Talk Too Much Guy!
    • View Profile
    • My Youtube
Re: [Mod] Detailed Turret Tooltips
« Reply #3 on: February 09, 2017, 07:35:10 AM »
Yup I think it's great. Everything will get adjusted overtime. I know the longest time I was so confused from weapon a to weapon b etc. I just put them on and watch how bad they were and then just went with whatever I felt was good.

WARGAMES

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #4 on: February 09, 2017, 07:50:06 AM »
I love this in all the info gleaned.  it's amazing.  it's like looking at game ini files but in-game all over again from C&C games but with dps perspectives.

LoSboccacc

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #5 on: February 09, 2017, 08:11:56 AM »
Is this client only right?

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Detailed Turret Tooltips
« Reply #6 on: February 09, 2017, 09:17:46 AM »
Some progress on the cleanup, could use your opinion
http://steamcommunity.com/sharedfiles/filedetails/?id=860138389

Yup I think it's great. Everything will get adjusted overtime.
Any opinion on the cleanup progress linked above?

I love this in all the info gleaned.  it's amazing.  it's like looking at game ini files but in-game all over again from C&C games but with dps perspectives.
Heheh, thanks.

Is this client only right?
Don't know how multiplayer works for this game, so I'm not sure. This mod only alters 1 file that generates tooltips.
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Kane Hart

  • Sr. Member
  • ****
  • Posts: 271
  • The Talk Too Much Guy!
    • View Profile
    • My Youtube
Re: [Mod] Detailed Turret Tooltips
« Reply #7 on: February 09, 2017, 09:34:22 AM »
Looking better but there is so much info that it makes a bit hard to know what your looking at. Maybe color code some the more critical information like the main dps is what most want to see for example.

LordHavoc

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #8 on: February 09, 2017, 02:55:18 PM »
YES!
A way to determine which guns are good or not!

WARGAMES

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #9 on: February 09, 2017, 11:43:22 PM »
what's with the "damage x" and the next line "/shot"?  mostly the /shot part as it looks confusing after reading damage x

Berkys32

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #10 on: February 10, 2017, 08:22:07 AM »
So synchronized weapon means its DPS is divided into all shots? And same for multiple projectiles?

eastwood6510

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #11 on: February 10, 2017, 10:24:06 AM »
Love this. Going to test it out now

Edit: Been testing this, this is perfect!

All we need now is a way to sort our turrets automatically by the actual 'dps' instead of just having to sort by "damage" (which more often than not as it turns out, is extremely unreliable)
« Last Edit: February 10, 2017, 11:01:18 AM by eastwood6510 »

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Detailed Turret Tooltips
« Reply #12 on: February 10, 2017, 05:09:21 PM »
what's with the "damage x" and the next line "/shot"?  mostly the /shot part as it looks confusing after reading damage x

It is a typo. "Damage"..."/shot" means damage per shot for example.

So synchronized weapon means its DPS is divided into all shots? And same for multiple projectiles?

The topmost damage number includes all extra shots. The second damage number may have "4xDMG"; this is either due to Synchronized Weapons or Multiple Projectiles or combination of both.

Love this. Going to test it out now

Edit: Been testing this, this is perfect!

All we need now is a way to sort our turrets automatically by the actual 'dps' instead of just having to sort by "damage" (which more often than not as it turns out, is extremely unreliable)

I'll look into that!



I've been playing the game and encountered a turret factory cluster, good for testing. I noticed that increasing fire rate doesn't change weighted damage, so I ran through my calculations again to double check and found out this is correct but I feel like I need to point this out somehow. Less fire rate means the turret will cooldown more between each shot, allowing more shots to be fired, but it'll also increase the length of a cycle (cycle being "time to overheat" + "time to cooldown") resulting in same weighted damage numbers.

Also, turret factories are fun. You can get weapons with 0 fire rate, -damage, -mining, etc... Good stuff :)
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

FreddyAVO

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [Mod] Detailed Turret Tooltips
« Reply #13 on: February 10, 2017, 09:18:55 PM »
Nice mod deffinitly going to use. very handy with my own modified dps weapons and stuff
For those that areactually interrested in what the change is
https://www.diffchecker.com/QJjNR6eJ

lyravega

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Steam
Re: [Mod] Detailed Turret Tooltips
« Reply #14 on: February 11, 2017, 07:22:34 AM »
New version up!
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement