further information:
the log from the event that triggers the crash:
139.262 Script @__graftorio-ng__/scripts/translation.lua:119: on_string_translated event:{
id = 15158,
localised_string = "",
name = 153,
player_index = 1,
result = "Basic beacon",
tick = 451,
translated = true
}
the code snippet where it occurs translation.lua
(added log()
for debugging):
[defines.events.on_string_translated] = function(event)
log("on_string_translated event:"..serpent.block(event) )
local result = event.result
local str = event.localised_string
str = game.encode_string(str)