(technology): No such node (type)

Place to get help with not working mods / modding interface.
lyravega
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Mon Jan 06, 2014 4:41 pm
Contact:

(technology): No such node (type)

Post by lyravega »

I am getting this "(technology): No such node (type)" error if I try to create a new technology entry table, and insert it to data.raw.technology

However, if I do the commented code below, I get no such errors. Am I missing something very simple here?

Code: Select all

local entry = {
	type = "technology",
	name = "test",
	icon = "__test__/graphics/icons/test.png",
	effects = { type = "unlock-recipe", recipe = "testRecipe" },
	unit = {
		count = 20,
		ingredients = { {"science-pack-1", 1}, {"science-pack-2", 1}, {"science-pack-3", 1} },
		time = 5
	},
	--order = "x-x",
	prerequisites = {"automation-2", "advanced-electronics", "logistics-2"}
}

-- local entry = util.table.deepcopy(data.raw["technology"]["automation"])
-- entry.name = "test"
-- entry.icon = "__test__/graphics/icons/test.png"
-- entry.effects = {{ type = "unlock-recipe", recipe = "testRecipe" }}
-- entry.prerequisites = {"automation-2", "advanced-electronics", "logistics-2"}

data.raw[entry.type][entry.name] = entry
User avatar
XyLe
Fast Inserter
Fast Inserter
Posts: 124
Joined: Fri Oct 31, 2014 10:45 am
Contact:

Re: (technology): No such node (type)

Post by XyLe »

yes, you're missing extra brackets in the "effects". hope that helps
Post Reply

Return to “Modding help”