Provides better information and functionality in inventory display to resistance bars
WARNING: ITS NOT COMPATIBLE WITH THE LATEST HUNGER THIRST SLEEP BARS, USE THIS MOD INSTEAD: Moddb.com
This mod aims to enhance player's resistance statistics bars in inventory menu:
- Displaying bonuses and penalties of each artefact/attachment/pelt when hovering over it. The new bars will be displayed on top of base ones, showing the difference in the stats
- Pressing Left Alt button will show the stats at full condition for easier comparison between different condition items
- A new way of calculating player's resistance by using actual damage values of all possible game things, with filtering of stuff that will one hit kill you regarding of the protection. (Can be disabled in MCM by the field "Use Game Values")
This option will make bars represent protection against actual game threats (npcs, mutants, anomalies), based on their damage values, elemental types, and also includes corrected behaviour of outfit and helmet protection.
In this mode:
1. the 1/3 of the bar usually represents fire, acid and psy fields, weak mutants and pistol caliber firearms.
2. 2/3 of the bar represents anomaly mines such as electric, gravitational anomalies, burners and acid pools, psy dog attacks, average strength mutants and intermediate firearms.
3. Full bar represents protection against strongest mines, fields, controller attacks, strongest mutants and high caliber firearms..
This is mod agnostic so if you have any mods that changes damages of things, the bars will react accordingly.
Don't worry if you see the protection on the lowish side even in science outfit, since maximum of the bar is maximum damage possible, filling the bar will make you completely immune to that type of damage.
- The MCM options with all stuff to tweak: colors of bars, position of them relative to base, compatibility with EFP, GAMMA UIs and compatibility with ARX for more correct display of stats
CHANGELOG
UPDATE 7:
- Attempt to fix the ui_inventory.script:594: attempt to index local 'npc' (a nil value) crash
UPDATE 6:
- Added alternative mode for displaying stats for acid protection (enabled by default), it should make acid bar more usable at the cost of exact precision of protection display
- Fixed crash due to typo if some booster item has boost_burn_immunity property (thanks Nyarauder for feedback)
UPDATE 5:
- Small bandaid fix to display stats when item condition is exactly 0.0%, it wont be precise in this case but wont mess up your game
UPDATE 4:
- Corrected display of boost of health items
- Added "ABF Compatibilty" option in MCM, which will more accurately display stats if you have ABF mod installed (Moddb.com)
- Fixed crash for displaying thirst and sleep stats when using GAMMA UI compatibility option
UPDATE 3:
- Support for health and hunger, thirst and sleep bars. In health case, the resulted bonus you'll see is the total amount of health youll receive upon expiration of health item boost. So items like Yaduling or Antiemetic will show quite a bit of health restore and they really will restore, if you wait for long enough
- New mode for displaying stats called Max (No Mines). In this mode for chemical, burn and psy anomalies, only max damage by fields will be accounted for calculation.This is useful if you want to know exact protection against fields and plan to avoid stepping on mines and dont care about those
UPDATE 2: Added full condition display, Pressing Left Alt button will show the stats at full condition for easier comparison between different condition items. Compatibility with StatsDisplay mod from Nitpicker's Modpack
UPDATE 1: Added support for drugs, medkits, food or anything that boosts your stats temporarily, added support for outfits and helmets, bugfixes, added patch for tooltip
Hell yes, I have been needing this, thank you so so so so much!!!!!!!!
Could you maybe implement a patch for a mod called Hunger, Thirst, Sleepiness mod, it modifies the same UI. Thank you!
If you use this: Moddb.com
Then its compatible from the get go
if you use old version: Moddb.com
Then tick "compatibilty with gamma ui" in mcm, it should work
is your addon compatible with this addon? ( Moddb.com )
should be, you have to tinker with mcm settings for it
Your addon seems to work on this interface, but unfortunately there is no visual indication.
( Drive.google.com )
You have to position the mouse pointer over an article with properties to show you the values. (As an artifact or mutant skin)
And the article has to be in the backpack, before being placed in the slot
you didn’t understand me. but generally solved the problem by enabling compatibility with the EFP
I looked at your screenshot and I saw that the pointer was not on any element, that's why I told you that to show the bars you had to put you on it, sorry if I did not understand, English is not my language and some things I understand them distorted (the translator much does not help either understand phrases)
no problem,английский тож не мой язык
looks very interesting. will give it a try
Жирно, жирно
Great addon. Maybe you can add numbers of weapon stats? Like damage (0,47 or 47 damage points), firerate (900 rounds per minute) etc... And durability number too.
Moddb.com
Here, StatsDisplay
Awesome, thank you, lifesaver.
And what do you think about making an addon that shows how much time left in the character's buffs, instead of the usual icons that do not give an idea when the buff is over
Great work man, thanks!!
Thanks for this also.
10/10
Great work !
Excellent mod, instantly added!
Do you think it's possible to replicate the same feature for armors too in the future?
there will be updates for sure, i'll see how it will go
Thanks for built in EFP 3.0 ticker option in MCM!. Rated 10/10 for not only being a cool and innovative UI mod but also considering compatibility as well. You are the man!.
wow thanks, today i got weapons stats and this! a whole new game <3
(buried)
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...amedata\scripts\zz_ui_inventory_better_stats_bars.script:285: attempt to perform arithmetic on local 'd' (a nil value)
stack trace:
(buried)
ok now it works, I have given it a third chance, I installed it again and tried it in MCM Gamma UI, and now it works.
Question: is your mod also able to show the statistics of this mod "Artefact Renovation"?
Because of your null ability to answer 1/10 because there is no zero.
Thank you very much you are very "kind"
More fools to put negative karma, for saying the author who answered others (in more than 36 hours since the question), while not telling me if he had ******* idea, of the crash of my game, not a ******* word, I do not understand, is not supposed that its placed here a mod, and you want to help people?
Of course now everyone is asking for a donation, so if you are very quick to answer, ok I get it.
1. The world doesnt revolve around your majesty and im not obliged to answer everything. I've read your message nevertheless.
2. you just embarass yourself with that attitude, chill the **** out and touch the grass
(buried)
Of course, "you are not obliged to respond", it is only called "giving a little help", it must be difficult in the times we live in.
36 hours until you write, but not to answer the questions and doubts, thanks.
I insist you are very "kind".
JoJ
🤡
Love this mod, I can see this becoming part of the vanilla release in the future.
Best part is how it made me discover that Army Medkits and Vinca pills offer similar Rupture and Ballistic resistance bonuses as Morphine and Metamizole shots, despite not being mentioned anywhere in their description. Now, forget the medkits, since their effects last too little to be of any practical use; but for Vinca it is a pretty significant revelation since they can last enough to work as combat stims while offering some fairly significant protection, comparable to an Improved Carbon Plate - which I also found out through this mod.
That is great, thank you very much.
is there any mod that just has the full condition display option and nothing "extra"?
Pressing Left Alt does nothing for me?
Redownloaded just to be sure.
Hello. First, i want to thank you for this mod. Great job done! I also want to ask one question. Alot of items show green bar exactly same size as the original value, no more no less. Hence, how do i understand the meaning of such green bar? Does it mean no bonus added at all, or does it mean that bonus size is so insignificant that it can be not taken into account?
it means that bonus size is insignificant to be displayed
Hello. Very good work, thanks for ur mod. I have one question, about using other UIs. I currently have Modern UI installed, and as expected, the mod does not work. What can I change to make the bars display correctly?
UPD: Everything works. Shitpost moment, sorry :)
Thanks for the update, you really are covering all the possibilities of your addon idea!.
This comment is currently awaiting admin approval, join now to view.
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: d:/games/anomaly 1.5.1\gamedata\scripts\uiinventory.script:620: attempt to index local 'npc' (a nil value)
stack trace:
The crash is due to the backpack animation in the FDDA mod.
If you drop the backpack, make a stash, and then pick it up and try to open the inventory - there will be a crash.
Address the issue to FDDA author
Crash occurs while using Better Stats. If you disable the Better Stats, then there is no crash with the animation of the backpack
Address the issue to FDDA author
Or whatever mod author that alters that file, my mod doesnt touch it
Is it possible to add a third, yellow, bar?
This is very useful for showing the pointlessness of the buffs of weaker injections if a stronger injection was used.
So, for example, if you are using morphine and then want to use a weaker injection, choosing a weaker injection will show a red bar, as if it were a debuff. Although in reality it simply shows the futility of using a weaker drug, since a stronger one has been used and its validity has not expired.
Imgur.com
Does this work with Modern UI
it does
Very good, thanks!
I found a very specific bug and a quick (but probably not proper) solution to it. In short this mod prevents other scripts from reading key presses until next game load after disassembling an item.
When I disassemble an item by drag-drop method holding left alt key then after the disassembly keys that aren't used by the most basic functions stop working/responding in the game. This is for example map key (I replicated the problem when I set the map key as a movement key) but not open pda key. So for example when I have open map set as "M" I can't open the map with "M" after the drag-drop method disassembly. The bug doesn't appear when using context menu (right click) disassembly even if you need to hold alt.
The bug exists only if this mod and Mags redux ( Moddb.com or Github.com) are simultaneously installed. I don't know why the bug requires Mags redux but if my memory serves me right then when I had Mags redux and v2 of this mod the bug didn't exist.
So to replicate:
1) have both mods as the latest version
2) have "hold (alt) button for disassembly" enabled in controls settings
3) have pda in the right inventory slot and have map keybind (eg "M") in the settings
4) disassemble leather jacket (novice_jacket) with a swiss knife (swiss_knife) using drag-drop method while holding left alt
5) use the map key => the map doesn't open
The solution I'm using is that in zz_ui_inventory_better_stats_bars.script on line 1331 I define some other key than alt. For example
full_stats_keys = {
[DIK_keys.DIK_K] = true,
}
This way I bypassed the bug but it's a dirty fix and the actual cause for the bug still remains. Also since you have MCM anyways then it's nice if you'd add an option to change the keybind in MCM.
that table is global, you can write your own script file and add to that table your own key to use, so it wouldnt be rewritten every time after update. I have no plans yet to add mcm keybind
ARX + ABF compatibility , thank you so much
Thank you
Hi! So got some bug. After installing your mod all my inventory stats bars moved from their original positions. Heres the screenshot Dropbox.com
Played woth my other mods. Looks like its not compatible with InventoryWeights.v1.2 mod. Sorry for disturbing. Probably can live without weigt mod