Why do scripts that work normally with entities on Navius not see entities on other planets?
Posted: Thu Jan 02, 2025 1:25 pm
I once again encounter the fact that standard scripts do not see entities on other planets except Navius. And with an almost identical error
For example, such a script:
Error:
Or another script:
Error:
Please help me figure out this error!...
For example, such a script:
Code: Select all
data.raw.item["small-stomper-pentapod"].loot = {{count_max = 25, count_min = 5, item = "spoilage", probability = 1}}
Code: Select all
The following mods failed to load: __Poisonous_barbed_spikes__/data-updates.lua:44: attempt to index field 'small-stomper-pentapod' (a nil value)
Code: Select all
data.raw.resource["tungsten-ore"].minable.results =
{
{ type="item", name = data.raw.resource["tungsten-ore"].minable.result, amount = 1 },
{ type="item", name = "breed", amount = 2 }
}
Code: Select all
The following mods failed to load: __hardcorio__/prototype/breed.lua:47: attempt to index field 'tungsten-ore' (a nil value)