This Mod is written under Factorio 1.1.33. It inserts its data in the data-updates stage. Affected are only "vanilla-names" (iron, copper, steel). If you want to add scrap for other mods recipes then just edit data-updates.lua where youll find the two array at the top of the file.
example recipes | mods recipes |
---|---|
![]() ![]() |
![]() |
The _types
table holds the patterns and is used to match parts of a recipe name with string.find().
So iron will match iron-plate and hardenend-iron-plate. Even superironbar would be a match.
To exclude like copper-plate but still use copper-cables just be more specific. It is also used
to contruct the scrap-items like iron-scrap
and the recycle recipes like recycle-iron-scrap
.
local _types = {"iron", "copper", "steel"}
This table holds the result suffix which is then be constructed to _types.."-".._results
(eg iron-plate).
Like the _types table, this one also goes by priority, so index 1 is taken if possible, if not 2 will be checked etc.
When no match is found then the recipe will be ignored and it is also logged.
As there will be no recycling of this scrap-item plate is added to the end as some sort of fallback.
local _results = {"plate"}
- Initial release
- doesn't work if the item name is in 'reverse' order like plates-osmium instead of osmium-plate
- a recipe is enabled if no technology which unlocks the result can be found instead of checking the enabled keys
- scrap colors doesn't fit quite frequently because i didn't implement a tint based icon system, shame on me
- the scrap icons look awful
- english
- deutsch
- Interface?
Please use the Issues Tab and share your suggestions and/or code.