Jump to content

Crash: attempt to perform arithmetic on upvalue '_flash_str_setting' in ambientlighting.lua


Nikola_Puzo
  • Pending

The game crashes with a LUA error related to ambientlighting.lua whenever a lightning strike happens.  

This issue occurs in different scenarios:
- When I play solo.  
- When I host my own world.  
- Even when I join someone else’s hosted world.  

I always play without any mods. The servers I join are also completely vanilla (no server or client mods).  
I already tried reinstalling the game and performing "Verify integrity of game files" on Steam, but the crash still happens.  

Error log:  
[string "scripts/components/ambientlighting.lua"]:197: attempt to perform arithmetic on upvalue '_flash_str_setting' (a nil value)  
LUA ERROR stack traceback:  
scripts/components/ambientlighting.lua:197 in (upvalue) calc_flash (Lua) <196-199>  
scripts/components/ambientlighting.lua:221 in (local) fn (Lua) <201-224>  
scripts/entityscript.lua:1238 in (method) PushEvent_Internal (Lua) <1225-1254>  
scripts/entityscript.lua:1257 in (method) PushEvent (Lua) <1256-1258>  
scripts/prefabs/player_classified.lua:692 in (local) fn (Lua) <690-694>  
scripts/entityscript.lua:1238 in (method) PushEvent_Internal (Lua) <1224-1254>  
scripts/entityscript.lua:1257 in (method) PushEvent (Lua) <1256-1258>  
scripts/mainfunctions.lua:549 in () ? (Lua) <546-551>  

**Attached files:**  
- `DxDiag.txt` (hardware and system info)  
- `client_log.txt` (game log file)  
- master_server_log.txt
- caves_server_log.txt
- Screenshot of the crash and lightning strike

WARNING!DontStareTogetherERROR.png.73609a4768266ef7c4335bfe74d5be4a.png

DxDiag.txt client_log.txt master_server_log.txt caves_server_log.txt


Steps to Reproduce

1. Launch the game (Steam, Windows 10).  
2. Host a world, play solo, or join another player’s hosted world (no mods involved).  
3. Wait until a lightning strike happens (it doesn’t need to hit the player directly, it can strike anywhere in the world).  
4. As soon as the lightning strikes, the game crashes with the error above.  
 




User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...