Dark Matter Replicators Space Age


This mod adds replicators, machines which can produce items using nothing but electricity. Lower tiers of replicators are the most energy efficient and can essentially transform depleted, empty land into a resource. Higher tier replicators can simplify production lines or otherwise act as a convenience. Tier 1 replicators can replace depleted mining drills, allowing your expansion to be for growth rather than necessity.

Utilities
6 months ago
2.0
1.20K
Cheats

b With Bob2.0

5 months ago

模组加载失败:...tors-space-age__/prototypes/repltable/table-creation.lua:136: attempt to index field '?' (a nil value)
stack traceback:
...tors-space-age__/prototypes/repltable/table-creation.lua:136: in function 'repltech_item_table'
...-replicators-space-age__/prototypes/replications/bob.lua:128: in main chunk
[C]: in function 'require'
dark-matter-replicators-space-age/data.lua:40: in main chunk

4 months ago
(updated 4 months ago)

in 1.1 Dark Matter worked great with bob mods)
I would really like to see a fix ^_^

4 months ago
(updated 4 months ago)

for the author or for those who really want to play)
temporary solution to the problem


in ...\dark-matter-replicators-space-age_2.0.4\prototypes\repltable\table-creation.lua
instead of lines 134-145

function repltech_item_table(item_table, category, prerequisites, overrides)
overrides = overrides or {}

if not item_table or #item_table < 1 then
log("Warning: repltech_item_table was called with an empty or nil item_table. Skipping.")
return
end

-- Вариант: проверить каждый элемент в item_table, удаляя несуществующие
local filtered_table = {}
for _, subitem in ipairs(item_table) do
if subitem and subitem.name and (data.raw.item[subitem.name] or data.raw.fluid[subitem.name]) then
table.insert(filtered_table, subitem)
else
log("Skipping subitem in repltech_item_table: '"..(subitem and subitem.name or "nil").."'. Not found in data.raw.")
end
end

-- Если после фильтрации таблица осталась пустой — не создаём
if #filtered_table == 0 then
log("All subitems were invalid. Skipping entire repltech_item_table creation.")
return
end

local first_item = filtered_table[1]
local name = overrides.internal_name
or (first_item.overrides and first_item.overrides.internal_name)
or first_item.name

if not name then
log("Warning: Could not determine a valid name from item_table[1].overrides.internal_name or item_table[1].name. Skipping.")
return
end

repl_table[name] = {
name = name,
category = repltypes[category],
items = filtered_table,
prerequisites = replsub_prereq(prerequisites),
overrides = overrides,
from = "repltech_item_table",
}
end


in ...\dark-matter-replicators-space-age_2.0.4\prototypes\replications\bob.lua

in line 279
if settings.startup["bobmods-modules-enablerawspeedmodules"] and settings.startup["bobmods-modules-enablerawspeedmodules"].value then

line 289
if settings.startup["bobmods-modules-enablegreenmodules"] and settings.startup["bobmods-modules-enablegreenmodules"].value then

line 299
if settings.startup["bobmods-modules-enablerawproductivitymodules"] and settings.startup["bobmods-modules-enablerawproductivitymodules"].value then

line 309
if settings.startup["bobmods-modules-enablegodmodules"] and settings.startup["bobmods-modules-enablegodmodules"].value then

4 months ago

for the author or for those who really want to play)
temporary solution to the problem


in ...\dark-matter-replicators-space-age_2.0.4\prototypes\repltable\table-creation.lua
instead of lines 134-145

function repltech_item_table(item_table, category, prerequisites, overrides)
overrides = overrides or {}

if not item_table or #item_table < 1 then
log("Warning: repltech_item_table was called with an empty or nil item_table. Skipping.")
return
end

-- Вариант: проверить каждый элемент в item_table, удаляя несуществующие
local filtered_table = {}
for _, subitem in ipairs(item_table) do
if subitem and subitem.name and (data.raw.item[subitem.name] or data.raw.fluid[subitem.name]) then
table.insert(filtered_table, subitem)
else
log("Skipping subitem in repltech_item_table: '"..(subitem and subitem.name or "nil").."'. Not found in data.raw.")
end
end

-- Если после фильтрации таблица осталась пустой — не создаём
if #filtered_table == 0 then
log("All subitems were invalid. Skipping entire repltech_item_table creation.")
return
end

local first_item = filtered_table[1]
local name = overrides.internal_name
or (first_item.overrides and first_item.overrides.internal_name)
or first_item.name

if not name then
log("Warning: Could not determine a valid name from item_table[1].overrides.internal_name or item_table[1].name. Skipping.")
return
end

repl_table[name] = {
name = name,
category = repltypes[category],
items = filtered_table,
prerequisites = replsub_prereq(prerequisites),
overrides = overrides,
from = "repltech_item_table",
}
end


in ...\dark-matter-replicators-space-age_2.0.4\prototypes\replications\bob.lua

in line 279
if settings.startup["bobmods-modules-enablerawspeedmodules"] and settings.startup["bobmods-modules-enablerawspeedmodules"].value then

line 289
if settings.startup["bobmods-modules-enablegreenmodules"] and settings.startup["bobmods-modules-enablegreenmodules"].value then

line 299
if settings.startup["bobmods-modules-enablerawproductivitymodules"] and settings.startup["bobmods-modules-enablerawproductivitymodules"].value then

line 309
if settings.startup["bobmods-modules-enablegodmodules"] and settings.startup["bobmods-modules-enablegodmodules"].value then

can you elaborate what i need to do to make this mod work? im looking at this and this is basically chinese to me

New response