!PROBABLY OUTDATED AND DOES NOTHING ANYMORE!
A quick workaround for the `ui_options.script:756: attempt to perform arithmetic on local 'w' (a nil value)` crash - PLEASE read the readme if you don't use or play in 1920x1080!
I made this for a really specific issue that was happening in 2020, I have no idea if this would help anything at all in 2023 (or 2024) and the issue I was originally having has long been fixed, this probably won't help with any of your linux/steamdeck issues unfortunately
PLEASE read the readme if you don't use or play in 1920x1080! you must set the width and height of your resolution near the top of ui_options! even if you play 1920x1080 you should still check!
This is a quick and dirty workaround for the settings menu crash similar to:
ui_options.script:756: attempt to perform arithmetic on local 'w' (a nil value)
this adds a 'default' or fallback resolution, so that even if the resolutions can't be found the settings menu will still load and everything should run fine using the fallback resolution set near the top of ui_options.script
works perfectly fine for me, but this is a pretty dirty fix, it shouldn't do anything worse than crash (which was already happening) but I can't guarantee anything
You need to change your title, it say cash instead of crash.
oops, fixed now, thanks
Is this a fix for the game crashing every time you change a single setting or something else entirely?
if you get the crash that looks like this:
`ui_options.script:756: attempt to perform arithmetic on local 'w' (a nil value)`
it should fix it, I've had it on the main menu and when opening settings mid game, it only seems to happen when actually clicking the settings button, so if your crash is different it probably won't help, sorry
I hope someone can help. just find an ak12 and really wanted to shot it.
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CInifile::r_section
[error]File : Xr_ini.cpp
[error]Line : 530
[error]Description : fatal error
[error]Arguments : Can't open section 'string_table'. Please attach [*.ini_log] file to your bug report
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.
any idea?
---------------------------
Fatal Error
---------------------------
Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ...ads/anomaly-1.5.1.2\gamedata\scripts\ui_main_menu.script:179: attempt to call field 'UIOptions' (a nil value)
stack trace:
Press OK to abort execution
---------------------------
Ok
---------------------------
I get the same error after applying the patch on Linux and pressing the Settings button on the main menu.
Has anyone found a fix for this? I'm trying to play it on the steam deck as people have on YouTube, but it crashes everytime I click settings even though I set the resolution to 1280x800.
This comment is currently awaiting admin approval, join now to view.
I made this for a really specific issue that was happening in 2020, I have no idea if this would help anything at all in 2023 (or 2024) and the issue I was originally having has long been fixed, this probably won't help with any of your linux/steamdeck issues unfortunately