Pyfa: Abyssal cap batteries visually show warfare resistance bonuses as penalties

Created on 12 Dec 2018  路  7Comments  路  Source: pyfa-org/Pyfa

Bug Report

Expected behavior:

Abyssal cap batteries visually display a bonus to 'Capacitor Warfare Resistance Bonus' as green, and a penalty as red, like the in-game version displays.

Actual behavior:

Abyssal cap batteries visually display a bonus (green and bar moving to the right) as a penalty (red and moving to the left) and vice-versa for the 'Capacitor Warfare Resistance Bonus' attribute

Detailed steps to reproduce:

Apply mutaplasmid to a cap battery and change 'Capacitor Warfare Resistance Bonus' value

Fits involved in EFT format (Edit > To Clipboard > EFT):

EFT format does not export abyssal mods

Release or development git branch? Please note the release version or commit hash:

Release v2.6.1

Operating system and version (eg: Windows 10, OS X 10.9, OS X 10.11, Ubuntu 16.10):

Win 10

Other relevant information:

Seems to apply to all cap batteries, but other mods with negative value attributes (like webs) do indicate bonuses/penalties correctly

bug fixed logged

Most helpful comment

Nevermind, found a way to decrease value when scrolling up.

image

Now scroll up = make value better, scroll down = make it worse.

Also while i was at it, added function which finds more or less convenient increments (so that whole range fits more than 10 but less than 40-50 of them, with their base being 1, 2 or 5).

All 7 comments

Hey, in the DB it looks like energyWarfareResistanceBonus has highIsGood = false.

This sounds incorrect to me, however it is my (possibly flawed) understanding that the DB is extracted automatically from the game data. It's possible that this column was worked out manually and this was set to false by mistake. What do you think @blitzmann ?

Possible duplicate of #1686. I made a bug report ages ago, and it looked like CCP "fixed" it, but I think the fix was incorrect. I'll try to poke a dev about this again, and bump my bug report

as a fix for us in the short term, can manually adjust this attribute on db compile time

HighIsGood is set to 0 for energyWarfareResistanceBonus, which means the lower it is - the better (which is true), so issue seems to be on pyfa side - it doesn't work great with negative values.

Should be fixed in b8f53f9bb3ea59849b65a540a6e1e397f1f618d0.

I changed behavior a little, hopefully it is intuitive enough. I based all the logic on limitation imposed onto us by wx: when you scroll up in spinbox, it always increases value (that is, we cannot decrease its value when scrolling up if highIsGood=False, roughly speaking).

So, in range of available values (above roll bar), I'm putting min value to the left side and max value to the right, coloring them as good and bad accordingly.

image

Hopefully this behavior is acceptable, please check it out.

Or maybe anyone has a way to make value reduce in spinbox on scrolling up? If yes, could easily fix it the proper way.

EFT format does not export abyssal mods

It actually does, since previous release.

Nevermind, found a way to decrease value when scrolling up.

image

Now scroll up = make value better, scroll down = make it worse.

Also while i was at it, added function which finds more or less convenient increments (so that whole range fits more than 10 but less than 40-50 of them, with their base being 1, 2 or 5).

Nice catch, I didn't actually check to see if the high is good attribute was actually fixed. All the changes done see m to work really well, kudos!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tetractys picture Tetractys  路  8Comments

sincomil picture sincomil  路  9Comments

DarkFenX picture DarkFenX  路  14Comments

fonsui picture fonsui  路  12Comments

BessieBusybody picture BessieBusybody  路  3Comments