Same here. And I'm running game version 1.1.74 now, with F&C:TD version 1.1.27.
Although different numbers are mentioned in the error.
If those numbers refer to the line in the control.lua file:
-
1365 refers to
function safeDamage(entityOrPlayer, damageAmount)
if damageAmount <= 0 then return end
local damageMulti = 1
local entity = entityOrPlayer
local player = nil
if entityOrPlayer and entityOrPlayer.is_player() then (<--this line)
player = entityOrPlayer
entity = entityOrPlayer.character -- Need to damage character instead of player
-
1307 refers to
if not bitersImmune then
local i = (event.tick % 60) + 1 --Loop through 1/60th of the nodes every tick
while i <= #global.tibGrowthNodeList do
local node = global.tibGrowthNodeList[i]
if node.valid then
local enemies = node.surface.find_entities_filtered{position = node.position, radius = TiberiumRadius, force = game.forces.enemy}
for _, enemy in pairs(enemies) do
safeDamage(enemy, TiberiumDamage * 6) (<-- this line of spawn ore check)
end
else
removeNodeFromGrowthList(node)
end
-
1252 refers to
script.on_event(defines.events.on_tick, function(event) (<-- this line)
-- Update SRF Walls
CnC_SonicWall_OnTick(event)
Error while running event Factorio-Tiberium::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__Factorio-Tiberium/control.lua:1365: in function 'safeDamage'
Factorio-Tiberium/control.lua:1307: in function
<Factorio-Tiberium/control.lua:1252>
I have quite a list of mods. I'm not supposed to die, as I don't carry any tiberium products and I'm immune to tiberium and not even standing on it. I tried removing SRF walls and mining drones (as the drones sometime appear to get damaged, at least that's the error message I got sometimes), but still the non-recoverable error occurs.
Mod list is quite long, so if we can try some more specific things (than sending the list of mods) to find the root cause, let us know please.
Reach out to me on Discord if you want (Dardomor#5534)
P.S. it's not caused by Mining Drones (compatibility version) and Prospector, as without those mods, the error still occurs.
P.P.S. did a brief check: Without any other mods than F&C:TD (and the one or two library mods it depends on), the error does not occur..