Stalker_GAMMA
Stalker_GAMMA copied to clipboard
Remove empty scopeRadii.script in DX9 Compatibility Patch
The empty scopeRadii creates errors when other mods try to use it, ie F.W.P . While it's only cause error on custom GAMMA DX9/8, I think it should be removed because it doesn't do anything, since 2D Shader Scope already been disabled after DX9 Compatibility Patch overwrite its script
How's the error looking?
[error]Expression :
[error]Function : invalid_parameter_handler
[error]File : D:\a\xray-monolith\xray-monolith\src\xrCore\xrDebugNew.cpp
[error]Line : 1087
[error]Description : invalid parameter
stack trace:
! [LUA] 0 : [C ] __index
! [LUA] 1 : [main] ...nomaly/bin/..\gamedata\scripts\zzz_g28_scoperadii.script(1) :
! [LUA] 2 : [C ] __index
! [LUA] 3 : [Lua] .../stalker/anomaly/bin/..\gamedata\scripts\axr_main.script(317) : on_game_start
! [LUA] 4 : [Lua] g:/tu/stalker/anomaly/bin/..\gamedata\scripts\_g.script(82) :
The script I took from FWP:
if scopeRadii and scopeRadii.scopeRadii then
scopeRadii.scopeRadii.wpn_crosshair_g28 = 0.43
scopeRadii.scopeRadii.wpn_crosshair_kar98 = 0.42
end
This happens because while the scopeRadii.script exist, it's still empty so scopeRadii.scopeRadii will result the errors above.
In my opinion it's on FWP end to add the scope radii script