Force manual crafting speed

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.
PigKing107
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 14, 2016 10:40 pm
Contact:

Force manual crafting speed

Post 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
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Force manual crafting speed

Post by DaveMcW »

Works for me in 0.12.22.
PigKing107
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 14, 2016 10:40 pm
Contact:

Re: Force manual crafting speed

Post by PigKing107 »

I have updated to 0.12.22 and it still does not work.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Force manual crafting speed

Post by DaveMcW »

Are you sure you aren't inserting spaces before the /c ?
PigKing107
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 14, 2016 10:40 pm
Contact:

Re: Force manual crafting speed

Post by PigKing107 »

Yes, the command is exactly as stated above
PigKing107
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 14, 2016 10:40 pm
Contact:

Re: Force manual crafting speed

Post 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
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5405
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Force manual crafting speed

Post 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.
PigKing107
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Feb 14, 2016 10:40 pm
Contact:

Re: Force manual crafting speed

Post 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
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Force manual crafting speed

Post 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 :)
quick links: log file | graphical issues | wiki
Post Reply

Return to “Technical Help”