NV Binoc & Scopes Toggle 1.0.7.1 (a small patch) is here!
This mod adds keybind to switch night vision off in scopes, as well as beef's NVG effects for them.
New game NOT required.
THAT WILL NOT MAKE BEEF'S SHADER BASED NVGS V.1.1.1 WORK ON DX8 or DX9.
NOW SUPPORTS BEEF'S SHADER BASED NVGS V.1.1.1.>
<BAS NV SCOPES COMPATIBILITY PATCH INCLUDED>
<PPE VERSION INCLUDED><SHADER BASED 2D SCOPES COMPATIBILITY - YES>
Finally, I've finished what maslinupoymal started a year ago - NV Binoc&Scopes Version 1.0.7 is here!
Now it works maybe will work with BAS, Shader Based 2D Scopes, Beef's NVGs 1.1.1.
REQUIREMENTS: BEEF'S SHADER BASED NVGS V1.1.1
DESCRIPTION:
This mod adds keybind to switch night vision off in scopes, as well as beef's NVG effects for them.
Here's a demonstration of nv effects:
Photos.app.goo.gl
INSTALLATION:
Recommended: Installing with MO2
1.Download Mod
2.Select Compatibility patches (MAIN ADDON IS REQUIRED). IF YOU ARE USING DX8, select ONLY DX8 Version (no main addon and patches)If you are using BAS and Shader Based Scopes, you must install all patches related to this mods: e.g
1)MAIN VERSION
2)BAS PATCH
3)Shader Based Scopes(SBS) PATCH
4)BAS + SBS PATCH
5)PN-23 HeatVision, HeatVision mod Required, all compatibility patches must be installed with their mods(except DX8). (WORKS ONLY ON DX11)(REQUIRES MODIFIED EXES)
3.It should be better installed after Beef's NVGs. It better should be used with MCM.
New game NOT required.
COMPATIBILITY:
Should be compatible with mods, that're compatible with Beef's NVGS, DX8/9 Version is the most compatible version because don't require any other mods.
Visual bugs with BAS installed and not Shader Based Scopes is normal, it's happening because nvg lens is bigger than scope, if you install Shader Based Scopes and Patch for this, it will be fixed.
It should work with mods, that change radius of Shader Based Scopes.
CHANGELOG
UPDATE 1.0.0:Release
UPDATE 1.0.1:Bugfixes
Fixed NVG disable when disabling NV Scope.
Fixed screen blur whin combining NVG and NV Scopes.
UPDATE 1.0.2:MCM Keybinding
ui_keybinding conflicts begone
Now better use it with MCM
UPDATE 1.0.3:MCM For DX8
Fixed crash when not using MCM
Added a version where PN23 Scope has HeatVision.
UPDATE 1.0.4:Bugfixes
Fixed bug when adjusting brightness in heatvisor
UPDATE 1.0.5:Graphical bugfixes
Fixed HeatVisor disable when disabling NV Scope.
Fixed NVG not working with normal sights.
Fixed HeatVisor disable when aiming down.
Fixed some other problems.
UPDATE 1.0.6:Made it compatible for 1.5.2
Fixed some script issues.
Gave you an compatible with 1.5.2 Beef's NVGS items_device.script
New preview image (100 times better than before)
Removed console spam
-Still bad Changelog design
UPDATE 1.0.7: HV Scopes Great return
-Changed some script moments
-Now HV Scopes can be used again.
UPDATE 1.0.7.1: Now it's REAL HV Scopes return (I think
-Fixed the annoying CTD when toggling the HeatVision, sorry people it was my fault.
CREDITS:
Sorry for bad English, if you meet any anomalies in addon work, your comments will be read (maybe).
Credits: maslinupoymal for original addon, theRealBeef for NVGs, vegeta1k95 for HeatVision (WOW! It returned), Mike0422 for "Please someone help me" words (inspiration).
End.
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.
Сейчас фикс для BAS выпущу и стану смотреть
UPDATE 1.0.1:Bugfixes
Fixed NVG disable when disabling NV Scope.
Fixed screnn blur whin combining NVG and NV Scopes
Привет, спасибо за крутой аддон! Уточни пожалуйста как он дружит с ToggleScope от Ishmaeel, а то смотрю скрипт перезаписывает, а в описании про него не сказано.
Извините, не могли бы вы уточнить какой именно скрипт?
Извиняюсь, перепутал с рабочего компа, конфликт только в файле с горячими клавишами, вопрос снимается. Кстати было бы круто сделать горячую клавишу через МСМ
Будет в следующем обновлении
This comment is currently awaiting admin approval, join now to view.
What exactly does this addon do?
This addon changes effects of scope night vision.
Also it adds a key to switch it off
I will change the description to better variant soon
Oh wow this addon is really work! thank you so much!
МСМ меню для DX8 версии планируется в дальнейшем?
Возможно
Привет, не нашел файла или в файле про тепловизоры. Посмотри мод Heatvision Moddb.com. Сможешь такой же скрипт написать как для ночных прицелов? Там мод сделан на базе Beef'а скрипт в основном такой же.
Я написал скрипт, но пока просто его не выложил, и он немного устарел, обновлю и выложу, просто там тепловизор только на ПН-23 из BAS поставлен
Вот, выложил, если добавлять новые прицелы, то это всё в detect_nv_upgrade(), там не трудно разобраться должно быть
Разобрался, спасибо. Но вот такая шняга возникла Imgur.com - Это происходит когда начинаешь переключать яркость в прицеле. Потом остается ореол. Исчезает только после перезагрузки, и и прицеливания с другого оружия.
И еще как убрать черный фон при прицеливании в тепловизор?
Чёрный фон убрать никак, это скрипт тепловизора, Hud тепловизора отвечает только за надписи Flir и white hot. Глюк с ореолом поправлю
Понял, и еще заключительный вопрос, можно сделать смену режим у него, как у обычного, с синего на серый? Извини если отвлекаю.
Так как цветность тепловизора регулируется в infrared.h, а мой скрипт использует его же, цветность и обычного тепловизора и моего мода должна быть одинаковой.
Если не сложно, протестируй, и сообщи результат
Если ты про переключение режимов прямо в игре, то я не уверен что смогу это сделать
Проверил, совпадает. А по поводу черного экрана, нашел в файле шейдера heatvision и nightvision различия, строки, которые отвечают за оверлей. Но при попытке копипасты вылет с логом:
Imgur.com
! c:/games/stalker clear anomaly 1.5.1\appdata\shaders_cache\r4\heatvision.ps\1536111100110000000000100000110101013110121000
! error: common_functions.h(43,34): warning X3206: implicit truncation of vector type
common_functions.h(63,2): warning X3206: implicit truncation of vector type
common_functions.h(68,49): warning X3206: implicit truncation of vector type
common_functions.h(100,2): warning X3206: implicit truncation of vector type
gbuffer_stage.h(130,24): warning X3206: 'Load': implicit truncation of vector type
gbuffer_stage.h(131,23): warning X3206: 'Load': implicit truncation of vector type
infrared.h(52,26): warning X3081: comma expression used where a vector constructor may have been intended
infrared.h(52,31): warning X3081: comma expression used where a vector constructor may have been intended
infrared.h(56,46): warning X3206: 'Load': implicit truncation of vector type
infrared.h(74,29): warning X3206: 'Load': implicit truncation of vector type
infrared.h(74,12): warning X3206: implicit truncation of vector type
infrared_utils.h(360,37): warning X3206: 'Load': implicit truncation of vector type
infrared_utils.h(379,30): warning X3206: 'Load': implicit truncation of vector type
(24,28): warning X3206: 'gbuffer_load_data': implicit truncation of vector type
(25,21): warning X3206: 'infrared': implicit truncation of vector type
(51,35): error X3004: undeclared identifier 'shader_param_8'
видимо там надо шейдер со скриптом слегка переписать.
Ааааа, я понял. Попробую реализовать
Нашел еще проблемку, если одет тепловизор и с включенным прицелится, после выхода из прицеливания он выключается, при этом HUD остается.
Вот это актуальнее.
Вот ЛОГ:
ScopeNV - zoom_out [2]
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:468: attempt to call field 'update_nvgs' (a nil value)
! [SCRIPT ERROR]: ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:468: attempt to call field 'update_nvgs' (a nil value)
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: ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:468: attempt to call field 'update_nvgs' (a nil value)
stack trace:
Это если не с прицелом, а наголовным, с другого прицела.
Покажи ту строчку скрипта, будь добр
function update_nvgs()
if get_nv_state() == true then
get_console():execute("r__heatvision 1")
set_nightvision_HUD(true)
else
get_console():execute("r__heatvision 0")
set_nightvision_HUD(false)
end
get_console():execute("heat_vision_args_1 " .. pack_nvg_data() )
get_console():execute("heat_vision_args_2 " .. pack_nvg_data_2() )
end
Я так понял вот эта.
Хотя переустановил, вроде исчезло.
Кстати насчёт чёрного фона: я смог его убрать, но во время анимации прицеливания он появляется и потом исчезает
Огонь, красавчик. Это уже отлично.
Я не знаю как этот фон убрать, это происходит только во время анимации, он вообще появляться не должен
This comment is currently awaiting admin approval, join now to view.
Фон убрал, теперь нужно искать другие проблемы, скрипт обновлён, исправил несколько ошибок.
На головном тепловизоре, после выхода из прицеливания вылет с логом
ScopeNV - zoom_in
ScopeNV - upgrade 0
ScopeNV - zoom_in
ScopeNV - upgrade 0
ScopeNV - zoom_out [2]
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:498: attempt to concatenate global 'scope_blur_temp' (a nil value)
! [SCRIPT ERROR]: ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:498: attempt to concatenate global 'scope_blur_temp' (a nil value)
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: ...r anomaly 1.5.1\gamedata\scripts\nv_toggle_scopes.script:498: attempt to concatenate global 'scope_blur_temp' (a nil value)
stack trace:
Фон остался. Imgur.com
Смена режимов на теплаке ПН23 есть, но фон все равно черный.
Ты шейдер перезаписал значит из моего мода, там в конце нужно изменить, как в моём.
Краш починил
По шейдеру понял, он лежит в папке Shaders, но там еще папка r3, его туда надо закинуть.
Да, теперь заработало. Спасибо тебе огромное, буду пилить прицелы теперь.
Тебе спасибо за тестирование, и за прицелы, если добавишь.
After using night vision on binoculars my night vision goggles stop working when I try to aim down sights with any weapon. When I am not aiming the night vision goggles work fine.
Will be fixed in next update
Thank you for fixing this issue and for your great work!
The problem still persists. Now the night vision doesn't turn off but the game crashes.
! [SCRIPT ERROR]: f:/anomaly-1.5.1.2\gamedata\scripts\nv_toggle_scopes.script:330: attempt to concatenate global 'scope_blur_temp' (a nil value)
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: f:/anomaly-1.5.1.2\gamedata\scripts\nv_toggle_scopes.script:330: attempt to concatenate global 'scope_blur_temp' (a nil value)
stack trace:
Fixed, now it must work
It works, thanks again!
Hello here :) thanks for the answer on the heat vision mod.
I still encounter the same bugs, but now I was able to identify the conditions that triggers the bugs.
Here is the video :
0:17 - Overlay bug occurs when you decide to disable HV while looking through scope
0:40 - The blur bug occurs ONLY if you wear NV first and then HV. If you start the game and only use HV, this does not happen.
Hello there, I tried to repeat the bugs you have somehow made appear, In the first bug, I found that it doesn't occur when you aren't using nvg view through scope feature, in the second, I just couldn't make that appear.
I realised that first bug is problem of HeatVision mod.
Yes I also suspect HeatVision to be the cause of the bugs since the overlay bug is not repeatable on Beef's NVG that's why I went to post on his mod first :D.
Could the 2nd bug be a consequence of multiple shader mods working together? (GLOWSTICK, ES, SBS, SSS, BEEF, HEATVISION). It looks like the blur effect of the beef NVGs is stored somewhere when you use the thermal right after.
The 2nd bug looks like function "z_beefs_nvgs.update_nvgs()" was called and shader effects has not nullified, you can look into my script and if you find the error, I'll fix it.
I'm using some shader mods myself, and hasn't experienced this bug.