Page 1 of 1

Force manual crafting speed

Posted: Sun Feb 14, 2016 11:30 pm
by PigKing107
The command

Code: Select all

/c game.local_player.force.manual_crafting_speed_modifier=2
does not work at all. When I run

Code: Select all

/c game.player.print(game.local_player.force.manual_crafting_speed_modifier)
to look at the variable it is always 0. I am using factorio 0.12.20

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 10:28 am
by DaveMcW
Works for me in 0.12.22.

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:06 pm
by PigKing107
I have updated to 0.12.22 and it still does not work.

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:08 pm
by DaveMcW
Are you sure you aren't inserting spaces before the /c ?

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:11 pm
by PigKing107
Yes, the command is exactly as stated above

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:15 pm
by PigKing107
I have a few mods installed and the only one that I could think of to affect this is http://www.factoriomods.com/mods/crafting-equipment

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:40 pm
by Klonan
PigKing107 wrote:I have a few mods installed and the only one that I could think of to affect this is http://www.factoriomods.com/mods/crafting-equipment
Yep that is probably causing the issue.

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:50 pm
by PigKing107
That was in fact the issue. Thanks!

Code: Select all

script.on_event(defines.events.on_tick, function(event)
	for player_index,player in pairs(game.players) do
		if player.connected then
			local craftingMultiplier = 0
			local canCraftAdv = false
			local canCraftFluid = false
			local canSmelt = false
			local canCraftChem = false
			if player.character then
That is the part of the mod that is affecting it

Re: Force manual crafting speed

Posted: Mon Feb 15, 2016 5:53 pm
by daniel34
There is this section in script.on_event(defines.events.on_tick, function(event) in the mod:

Code: Select all

player.force.manual_crafting_speed_modifier = craftingMultiplier
So yes, that's the reason. You can disable this mod or change the variable local craftingMultiplier in the control.lua file.

EDIT: damn, too slow :)