Page 1 of 1

Can't spawn items anymore?

Posted: Mon Jul 18, 2016 12:32 am
by Indiglow
I'm trying the following code:

/c game.local_player.insert{name="train-stop", count=50}

and I'm getting an error message that local_player is not a valid key. Can anyone help?

Re: Can't spawn items anymore?

Posted: Mon Jul 18, 2016 12:40 am
by Indiglow
also

/c game.player.insert{name="train-stop", count=50}

doesn't work either, but that doesn't give any error messages like the above code does. Any help?

Re: Can't spawn items anymore?

Posted: Mon Jul 18, 2016 12:50 am
by Nexela
I think you need some () love

/c game.player.insert({name="train-stop", count=50})

Re: Can't spawn items anymore?

Posted: Mon Jul 18, 2016 12:52 am
by Indiglow
Nexela wrote:I think you need some () love

/c game.player.insert({name="train-stop", count=50})

OMG thank you! everywhere I looked there was never any ().

in fact, if you leave out the () and change the name to iron-ore it works. but for some reason on train stops you need the ().

Thanks a million!