The stand-alone mod S.T.A.L.K.E.R. Anomaly aims to be the most stable and customizable experience for fans of the S.T.A.L.K.E.R. games. It's powered by the Monolith 64-bit engine, a custom fork of the X-Ray engine.
Improves the feeling of 2D scopes by introducing a magnification shader and some scope based effects, without the performance impact of PiP.
This is an engine mod. It will not be compatible with any other engine mod. You are also installing an .exe which means you are entrusting me to not put a bitcoin miner on your computer.
v1.2: The current version of DLTX [12th August 2021] is now built-in to the mod, thanks to MerelyMezz excellent instructions, so you should be able to let this overwrite your .exe files and your DLTX mods should continue working.
This mod is only compatible with DX10+. The solution to DX9 support is not immediately obvious to me so it may take some more time than I expected, but I am trying.
For Boomsticks and Sharpsticks compatibility - kemelvorkorp's patch is now included in the download files.
This mod attempts to improve the experience of 2D scopes by adding a simple shader that adds magnification and some effects like parallax fog and chromatic aberration. This is not PiP, it does not require the game to render the scene twice. Therefore, it does not have a severe performance impact, nor does it require you to make custom config files, textures, or modify weapon geometry. It can also darken the area outside of the scope and add blur. The mod adds a bunch of console commands that you can use to tweak the settings:
The scope_factor setting changes the amount of magnification inside the scope compared to the outside. It works by just taking the existing frame and scaling it up inside the scope. Due to this, there is a tradeoff between higher magnifications and image quality. The mod will automatically adjust your weapons scope_zoom_factor to compensate, so you're not "adding" any magnification on top of the scopes magnification, just adjusting the difference in FOV outside and inside the scope.
If you don't like the effect you can set scope_factor to 1. This removes all magnification. A value of 0.75 will result in a 1.33x magnification and very little noticeable drop in quality. A value of 0.5 will result in a magnification of 2x, and 0.25 a magnification of 4x with a very noticeable drop in image quality.
Here is an image showing different settings, notice the area outside of the scope on the left image is almost entirely zoomed out but the zoom within the scope remains the same.
As a side note: If you have a beefy computer and are fond of the PiP effect, and your GPU is capable of dynamic resolution, you can render the game at a higher than native resolution to reduce the drop in quality. For example, here is a screenshot I took while rendering the game at 4x native with Nvidia DSR at a scope factor of 0.25
Notice the image on the right is much higher quality. This also has the bonus of effect of making your game look nicer.
You can also change the look and feel of the parallax fog with a couple commands:
Choose either the DLTX or non-DLTX version and paste the gamedata and bin folders into your anomaly installation and allow it to overwrite the base .exe files. If you use BaS, install the BaS patch on top and let it overwrite. Ignore the source folder.
I have only tested this mod with the vanilla weapons, but it should be pretty easy making other scopes work with this mod. To do so, you need to define the scope's texture and radius in scopeRadii.script. To figure out the right radius for your scope, open the game and zoom in with it, and then use the scope_radius console command to figure out what the correct radius is. Since it's a separate script file, you can easily redistribute your modified version with your scope retextures/weapon packs.
v1.3: I have now included a .diff patch file in the download files in the source folder. You can use the git "diff apply <filename.diff>" command to apply the changes to your repository of Anomaly. It does not include DLTX, but DLTX can be implemented using the same method.
v1.1: Removed unused shader definition which may be causing crashes
v1.2: Implemented DLTX
v1.3: Implemented DX10 support and released source, and included non-DLTX version in download files
Average
9.9127 votes submitted.
How much performance drop should an addon cause? My FPS becomes half as much when aiming
>> to 0, half fps drops are PiP scopes which are not from this addon
I.imgur.com
you didn't installed bin from archive to your game folder
Knew i ****** something up, thank you.
What i mean is the black layer that comes with the shader. Here is what i mean: I.imgur.com
How can i decrease the black that is outside of the lense.
On the newest Food drugs and drinks animations (v0.8.7c) and DLTX (v7) versions, installing this mod (1.2 as of now) after DLTX will cause the game to crash when smoking. Probably just needs the DLTX built into this mod to be updated
Expression : SG
Function : CRender::model_CreateParticles
File : r4.cpp
Line : 683
Description : Particle effect or group doesn't exist
Arguments : damage_fx\mod_cig_smoke
added the crash log for anyone else if having the same problems
Try the exes found here
Github.com
Its fixed, thank you!
How did you set up your dsr to get the 0.25 to look so nice? Can't get it to be as nice looking, turns my scope into a pixel game lol. Do you set it up specifically for stalker in the Nvidia control panel or did you just set it using the global settings? Appreciate your work.
hello, installed the mod but the game doesn't launch at all, i made sure to disable glossy Surface SSR and Dynamic tonemap extended and also installed DLTX and made sure to select DLTX compatibility wen installing your mod still the game wont launch, any idea?
I leave a screnshot of all my mods, maybe i'm missing something that makes it incompatible with SB2dS
Imgur.com
Regards
Make sure you don't install the mod using MO2 or the other modding organizer, you have to manually place the .exe's in the bin folder and let them overwrite, the modding software doesn't do that. I had that problem as well where it didn't start but that seemed to fix it.
i did place manualy the 4.exe into the game bin still no luck
--EDIT
did a manual install of the 4.exes and the 2 folders and now everything works perfectly
kudos
Thx, man! Your method worked for me.
Can you post error log?
Same, no error log, just don't start. Game just closing in start.
Hi friend, had the same problem. Try installing the DLTX bin folder manually. When installing BAIN via MO, press the manual install button and skip the bin folder you installed earlier. Don't miss Source. good luck
I don't know if i'm doing something wrong but it don't works with ACOG scope for me.
Acog is a 3D scope, so this 2D mod won't work with it if I'm not mistaken
BaS adds a 2d Acog and it has the shaders working for it although I've notice some scopes don't have the effect or is not correctly working(the dark circle around lens is outside the eyepiece)
if you using tacticool scopes addon maybe it is because of that ,there is fix for it somewhere here and i think any addon what do changes for scopes probably can cause this issue
yeah sure ,simple as that ,i just forgot that this is for 2D not 3D
If you like, you can make ACOG scope in 2D and then enable the effect of this addon in its script. First, edit the weapon configs that use the ACOG scope: go to the weapon section with scope attached (for example, for an FN Scar weapon with an ACOG scope, this section is called "wpn_scar_acog"), and after line "scope_zoom_factor = 20" add line "scope_texture = wpn_crosshair_acog" (this will make the ACOG scope 2D instead of 3D). Then, in the "scopeRadii.script" script, add the line "wpn_crosshair_acog = 0.35" to the "scopeRadii" table(this will enable the shader for the ACOG scope).
Is it possible to remove the effects from the binoculars?
Is this the BaS patch? You could try opening scopeRadii.script and removing wpn_crosshair_bino
How can I increase to 9x zoom of the scope ps01, ps02, pso1m21 and other sniper rifles scopes?
You could make it compatible with MCM
how do i fix the outer ring shaders that clipped out from the scope lens? ---> Discordapp.com ,its only on leupord makrk4 scopes the rest works fine
Not working when installing Food, Drinks and Drugs animations. Seem like because DLTX version in this mod is outdated.
UTD: Not working with DLTX V.7
If this mod's not working make sure you download the most UP TO DATE EXE's HERE:
Github.com
Thanks it works!
Спасибо!
Hello, and for meshes, such as on collimators, can this shader work?
I just thought, what if the 3D model of the sight also has the texture of the sighting grid, what if this shader is connected in the sight.
It should work, above I wrote how I activated this shader for the ACOG scope. But only if you convert the scope to 2D
does this work with blindiside reanimations?
yes
How can I increase to 9x zoom of the scope ps01, ps02, pso1m21 and other sniper rifles scopes? , and, You could make it compatible with MCM?
Original Anomaly remembers zoom level on scopes while you playing.
Patched exe (or mod's scripts i dunno) for some reason:
1) don't remember zoom level of scope and every time you go in sight mode sets zoom on some "default level"
2) It doesn't set zoom level to maximum. It's weird but the "default" level it chooses is somewhere in the middle of scope's zoom capability. And this is very annoying.
Anyone else with this issue? Any way to fix it? Honestly, this is the only reason i don't use this mod right now. And mod itself is very cool.
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.
Hi , for me the mod kinda works( effect inside the scope),but i have even less fps with it,no matter from there i put exe's,tried github too.Do i have to type some command to switch from deafult 3d scope to 2d setting?Have few simple addons including ffda(it works too with all exe versions)
EDIT found that SSAO ruins fps scoped,didn't test without mod,now fps is better,but still drops are there,50 to 38,before 50 to 22
This comment is currently awaiting admin approval, join now to view.
Some BaS scopes don't work... Youtube.com
(Showing a scope that works first because I installed the mod) Like the 1PN93 Night Sight... was this one not added yet? Or is it a BaS update?
Thanks for the mod! When i try to change values for Scope_radius in console the values get changed back? I try to set 0.37 for my scope. Any idea what i can do?
Edit I learned to read suddenly... sorry
anyone know how to fix this ring around the scope fog? some scopes in scopes revision have it, some don't Imgur.com
Select the desired value for scope_radius in the console, then write it down in the scopeRadii file. This is in the description. The name of the 2D scope texture can be found in the weapon file located in gamedata\configs\items\weapons. If the weapon is vanilla, you may need to unpack the game data. Although, in principle, the names in the scopeRadii file are quite understandable. I just changed the scope_radius for the Remington Archangel built-in scope, and at least he looks like Leupold, but the 2D scope texture is called something like ...mark4. Hmm, maybe it was in Leupold scope name. No matter.
Don't know if anyone still needs to know, but the Mark4 scope radii should be set to 0.34 in the ScopeRadii file. Otherwise you will have to change the radius in the console each time you switch to another weapon/scope.
[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: .../stalker anomaly/bin/..\gamedata\scripts\fakelens.script:62: attempt to index global 'scopeRadii' (a nil value)
Happens when scoping in
EDIT: Nevermind i fixed it, just had to add a quarter to the end of each radius
Hello CrookR. I'd like to bring what MagoBuono said at 19th of october above: that the addon removes the functionality of scope zoom memory.
Forces us to use scopes without variable zoom levels. If we do and we find ourselves in action packed situation - especially close combat - we need to decrease the zoom level back to it's lowered state - again, and again, and again.
Other than this issue, love everything single aspect of SB2DS!
Thank you for making it.
This seems to be incompatible with food drugs and drink animations. if I load them bevore this mod the game crashes when smoking a cigarette, whe I load it after this mod the scopes don't work.
Check out exes out here Github.com
Very cool addon! Big respect! However, unfortunately, my scope looks like this. I tried both DLTX and not-DLTX versions. I have bins from here Github.com
Screenshot: Ibb.co
My mods: Pastebin.com
Could you fix addon or suggest how could I fix it on my side?
Thanks!
Hey Char.
What you need to do, is to type scope_radius in the command console and find the right value for the scope.
If using the command doesn't do anything, you will need to go to ...\gamedata\scripts and open scopeRadii.script (with Notepad++ for example), then find the scope you want to fix and change its values.
With the second method, to make your life easier use debug mode, when in main menu hit F1, then F2 to go to a test map.
Spawn yourself the weapon and the scope with F7 menu.
If what you have put into the scopeRadii.script doesn't satisfy you, change it again without closing the game, save the file, go to the game and in the F7 menu hit F5. This will reload changes without the need to relaunch the game.
Initially, for the PU scope, I would suggest value = 0.48
Kuez Thanks!
CrookR @Kuez would be cool to move this scope_radius to MCM!