Can't spawn items anymore?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Indiglow
Inserter
Inserter
Posts: 20
Joined: Mon Jul 11, 2016 1:23 am

Can't spawn items anymore?

Post 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?

Indiglow
Inserter
Inserter
Posts: 20
Joined: Mon Jul 11, 2016 1:23 am

Re: Can't spawn items anymore?

Post 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?

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Can't spawn items anymore?

Post by Nexela »

I think you need some () love

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

Indiglow
Inserter
Inserter
Posts: 20
Joined: Mon Jul 11, 2016 1:23 am

Re: Can't spawn items anymore?

Post 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!

Post Reply

Return to “Gameplay Help”