Description

New masks overlays with fixed and improved shaders. Reflections and Refractions for all helmets, 4K resolution compatible. 100% conflict free thanks to RavenAscendant. Based on the work of Nav, Thfpjct and LVutner.

Preview
[2.1.0] Masks and Reflections for 1.5.1
Post comment Comments  (0 - 50 of 130)
manzmnl
manzmnl - - 485 comments

This is nice. If we could now manage it to get these working with dynamic lighting enabled, that would be even more great! Since these overlays will only work with static lighting so far..

Reply Good karma Bad karma+4 votes
Grokitach Author
Grokitach - - 895 comments

This would indeed be awesome. But it requires in-depth modificiation of how the engine is managing the masks HUD.

For ambient lights to be properly shown on the mask HUD, it is required to put meshes, textures + their bump maps in front of the character PoV and adjust it to the game's FoV. It's a very complicated and tedious task. This will not be available before a long time.

Reply Good karma+6 votes
manzmnl
manzmnl - - 485 comments

Yep, it might become true some day, when Anomaly gets updated. At least I hope so. The the simpler solution would be to implement mask overlays in DX11.

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

Well it's more complicated than that. I have to make normal maps for masks textures and design new shaders, one for each mask texture and normal map.

Reply Good karma+3 votes
Guest
Guest - - 689,112 comments

eyy good job man!!

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,112 comments

Looks amazing - thanks!

Unfortunately I have the reflections enabled even after removing a mask. Running the console command fixes it, but if I wear a mask and remove it the reflection persists once again. I'll see if I can dig anything up as to why it might be.

-- Update: Turns out that "debug mode" causes this to happen. When I've got debug mode off it runs flawlessly, minus having to run the command or play the helmet on/off game on loading a save.

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

I'm trying to fix it but it's really a nasty bug... If you have animations disabled it is even worse to get rid of the reflections while no helmet is equipped. I'm trying to fix this issue.

Reply Good karma+1 vote
Guest
Guest - - 689,112 comments

What's the console command?

Reply Good karma Bad karma+1 vote
WastedSky
WastedSky - - 631 comments

Your addon is nice, I don't suffer from the issue people mentiosn above, I have another, one, the reflection has a weird overlay:

Imgur.com

Is that black semi circular thing, any idea on how to fix it? Thanks!

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,112 comments

Can you take a less crowded picture, for instance in the test level: F1 > F2 then F7 Item Spawn > Helmet, equip it and take a picture? I don't see anything wrong in your picture I think ?

Reply Good karma Bad karma0 votes
WastedSky
WastedSky - - 631 comments

It's the strong vignette effect :( I don't like it.

Is there a way to modify it? I just saw that is due the brightness and gamma setting, I wonder if there is a texture to modify the borders, they are really strong causing that vignette effect.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,112 comments

You can deactivate it. Modifying it might be a pain... I'm seeking ways to add new ones to the game or modifying the existing reflection shader but I have a hard time finding it...

Reply Good karma Bad karma+1 vote
Dalabak
Dalabak - - 196 comments

Incompatile with Arszi's rad overhaul, unfortunately.

Reply Good karma Bad karma+2 votes
Grokitach Author
Grokitach - - 895 comments

Compatibility Patch incoming

Reply Good karma+1 vote
Dalabak
Dalabak - - 196 comments

As unfortunate as it is, i think this is also incompatible with the Trader Overhaul from AGoodSetofPistols. Sorry. ):

Reply Good karma Bad karma0 votes
Grokitach Author
Grokitach - - 895 comments

There's no incompatibility between both add-ons as they don't change the same files.

Otherwise, I would gladly know which files are modified by both add-ons :) (i.e. conflicts when merging gamedata folders from both add-ons).

Reply Good karma+1 vote
Guest
Guest - - 689,112 comments

A few problems: first, the reflection (from the sides) doesn't go away when you take off your helmet. Second, if I use the blurred version from Nav's mask overlays it gets overridden to normal version when I apply this patch. Not a big thing but if there's a workaround that I don't know please do tell.

Reply Good karma Bad karma0 votes
Grokitach Author
Grokitach - - 895 comments

I upscaled the masks to 4K but I didn't make the blurred version of the masks yet (I guess I'll rely on automating the process using image magick). It might come in a future patch which also include file storage and perhaps loading optimisations by compressing the textures in a db0 file.

Concerning issues about the reflection on the side without a helmet, I have to investigate it but it's a complicated issue since lots of parameters have to be taken into account (animations enabled, DX11-10-9, debug on or off...). With the recent patch, I thought I fixed it, at least in my game installation, so I have to test all these parameters to be sure about whats going on.

