Did you want to see weights on your items in the inventory? Me too! So I did this small mod that allow this! Ammo included!
Inventory! And Equipment!
Traders show weights as well!
INSTALLATION:
Copy gamedata folder into gamedata root game folder
CONFLICTS:
If you have any conflict you can modify files manually.
All UI XML files have new property weight that needs to be added (cnt fields in utils are moved slightly to make room for weight)
utils_ui.script has a new method UICellItem:Add_Weight that needs to be invoked during UICellItem:Update, also there need to be hide of the weight during reset function
PATCH NOTES:
v1.2:
- Fixed multiuse items weight
* If updating from v1.1 only update the "script" folder
v1.1:
- Fixed ammo weight in multi ammo groups (now your ammo won't weigh 40kg where in reality it would weigh <1kg ups...)
- Fixed weight for multi items where one item was never included in weight and thus display would show the reduced total weight of that item
* If updating from v1.0 only update the "script" folder
v1.0:
- Release
NOTES:
I used some more mods that are not part of this mod or vanilla for screenshots. I will not help you with conflicts, please see "Conflicts" sections to resolve issues.
Please credit me if you wish to use my mod, otherwise, you can do whatever with it! :)
Not compatible with 'Modern UI'.
Any Full modification UI will probably not work with this mod.
See the Conflicts section to fix any issues yourselves. Good luck
The only conflict file is 'ui_inventory_16.xml'.
Hi! Im take a one problem, mod show me weight = weight pack ammo * box_size, but real weight = weight pack ammo / box_size.
Чтобы было мне проще описать проблему напишу это на русском, так как я не уверен в своем английском. Дело в том, что когда я зашел в игру, он показывал массу патронов как: один патрон умножить на вес пачки патронов. Например дротики, в одной пачке 10 патрон - 0,4кг, значит 100 патрон должны весить 4кг, однако мод считает, что каждый патрон в пачке весит 0,4, таким образом выходит, что 100 патрон весят 40кг, но это не так. Я полез в utils_ui.script, но, к сожалению, не разбираюсь в структуре stalker's coding, чтобы самому это исправить.
self.weight:TextControl():SetText(round_100(weight * (cnt + ammo_cnt)) .. " " .. game.translate_string("st_kg") )
Я считаю, где идет расчёт веса необходимо добавить строчку round_100(weight * (cnt + ammo_cnt)/box_size.
Если что-то не понятно из google translate, я постараюсь перевести.
Надеюсь на помощь, спасибо!)
Happy new year!
I use next mods:
MP7 Texture Fix
ajko_maskDropletsFix_v1
Death Animations 1.5.1
EFT_Aim_Rattle_1.2
Exo Servomotor Sounds
Knife-Binoc-pistol
New Mutant Parts and Meat
Remove Mutant AutoAim
Aim Shake - Subtle
EFT Footsteps Sound 1.1
EFT_jump_and_land_sfx_v1.1
PreBlowoutMurder
Work Tool
Igi Tasks 2.11h2
Arszi Task Pack [Igi Tasks]
GT Task Pack [Igi Tasks]
BaseGame Task Pack v0.3h2 [Igi Tasks]
Extended dynamic tasks 1.4
Companions X10 Health Regeneration [1.5.1]
ARSZI'S BURER OVERHAUL 1.0
ARSZI'S CONTROLLER OVERHAUL 1.1
Arszi's Mutant Bleeding v1.1
SCO3 P.1 Real Mutant Sounds
SCO3 P.2 New Outdoor Sounds
SCO3 P.3 New Underground Sounds
Patch For ArszBurContr & SoundScape
EFT Style Weapons Re-position REDUX
JSRS P.1 - Main Addon
BlindsidesReanimationPackLoner11
Patch For EFT Pos & Blindside
Patch for Blindside & JSRS
Artefact_renovation v2.1
Trader Overhaul (Main Folder)
Patch For AR & Extended Tasks
Boomsticks and Sharpsticks 23-Apr-2021_1.5.1
Patch For AR & BaS & TO
Patch For BaS & JSRS 3.6
Dark Ambient
Patch For EFT Pos & Boomsticks
Simple Autumn Retexture(светлый) v1.1
No_grass_and_lods_1.1 (low pc & winter)
InventoryWeights
patch for EFT, K-B-P,InvW
Я сам сделал патч, просто перенеся строки из вашего мода в файлы других модов. Как мне показал JSGME, только ArtefactRenovation и Knife_Binocular_Pistol-slot использует одинаковые файлы.
Но я полностью перенес ваш скрипт считающий патроны, поэтому конфликтов точно нет.
Hey, Thanks for noticing the issue. I will try to fix it as you are right about that one! I knew ammo could not weigh 20-40 kilos but took it for granted :D
Thx for fix! I vote 10/10 for ur mod) all working
And again I am, and again with a bug. In a nutshell, I have 2 flasks of water for a different number of uses. So if the first flask weighs 0.66 kg, then the total weight of all flasks is 1.33 kg, but the second flask for 3 uses weighs 1.33 kg, which in total should be 2kg, but not 1.33 kg.
If I throw out a 0.66 kg flask, and then pick it up, then the weight will already be 2.66 kg, that is 1.33 * 2
Thank you for noticing! Fixed it! :)
to all who have any other UI and have any error with ui_inventory_16.xml. You must copy this
<weight x="-1" y="-1" width="27" height="11" stretch="1">
<texture a="200">ui_item_count_back</texture>
<text x="0" y="0" width="27" height="11" f color="ui_2" align="c" vert_align="c"/>
</weight>
and copy in all <---slots---> inventory under </highlight>
ex. :
before paste
<cell_9 x="190" y="376" width="73" height="36" stretch="1"><!--9 Detector -->
<pic stretch="1" align="c" alignment="c"/>
!!!!!!<highlight stretch="1">!!!!!
<bar x="11" y="40" width="48" height="6" horz="1" min="0" max="1" pos="0" stretch="1">
<progress stretch="1">
<texture r="142" g="149" b="149">ui_inGame2_inventory_status_bar</texture>
</progress>
</bar>
</cell_9>
after paste
<cell_9 x="190" y="376" width="73" height="36" stretch="1"><!--9 Detector -->
<pic stretch="1" align="c" alignment="c"/>
<highlight stretch="1">
<texture>ui_inGame2_detector_highlighter</texture>
!!!!!!!</highlight>!!!!!!!!
!!!!!!<weight x="-1" y="-1" width="27" height="11" stretch="1">
<texture a="200">ui_item_count_back</texture>
<text x="0" y="0" width="27" height="11" f color="ui_2" align="c" vert_align="c"/>
!!!!!</weight>!!!!!!
<bar x="11" y="40" width="48" height="6" horz="1" min="0" max="1" pos="0" stretch="1">
<progress stretch="1">
<texture r="142" g="149" b="149">ui_inGame2_inventory_status_bar</texture>
</progress>
</bar>
</cell_9>
I have Modern UI 1.0.0 and works in 100% (I have many others mods to. HD icons, Trader Overhaul etc..., etc... and WOW game still work ;))
это совместимо с (BaS последняя версия)?
Hey! Love the mod and I cant imagine playing without it, that why It pains me so much that I cant find any way to merge is with Moddb.com
Whenever I merge utils_ui.script no matter which way I try copy lines it crashes game on inventory open. Any idea why or some help? 😅
Check the comment section on Mouse Over Transfer Item page.
1)Compatibility patch for Fixed status bar items( Moddb.com )/Патч совместимости для Fixed status bar items addon( Moddb.com )
Drive.google.com
2)Compatibility patch for Modern UI v2.0.5( Moddb.com )/Патч совместимости для Modern UI v2.0.5( Moddb.com )
Drive.google.com
Download at your own risk, I'm not responsible (but I assure you that everything works fine for me)/Скачивайте на свой страх и риск, ответственности не несу (но уверяю вас, что у меня все работает нормально)
Does anyone on the clean original inventory HUD also have a problem with the bars at the bottom of the screen in the center?
Their position is shifted upwards.
Hello.
Is it possible to make this so, that you could toggle "show weights" on or off with some keyboard key.
Regards.
Sad..this isn't working with Better stats addon,stats bars became displaced :/
I made a patch for this to work alongside Shift Hover Transfer (the quick transfer) inventory mod. For some reason when one was being overwritten by the other, the losing file would lose functionality. I copied over some of the files from the utils_ui.script xml file. Simply place this after inventory weights and shift hover transfer in your mod organizer.
Drive.google.com
I wish there was a script that make this togable with a hotkey