Stalker_GAMMA icon indicating copy to clipboard operation
Stalker_GAMMA copied to clipboard

Remove empty scopeRadii.script in DX9 Compatibility Patch

Open Kutez opened this issue 9 months ago • 3 comments

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

Kutez avatar Apr 06 '25 00:04 Kutez

How's the error looking?

Grokitach avatar Apr 06 '25 07:04 Grokitach

 
[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.

Kutez avatar Apr 06 '25 09:04 Kutez

In my opinion it's on FWP end to add the scope radii script

Grokitach avatar Apr 06 '25 09:04 Grokitach