Although, most of the game we have helmets on, and removing a helmet with the effects, i.e. 95% of the helmets, removes the lens effect as well as the mask HUD, so in a usual playthrough the mod shouldn't have any issue. Now I don't play without animations and Edge of Tomorrow style by constantly loading back my save as some people are doing, and I guess that my addon might bug in that case. Not sure I want to spend some time fixing that issue if it only appear in some of these extreme cases.

In the meantime to keep the blurred 1K resolution masks from Nav: Install my addon with the Reflectiosn > Go to Nav's Mask Blurred and take the gamedata/textures/dinamic_hud/*dds files, paste these files in the same place in my addon folder to replace the 4K non-blurred textures.

Reply Good karma+1 vote
Guest
Guest - - 689,112 comments

Thanks!

Reply Good karma Bad karma+1 vote
ZSHADOWWOLF
ZSHADOWWOLF - - 108 comments

RC17 getting this CTD:
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 1.5.0 (rc17)\gamedata\scripts\txr_actor_effects.script:50: attempt to call field 'parse_list' (a nil value)

stack trace:

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

I posted an update on the discord server of Anomaly. The 1.2 version of this add-on works with RC17 and fixes everything + brings upscaled blurred masks textures and cracks.

Since RC18 is becoming popular, I'll push the update here and move the old version as a google drive link.

Reply Good karma+1 vote
Diенаrd
Diенаrd - - 95 comments

can you make it compatible with the enhanced animations addon found in pins section of the anomaly addon discord?

Reply Good karma Bad karma+2 votes
Grokitach Author
Grokitach - - 895 comments

Done with the new 1.3 update of this add-on :)

Reply Good karma+2 votes
SilverBlack78
SilverBlack78 - - 1,906 comments

Do the rain drops work as in vanilla Anomaly on these new masks?
Why no new mask for exos???! :( That's a shame...
By the way, awesome job mate!

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

Rain drops work yes. Nav made new masks.

Reply Good karma+1 vote
MoreLove1
MoreLove1 - - 126 comments

The compatibility patch for FOOD,DRUG and DRINKS ANIMS is outdated, is it possible to make a new one? Thanks.

Reply Good karma Bad karma+1 vote
Acrophyllix
Acrophyllix - - 3 comments

Yep, whenever I use a bandage it immediately crashes.

Reply Good karma Bad karma+1 vote
M4K5P0W3R
M4K5P0W3R - - 284 comments

Will there be upgrades for the rc 19 and for the new version of FOOD, DRUGS AND DRINKS ANIMALS ?

Reply Good karma Bad karma+1 vote
mujo70
mujo70 - - 343 comments

RC19?

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

You will get some crashes when exiting the game. No biggies. Just remember me and RavenAscendant when you hear the Windows Error Bell ringing when you quit the game.

Reply Good karma+4 votes
craks.exe
craks.exe - - 6 comments

Merci / Thank you Gro !!!

Reply Good karma Bad karma+2 votes
abraxas19
abraxas19 - - 233 comments

what is the difference between this 2 Blurred` or `Crisp can you show some pictures please? I add this addon but when I try to exit the game I always get a error

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

Read above message.

You can try them. Blurred is just blurred, crisp is without blur.

Reply Good karma+1 vote
nighthitech
nighthitech - - 165 comments

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: ....5.0-rc15\gamedata\scripts\grok_masks_reflections.script:98: attempt to index a nil value

stack trace:

crash when trying to throw away the helmet.
I took all the helmets from the spawner and when I checked everything and started throwing all the helmets out, I had a crash. (I really didn't notice who caused the crash)

Reply Good karma Bad karma+3 votes
Grokitach Author
Grokitach - - 895 comments

Thanks I'll look into it :)

Reply Good karma+1 vote
Guest
Guest - - 689,112 comments

This comment is currently awaiting admin approval, join now to view.

Coverdrave
Coverdrave - - 85 comments

!ERROR str_explode | missing parameter str = nil, sep = ,
~ ------------------------------------------------------------------------
~ STACK TRACEBACK:

d:/games/stalker anomaly\gamedata\scripts\_g.script (line: 897) in function 'str_explode'
... grok_masks_reflections.script (line: 92) in function 'func_or_userdata'
d:/games/stalker anomaly\gamedata\scripts\axr_main.script (line: 247) in function 'make_callback'
d:/games/stalker anomaly\gamedata\scripts\_g.script (line: 119) in function 'SendScriptCallback'
d:/games/stalker anomaly\gamedata\scripts\_g.script (line: 745) in function 'exec_console_cmd'
... ui_main_menu.script (line: 237) in function <... ui_main_menu.script:236>
~ ------------------------------------------------------------------------
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] d:/games/stalker anomaly\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)
! [SCRIPT ERROR]: d:/games/stalker anomaly\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)

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/stalker anomaly\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)

stack trace:

