Page 1 of 1
Lua command issue
Posted: Fri Nov 20, 2015 8:00 pm
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?
Re: Lua command issue
Posted: Fri Nov 20, 2015 8:39 pm
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.
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:38 pm
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?
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:42 pm
by prg
What is the exact error message you're getting, and which version of the game are you trying this with?
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:52 pm
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.
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:54 pm
by prg
Ah, all those underscores were added in 0.12, try manualminingspeedmodifier.
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:57 pm
by matthewk1462
Ahhhh Thank you! That worked

. I was beginning to think Id have to wait for an update.
Re: Lua command issue
Posted: Wed Nov 25, 2015 2:58 pm
by matthewk1462
Is there much difference in the experimental versions?
Re: Lua command issue
Posted: Wed Nov 25, 2015 3:03 pm
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