Max Rate Calculator


Calculates maximum consumption/prodution rates of assemblers, plants, etc.

Utilities
3 years ago
0.15 - 1.1
112K

b You've run afoul of the removal of a long deprecated API

3 years ago

What should I do differently?

3 years ago

In mark-hotkeys.lua you add a bunch of prototypes of type custom-input. You then go on to specify a property consuming = "script-only". That should probably be consuming = "none". The other valid value would be "game-only". And the reason you'd want to use that is if you wanted your input key to override the same input key if it's used for the base game. "none" says you want both to happen if the same input key is mapped to both a base-game action and an action in your mod.

3 years ago

Ok, thanks, I'll give that a shot. If it works, I'll upload it this evening.

3 years ago

In version 0.18.22 they removed a long deprecated API for handling input keys.

https://forums.factorio.com/viewtopic.php?f=3&t=84435
https://wiki.factorio.com/Prototype/CustomInput
https://wiki.factorio.com/Types/ConsumingType

Thanks for this. I just tried to install this tonight and was getting the "marc_hotkey" error. Will wait for the update and try again :)

3 years ago

Omnifarious's fix worked. Uploaded version 3.2.34. Thanks!

New response