Got this when clicked on quit. Not really a problem I guess, but still something to look into.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,112 comments

Hi, ctd on loading last save
rtx 2070super
3700x
mod organizer 2, RC21, new game, other mods or no mods I get this error

intro_delete ::update_game_loaded
main_menu on console command is executed
* [x-ray]: Full Memory Stats
* [win32]: free[137420588380 K], reserved[4563424 K], committed[13801604 K]
* [ D3D ]: textures[3776478 K]
* [x-ray]: process heap[1568681 K]
* [x-ray]: economy: strings[54239 K], smem[274163 K]
* [x-ray]: Full Memory Stats
* [win32]: free[137420596620 K], reserved[4543184 K], committed[13813604 K]
* [ D3D ]: textures[3776478 K]
* [x-ray]: process heap[1559354 K]
* [x-ray]: economy: strings[54238 K], smem[274163 K]
!ERROR str_explode | missing parameter str = nil, sep = ,
~ ------------------------------------------------------------------------
~ STACK TRACEBACK:

d:/stalker/bin/..\gamedata\scripts\_g.script (line: 897) in function 'str_explode'
... grok_masks_reflections.script (line: 92) in function 'func_or_userdata'
d:/stalker/bin/..\gamedata\scripts\axr_main.script (line: 245) in function 'make_callback'
d:/stalker/bin/..\gamedata\scripts\_g.script (line: 119) in function 'SendScriptCallback'
d:/stalker/bin/..\gamedata\scripts\_g.script (line: 745) in function 'exec_console_cmd'
d:/stalker/bin/..\gamedata\scripts\ui_main_menu.script (line: 262) in function 'LoadLastSave'
d:/stalker/bin/..\gamedata\scripts\ui_main_menu.script (line: 124) in function <d:/stalker/bin/..\gamedata\scripts\ui_main_menu.script:107>
~ ------------------------------------------------------------------------
! [SCRIPT ERROR]: d:/stalker/bin/..\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)

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:/stalker/bin/..\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)

stack trace:

Reply Good karma Bad karma0 votes
Grokitach Author
Grokitach - - 895 comments

Thanks. Does it happen when you load the save with F9 or "load save" in menu ?

Reply Good karma+1 vote
DarthAthena
DarthAthena - - 49 comments

The same crash took place then I tried to put on another suit (a Loner one with built-in gas mask) without taking off the old one, and also always when exiting the game. It`s not that problematic, but still

Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ...ya-laptop/desktop/anomalyrc19\gamedata\scripts\_g.script:899: bad argument #1 to 'string_find' (string expected, got nil)

stack trace:

Reply Good karma Bad karma+1 vote
AbracaMacabra
AbracaMacabra - - 70 comments

this addons is usefull for me who uses 1080p resolution?

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

Yes because the masks are 1024x1024 stretched to 1920x1080. So even in 1080p the gain is visible for the masks.

Reply Good karma+1 vote
accolyte1022
accolyte1022 - - 600 comments

I'm getting this when I load a game:

FATAL ERROR

[error]Expression : xml_doc.NavigateToNode(path,index)
[error]Function : CUIXmlInit::InitStatic
[error]File : ui\UIXmlInit.cpp
[error]Line : 154
[error]Description : XML node not found
[error]Argument 0 : cs_armor_health
[error]Argument 1 : ui\ui_custom_msgs.xml

Reply Good karma Bad karma+1 vote
maxi666
maxi666 - - 135 comments

Почему нет сдвига маски при прицеливании? Даже в старых коковских сборках такая фича везде присутствует, непрофессионально.

Reply Good karma Bad karma0 votes
Grokitach Author
Grokitach - - 895 comments

Sorry I don't understand :( . English or French.

Reply Good karma+1 vote
Gh057yn
Gh057yn - - 33 comments

Noob question:
DO i need Nav's 4k Mask addon AND this one or is this one also comes with the mask overlays on Nav's addon?

Reply Good karma Bad karma+1 vote
Grokitach Author
Grokitach - - 895 comments

No it's standalone, everything is there. I upscaled the textures with AI so the textures are included.

Now if you want the new nav's mask textures, you would need nav's files and my reflection script.

Reply Good karma+1 vote
hanoihotel
hanoihotel - - 1 comments

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: ....5.0-rc15\gamedata\scripts\grok_masks_reflections.script:99: attempt to index a nil val

Got this crash when I activated all mask overlay options after installing the mod. Might've messed up something, just throwing this out there.

Reply Good karma Bad karma+2 votes
Guest
Guest - - 689,112 comments

This comment is currently awaiting admin approval, join now to view.

Grokitach Author
Grokitach - - 895 comments

Try 1.4.2, it should fix most crashes :) . Thanks to RavenAscendant.

Reply Good karma+1 vote
Guest
Guest - - 689,112 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: