Page 1 of 1

Assembly Machine Crafting Speed/Productivity

Posted: Fri Jan 04, 2019 2:51 pm
by CJ5Boss
Hello all,
I posted in another forum but I don't think it was the right one, so here is my question:
Is there any line of code that talks about the different assembly machines and the speed at which they craft things? I am trying to make a mod that, well, modifies this.
I have searched throughout the game files by using similar search terms and have looked through hundreds of results none of which give me that specific line of code!
It would be much appreciated,
CJ

Re: Assembly Machine Crafting Speed/Productivity

Posted: Fri Jan 04, 2019 5:17 pm
by DaveMcW

Code: Select all

data.raw["assembling-machine"]["assembling-machine-1"].crafting_speed = 0.5

Re: Assembly Machine Crafting Speed/Productivity

Posted: Fri Jan 04, 2019 5:21 pm
by CJ5Boss
DaveMcW wrote: Fri Jan 04, 2019 5:17 pm

Code: Select all

data.raw["assembling-machine"]["assembling-machine-1"].crafting_speed = 0.5
Thank you. How could I implement this into a research? For example, I want to add, say 0.1 to the crafting speed. Would I just say something like this:

{
{
type = "["assembling-machine"]["assembling-machine-1"].crafting_speed",
modifier = 0.1,
}
},

Or can that value not be used there?
Thanks,
CJ

Re: Assembly Machine Crafting Speed/Productivity

Posted: Mon Jan 07, 2019 10:46 am
by bobingabout
I don't think there's any research hooks to handle that.

Re: Assembly Machine Crafting Speed/Productivity

Posted: Tue Jan 08, 2019 12:42 am
by CJ5Boss
bobingabout wrote: Mon Jan 07, 2019 10:46 am I don't think there's any research hooks to handle that.
Ah. That's a bit disappointing, maybe I will add it as a suggestion in the ideas section. Thanks for letting me know, I would have kept searching the tech files for ages.