no such node (amount) error

Place to get help with not working mods / modding interface.
User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

no such node (amount) error

Post by ZombieMooose »

I'm trying to create a new liquid for the game but I keep getting this error. Do I need to put it in it's own prototypes file?

this is the code I'm using for the recipe
{
type = "recipe",
name = "liquid-wheat",
category = "chemistry",
energy_required = 5,
enabled = "false",
ingredients =
{
{"wheat", 1},
{type="fluid", name="sulfuric-acid", 5}
},
result =
{
{type="fluid", name="liquid-wheat", amount=5}
},
},
"men will literally learn everything about ancient Rome instead of going to therapy"
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: no such node (amount) error

Post by prg »

diongham wrote: {type="fluid", name="sulfuric-acid", 5}
That seems to be missing the 'amount='
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: no such node (amount) error

Post by ZombieMooose »

oh derp

well thanks

now I'm getting an error saying that the result isn't defined correctly?

I updated the code to look like this
{
type = "recipe",
name = "liquid-wheat",
category = "chemistry",
energy_required = 5,
enabled = "false",
ingredients =
{
{"wheat", 1},
{type="fluid", name="sulfuric-acid", amount=5}
},
result = {{type="fluid", name="liquid-wheat", amount=5}},
subgroup = "food"
},
"men will literally learn everything about ancient Rome instead of going to therapy"
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: no such node (amount) error

Post by prg »

'results = ...'
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
ZombieMooose
Filter Inserter
Filter Inserter
Posts: 289
Joined: Mon Feb 09, 2015 7:23 am
Contact:

Re: no such node (amount) error

Post by ZombieMooose »

prg wrote:'results = ...'
Geeze I feel like an idiot. Thanks for putting up with my derp questions.

If a mod could delete this that would be appreciated.
"men will literally learn everything about ancient Rome instead of going to therapy"
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: no such node (amount) error

Post by prg »

Well it's not that obvious, for a single non-fluid item it would just be 'result' indeed. Also this kind of thread is usually kept around since others might run into similar problems.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Modding help”