Factorio and Conquer: Tiberian Dawn


Adds Tiberium ore that spreads - Harvest it, refine it, and convert it to power, weapons, and other ores. By Zillo7 (0.15), SAH4001 (0.16), Oktabyte (0.17), JamesFire and randomflyingtaco (0.17 update and 0.18+)

Content
10 months ago
0.17 - 1.1
15.7K
Mining

g [Fixed] Error

1 year, 6 months ago

Gotten this error multiple times in a row. I am running with the tiberium damage to biters option on.

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:1356: in function 'safeDamage'
Factorio-Tiberium/control.lua:1298: in function <Factorio-Tiberium/control.lua:1243>

1 year, 6 months ago

Also, I'm playing with a number of other mods, so it is definitely possible that this is compatibility-related. If you need my save file or logs just let me know, I'll be happy to provide them.

1 year, 4 months ago

I am also getting this error, also using a bunch of mods.

1 year, 4 months ago

This should be fixed by version 1.1.27. Which version are you running?
If you are running 1.1.27 can post your mod list and what you were doing when the error occurred (previously it was happening when players died)?

1 year, 4 months ago
(updated 1 year, 4 months ago)

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

1 year, 4 months ago

Hi all, when I enable 'biters immune to tiberium' setting, the error does not occur for me (yet). Only tested for a few minutes like this, but I hope this already helps troubleshooting.

1 year, 2 months ago

Yeah, still getting this error. Same error locations as BP posted above. My immediate thought is that it is some kind of conflict with Rampant as that's the mod I'm running with the most biter changes. Full mod list as follows.
AAI Containers & Warehouses
AAI Industry
AAI Signal Transmission
Afraid Of The Dark (enforced personal lights + more)
Alien Biomes [possible conflict candidate imo]
Alien Biomes High-Res Terrain
Ammo Alerts
Auto Research (fixed + re-published)
Base mod [1.1.76]
Bottle Neck
Clean Floor
Early Logistics System
Electric Train
Equipment Gantry
Even Distribution
Explosive Biters [likely conflict candidate imo]
Extend Descriptions
Factorio and Conquer: Tiberian Dawn
Factorio Library
Factorio Standard Library
Factory Planner
Fluid Permutations SE + K2
Frost Biters [likely conflict candidate imo]
InformaTron
Islands World
Jetpack
Krastorio 2
Krastorio 2 Assets
Lex's Aircraft
Lex's Aircraft high-res
Lovely_santa's library of knowledge
Nanobots: Early Bots
Queue To Front
Queue To Front (Alt+ Mouse Button)
Rampant [likely conflict candidate imo]
Rampant Arsenal
Rampant Evolution [possible conflict candidate imo]
Rate Calculator
Recipe Book
Robot Attrition
RPG System
Shield Projector
Show Max Underground Distance
Simulation Helper
Space Exploration
Space Exploration Graphics Part 1
Space Exploration Graphics Part 2
Space Exploration Graphics Part 3
Space Exploration Graphics Part 4
Space Exploration Graphics Part 5
Space Exploration Menu Simulations
Space Exploration Postprocess (Required)
Spidertron Enhancements
Spidertron Partrols
Squeak Through
Text Plates
The Ruins Mod
Train Control Signals
VehicleSnap
Waterfill

I know this is a lot. I will try to replicate with a smaller selection to try and narrow down the problem.

1 year, 2 months ago

After some testing, I could not replicate the error with FnC (+dependencies) alone, nor with Rampant. Not sure if that's because it's not the problem or if the error is just rare enough that I didn't encounter it. Either way, from the discord, 1.1.28 is likely to fix this issue so I'm going to consider this issue closed unless I get the error post-1.1.28.

1 year, 2 months ago

Back to confirm that the latest update (1.1.28) has fixed this error. Thanks!

8 months ago

Thanks!!!

New response