Page 1 of 1
[Request] Assembler Productivity
Posted: Fri May 12, 2017 7:36 pm
by ziphmose
How about a mod that adds assembler productivity through research just like drill productivity research. Could also tack on smelter productivity research to stretch resources even more.
Re: [Request] Assembler Productivity
Posted: Fri May 12, 2017 10:02 pm
by giimer
Bobmodules "god module"?
Re: [Request] Assembler Productivity
Posted: Fri May 12, 2017 10:26 pm
by bobingabout
Thanks for recommending my mod, but I don't think he meant modules.
I don't know if that is possible without looking into it, but I suspect it isn't.
Re: [Request] Assembler Productivity
Posted: Sun May 14, 2017 2:04 pm
by ziphmose
I spent a few hours poking around the forums and the game files. It appears impossible without knowing where things like technology modifier are defined. Does anyone happen to know where that is?
Re: [Request] Assembler Productivity
Posted: Sun May 14, 2017 2:48 pm
by orzelek
ziphmose wrote:I spent a few hours poking around the forums and the game files. It appears impossible without knowing where things like technology modifier are defined. Does anyone happen to know where that is?
All modifiers come from code directly. There is no way to add new ones through modding.
Re: [Request] Assembler Productivity
Posted: Sun May 14, 2017 3:26 pm
by ziphmose
orzelek wrote:ziphmose wrote:I spent a few hours poking around the forums and the game files. It appears impossible without knowing where things like technology modifier are defined. Does anyone happen to know where that is?
All modifiers come from code directly. There is no way to add new ones through modding.
I was afraid of that, thanks for confirming.
Re: [Request] Assembler Productivity
Posted: Sun May 21, 2017 6:15 pm
by kikker450
In theory it should be possible, you can read and write the bonus_progress of a Lua entity (
http://lua-api.factorio.com/latest/LuaE ... s_progress). So if you keep track of the assembling-machines and change the bonus_progress at every tick according to some multiplier (which changes after certain researches) you can manually boost productivity. Same goes for speed btw, pollution seems a lot harder to do.
Re: [Request] Assembler Productivity
Posted: Mon May 22, 2017 10:32 am
by pieppiep
kikker450 wrote:pollution seems a lot harder to do.
http://lua-api.factorio.com/latest/LuaS ... ce.pollute
The position parameter is just the position from the polluting entity.
Re: [Request] Assembler Productivity
Posted: Mon May 22, 2017 12:02 pm
by kikker450
You can add negative pollution that way?
Re: [Request] Assembler Productivity
Posted: Mon May 22, 2017 12:12 pm
by pieppiep
kikker450 wrote:
You can add negative pollution that way?
Oh, since you where talking about adding productivity and adding speed I just assumed add pollution
![Smile :)](./images/smilies/icon_e_smile.gif)
I know that if I would make an pollute function I would make it like new_value = Math.min(old_value + difference, 0) so that you could indeed add negative values.