UPD: Added shadows on installed scopes/silencers/grenade launchers! Fix for misaligned scopes/silencers/grenade launchers. Adjusted to vanilla icons. Version for Cr3pis Icons will be released as a separate addon.
DLTX is required for this mod to work
Changelog:
01.02.2022 - Initial Release:
- Fixed bug when any icon inside rotated cells is displayed incorrectly.
03.02.2022:
- Added UICellItem:Create_Layer() fix from RavenAscendant icon override script.
- Fixed compatibility issue then player have any icon_override script.
- Script renamed to 'utils_ui_icon_rotation_fix_mcm.script' for loading early enough to modify the new game screens.
08.02.2022 - Update 1:
- Hand-picked positions for all silencers/grenade launchers and some scopes. Adjusted to vanilla icons.
- Mod is now require DLTX (for adjusting attachments position without conflicts).
11.02.2022 - Update 2:
- Upgrade icon in rotated cell is now displayed on the top-right corner.
13.02.2022 - Update 3:
- Added shadows on installed scopes, silencers and grenade launchers!
TODO:
- Check Boomsticks and Sharpsticks for any misaligned attachments.
- Add patch for Strogglet15 guns and few other weapon-replacement addons.
- Add separate version for Cr3pis Icon Pack weapons & attachments icons.
+ Add shadows to equipped atachments on weapon.
- Add support for custom attachment icon on weapon, not only attachment item icon itself.
Thank you muchly, this bugged me for far too long.
I didn't know you could turn the items in the inventory, thanks!
Hohoho, awesome fix, almost tired to see a "flying" silencer on RPK-74.
Excellent. Thanks.
Yeeeeeees!
Thank you 🙂
I didn't know you could turn the items in the inventory, thanks!
how do u do that ?
Just put your gun into primary weapon slot.
in the inventory not in the weapon slot
How do you make weapon verticle?
does this fix the missaligned silencers too? this looks like an essential addon, 10/10 of top, thanks
Wow what are those beautiful weapon-icons?
(buried)
There is NO change in the inventory, what does the mod do? The weapon in vertical position, in inventory only? How to rotate the weapon?
Some people write biblical explanations and others just put 4 letters!!!!!
It changes the way the icon looks when it's equipped.
Very odd, for me it's for sure better, but still not great. Silencers particularly are still all over the place.
Quick example screenshots, you can see what i mean. The scopes look good on those two, but the one on a mosin is still not right.
Before: Prnt.sc
After: Prnt.sc
Addon fixes just technical error in game scripts, not original positions themselves
Yeah i noticed that after comparing my screenshots. Still a good step though. Would you happen to have an idea if/how one could change these positions?
It can be done with manually adjusting positions for silencers for each misalligned case in config/weapons/w_weaponname.ltx
Icon offset is presented in silencer_x and silencer_y values.
I can recommend to use DLTX for get conflict-free result with other weapon modifying addons.
Awesome, will have to mess with this a bit. Thanks!
EDIT: Putting this here for anyone who wants it. I messed with some of the really bad placements for supressors and made them much better, I didn't line them up perfectly but definitely better. Pistols were tested in the sidearm slot, unfortunately putting them in the main slot is still kinda bad, regardless here ya go.
w_usp45.ltx -> UNDER [wpn_usp_match]:wpn_usp
silencer_x = 82
silencer_y = -11
w_sig220.ltx
silencer_x = 73
silencer_y = -13
w_sr25.ltx
silencer_x = 210
silencer_y = 22
w_rpk.ltx -> UNDER [wpn_rpk74]:wpn_rpk
silencer_x = 249
silencer_y = 11
w_m4a1.ltx
silencer_x = 215
silencer_y = 20
w_wa2000.ltx
silencer_x = 271
silencer_y = 25
w_9a91.ltx
silencer_x = 180
silencer_y = 12
In case of you planning to continue your work on fixing silencers coordinates, i started do this for all attachments on vanilla & BaS guns, so you dont need to waste your time.
I have finish pistols already :)
Upd: Also have a Shotguns, SMG, Snipers, half of Rifles
Upd: Finished.
if you mean vertically rotated search Enhanced GUI INC. but its not ready yet.
"misalligned attachments"
So you're misleading now?
Alas, makes it even worse for 1440p - Cdn.imgchest.com
i have a more complete version of this fix in the script C3ripis uses in his icon pack
Moddb.com
i should probably publish it separately as a widescreen UI fix but there are still a few other ultra widescreen things that need fixing.
Thanks, Nikita, will give this a try :)
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: ...y\gamedata\scripts\utils_ui_icon_rotation_fix_mcm.script:37: attempt to index global 'icon_override' (a nil value)
stack trace:
Oops. Fixed.
ye, no crash anymore
but when opening the inventory, there is now a stable freeze for 3-4 seconds. Perhaps it's worth leaving the previous version without shadows?
Можешь и со старой играть. Фриз ведь может быть и не связан напрямую с моим аддоном, кто знает, с чем там идет неправильное взаимодействие. По сути, подобных проблем вызывать просто нечему, так что, остается только тестить наживую.
Ну тени явно нагружают и без того лагучий инвентарь и это факт.
Мб есть варик как-то завезти оптимизацию ну или сделать возможность отключать тени через МКМ.
Тени иконок же не "просчитываются", это просто дублированная текстура, покрашеная в черный, которую подвинули на пару пикселей. Там буквально оптимизировать нечего.
Thanks, no more underbarrel silencers on the m9
Привет, будут какие-нибудь обновления для вашего аддона? Когда мое оружие находится в рюкзаке, все работает хорошо, Но когда оно находится в слоте, то прицелы снова стоят не там где нужно. Я использую SIMPLIFIED VISION UI и BaS
I noticed that this mod doesn't seem to be compatible with the Dynamic Icon Indicators mod. It seems to overwrite that mod and doesn't allow the icons to display.
Just something I noticed.
Not working, misleading addon.
Has massive DLTX conflict with Maid's Vanilla HD Icons, because that mod also includes different positioning fixes (they change the same fields to different values). Even though Maid's pack is Vanilla, and this addon is also Vanilla, they are not compatible.
It works for me with vanilla icons. Good mod.