0.15 lua command

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
kenvas
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun May 28, 2017 1:57 pm
Contact:

0.15 lua command

Post by kenvas »

About 0.15 Lua commands

I can't understand it: Factorio\doc-html Inside command.
now “/c game.local_player.insert{name="speed-module-3", count=50}" This command An error will occur. Unable to obtain items.
As shown:
QQ图片20170831223905.png
QQ图片20170831223905.png (333.44 KiB) Viewed 2756 times
Please know, can help solve. Present can be directly generated speed moule 3 Command.

thank you very much indeed
aaargha
Filter Inserter
Filter Inserter
Posts: 333
Joined: Wed Dec 07, 2016 8:35 am
Contact:

Re: 0.15 lua command

Post by aaargha »

I can't find the docs you're referring to but I think it should only be "player" not "local_player", like so:

Code: Select all

/c game.player.insert{name="speed-module-3", count=50}
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: 0.15 lua command

Post by steinio »

aaargha wrote:I can't find the docs you're referring to but I think it should only be "player" not "local_player", like so:

Code: Select all

/c game.player.insert{name="speed-module-3", count=50}
http://lua-api.factorio.com/latest/LuaG ... ipt.player

Code: Select all

game.players[1]
should also work.
Image

Transport Belt Repair Man

View unread Posts
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: 0.15 lua command

Post by prg »

Version 0.13.0
  • game.local_player has been renamed to game.player and now works through remote calls.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
aaargha
Filter Inserter
Filter Inserter
Posts: 333
Joined: Wed Dec 07, 2016 8:35 am
Contact:

Re: 0.15 lua command

Post by aaargha »

prg wrote:Version 0.13.0
  • game.local_player has been renamed to game.player and now works through remote calls.
That would explain it.
kenvas
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun May 28, 2017 1:57 pm
Contact:

Re: 0.15 lua command

Post by kenvas »

aaargha wrote:I can't find the docs you're referring to but I think it should only be "player" not "local_player", like so:

Code: Select all

/c game.player.insert{name="speed-module-3", count=50}
Thanks very much
The problem has been settled
Indeed, as you say..
Post Reply

Return to “Technical Help”