26032 Posts in 4384 Topics - by 9613 Members - Latest Member: Kelarius

Author Topic: Fighters can have invalid stats  (Read 789 times)

Two

  • Newbie
  • *
  • Posts: 16
    • View Profile
Fighters can have invalid stats
« on: September 27, 2017, 08:34:21 PM »
My mate just created a railgun that erroneously had 0.05 fire rate instead of 0.5 as the tooltip showed. I made a fighter out of that, and it has -inf fire-rate.



The weapon that was used to create the fighter:

« Last Edit: September 28, 2017, 10:29:36 AM by Two »

Pyrax

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Fighters can have invalid stats
« Reply #1 on: September 28, 2017, 12:22:30 AM »
Oh god. Looks like a floating point arithmetic error, probably due to truncation. Looks like they need to have a catch to set a minimum fire rate for fighter creation...

Have you hopped in to pilot one manually yet, if so how does it play test? Does it 1-shot anything, do zero damage, or somewhere in between?

Hopefully it doesn't crash the game/server.

Two

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Fighters can have invalid stats
« Reply #2 on: September 28, 2017, 10:22:44 AM »
It puts every client in the sector into an endless loop halting all game-play as soon as it starts shooting. The good thing is that it has an infinite cooldown till the next shot, so you can terminate the game and log back in after a minute or so. As much as I can tell the first shot did normal damage.


lyravega

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • Steam
Re: Fighters can have invalid stats
« Reply #3 on: November 11, 2017, 09:33:19 AM »
At first, I thought this can be an error on my part, but but reading the reply above, I think it isn't. I think creating a fighter does a flat reduction on the fire rate, and since that one has a very low amount to begin with, you end up in a negative fire rate, and the weird results here.

Just to be sure, can you guys disable the mod and see if it persists? I'm pretty sure it's not my mod, but as I've said, just to be sure. Also, is the vanilla tooltip showing the same fire rate for the weapon? I don't understand that part; is it showing 0.05 but shooting at 0.5?
Detailed Turret Tooltips - mod for all your turret info needs
Compass-like Gate Pixel Icons - unnecessary quality of life improvement

Poke me on Steam for updates