Lua command issue

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.
matthewk1462
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 20, 2015 7:56 pm
Contact:

Lua command issue

Post by matthewk1462 »

So i wanted to speed up the mining rate so I got this command
/c game.player.force.manual_mining_speed_modifier=1000
but it returns - LUA SCRIPT DOESNT CONTAIN KEY -

This worked before what is happening please help?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Lua command issue

Post by prg »

matthewk1462 wrote:So i wanted to speed up the mining rate so I got this command
/c game.player.force.manual_mining_speed_modifier=1000
but it returns - LUA SCRIPT DOESNT CONTAIN KEY -

This worked before what is happening please help?
For me this works just fine in singleplayer and fails with "Map doesn't contain 1 player, this function can't be used" in multiplayer. In the latter case you just need to change game.player to game.local_player and it works, too.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
matthewk1462
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 20, 2015 7:56 pm
Contact:

Re: Lua command issue

Post by matthewk1462 »

Hey thanks for responding. Well I tried
/c game.local_player.force.manual_mining_speed_modifier=1000
. And no luck I am playing this game in single player mode. I really don't understand what's going wrong. I have no mods installed either?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Lua command issue

Post by prg »

What is the exact error message you're getting, and which version of the game are you trying this with?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
matthewk1462
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 20, 2015 7:56 pm
Contact:

Re: Lua command issue

Post by matthewk1462 »

Hey, Im using stable version 0.11.22 and this is the exact message I get.
Cannot execute command. error: [string "game.force.player.manual_speed_modifie..."]:1: LuaForce Doesn't contain key manual_mining speed_modifier.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Lua command issue

Post by prg »

Ah, all those underscores were added in 0.12, try manualminingspeedmodifier.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
matthewk1462
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 20, 2015 7:56 pm
Contact:

Re: Lua command issue

Post by matthewk1462 »

Ahhhh Thank you! That worked :). I was beginning to think Id have to wait for an update.
matthewk1462
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 20, 2015 7:56 pm
Contact:

Re: Lua command issue

Post by matthewk1462 »

Is there much difference in the experimental versions?
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: Lua command issue

Post by Smarty »

yes another update 0.12
see changes made here https://forums.factorio.com/forum/vie ... =3&t=13512

but it should be declared kovarex stable soon
Post Reply

Return to “Technical Help”