Page 1 of 1

no such node (amount) error

Posted: Sun Mar 20, 2016 7:15 pm
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}
},
},

Re: no such node (amount) error

Posted: Sun Mar 20, 2016 7:25 pm
by prg
diongham wrote: {type="fluid", name="sulfuric-acid", 5}
That seems to be missing the 'amount='

Re: no such node (amount) error

Posted: Sun Mar 20, 2016 8:41 pm
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"
},

Re: no such node (amount) error

Posted: Sun Mar 20, 2016 8:59 pm
by prg
'results = ...'

Re: no such node (amount) error

Posted: Sun Mar 20, 2016 10:01 pm
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.

Re: no such node (amount) error

Posted: Sun Mar 20, 2016 10:06 pm
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.