Lua libraries for use by other mods and submods that are parts of a larger mod.
Version: 0.4.2
Date: 2026-04-19
Bugfixes:
- Fixed missing require for the debug_log calls in oc_tech and oc_recipe.
Version: 0.4.1
Date: 2026-04-19
Balancing:
- I found a calculation error within the generator. The cost reduction was not applied at all.
I reindtroduced the linear factor and by default set it to 0.8, meaning each intermediate step only accounts 80% to the final recipe.
- I found another calculation error with the crafting time calculation which ignored if a subrecipe is used multiple times.
It has no use here other than helping other modders.
Other:
- Movoed the "example-mod.lua" compat example file from [OCs Foundry Expansion] to here, so thatfor other modders to find it easier.
Changes:
- Started to reorder the helper functions. The tech and recipe related helpers now got their dedicated file.
This change will be conducted mod by mod so you don't have to update them all at once. I will edit the other mods dependency accordingly so you should not worry at all.
- Added a dedicated debug log tag for both cases.
Bugfixes:
- Fixed that the remove_prerequ did not work with strings as second part of a table
Version: 0.4.0
Date: 2026-04-13
Major Features:
- Added prefix for all generated recipes ("oc-") to distinct them from others. This makes older version incompatible.
Changes:
- Setting all helper functions to be local to avoid spamming name_space and to prevent issues with other mods. (Breaking change for older versions)
- Set this mod properly to be a [Space Age] mod, which it was from the start.
- Renamed the internal debug mode to prevent issues with other mods.
- Function "allow_productivity" now logs more precisely when something goes wrong and also when it succeeds.
- Hide all created recipes from player crafting gui.
- Moved generator-specific helper function of the recipe-generator.lua file to keep the helper.lua file more general.
- Allow to craft iron-gear-wheel, iron-stick and copper-cable in the organics category.
Bugfixes:
- Made the "add_tech_ingredient" and "remove_tech_ingredient" functions work correctly.
Version: 0.3.4
Date: 2026-02-14
Bugfixes:
- Added another safety check for result_amount in the recipe generator to prevent crashes when it's nil, zero or invalid.
Changes:
- Batch generator now logs both input and output (sucesses and failures) list as one recipe per line to make it more readable.
- Removed old function "replace_multiple_recipes". Use the new, more nuanced functions instead.
- Both "add_recipe_unlocks" and "remove_recipe_unlocks" now log more precisely when something goes wrong.
- Both "add_prerequisites" and "remove_prerequisites" now log more precisely when something goes wrong.
- Batch generator now only handles recipe names, while the single recipe generator handles the full recipe table.
- Set for all generated recipes "allow_decomposition" to false to prevent them from being recycled in the recycler. This should avoid weird edge cases and very long recycling times.
Minor Features:
- New mod setting: debug mode (default: true) so that bugs are easier to fix. Probably will be set to false later.
Version: 0.3.3
Date: 2026-02-10
Minor Features:
- Added basic blacklists and other rules for "cryogenics" category to make it ready for use.
- Added cryo-plant overlay for technologies.
- Added helper functions for adding and removing specific amount of science packs to a tech.
- EXPERMIMENTAL & unfinished: Automated localisations for generated recipes. Currently only EN and DE are supported (as for my other mods using it).
Changes:
- Reduced defalt value of "energy reduction power" setting (aka crafting time power) from 0.5 to 0.25 which makes everything a bit cheaper. Change it manually if needed.
- Changed remove_recipe_unlocks() to accept a mapping table instead of tech and recipe_list. It's now symmetric to add_recipe_unlocks().
- Changed add_prerequisites() to accept a mapping table instead of tech and table of techs. It's now symmetric to the above.
- Added remove_prerequisites(), also symmetric to the above.
- Renamed helper fuction to change_recipes_subgroups()
Version: 0.3.2
Date: 2025-11-07
Bugfixes:
- Fixed bug where add_productivity_bonus wasn't working as intendet at all. Bug was introduced in version 0.3.1.
Version: 0.3.1
Date: 2025-11-06
Bugfixes:
- Added another safety check for add_productivity_bonus in case of a missing recipe.
Version: 0.3.0
Date: 2025-11-05
Major Features:
- Complete rework of the casting generator:
Enable other categories other than "metallurgy" for the generator.
Currently: "electromagnetics", "organic" are in use.
Others like "cryogenic" can be easily added.
- API: Every interaction can be handled with an api function.
Minor Features:
- debug_log() now reveals more information like where it was triggered.
- Updated Factorio version to 2.0.60
- Added descriptions for helper functions.
- Some helper functions now also accept a string too, instead a list or table only.
- Made some helper functions to have the name as a string input instead of the whole data table.
Compatibility:
- ["Krastorio2-spaced-out"] started compatibility.
- ["aai-industry"] support.
Other:
- Removed debug logs when adding recipe unlocks or cloning a table.
Version: 0.2.1
Date: 2025-06-02
Bugfixes:
- Added surface conditions to the generator to prevent cheesing with casting recipes.
Version: 0.2.0
Date: 2025-06-02
Major Features:
- Introducing the casting generator: it generates casting recipes.
- Introducing a setting to change the crafting time reduction factor for the generator.
Graphics:
- Changed all overlayer graphics with with new factorio 2.0.44, should have been done earler.
Known Issues for modders:
- Automated localisations are not implemented yet. They have to be manually added from the mod which uses the generator.
Version: 0.1.1
Date: 2025-04-06
Bugfixes:
- Fixing typo in folder name "grapics" instead of "graphics".
Version: 0.1.0
Date: 2025-04-06
Major Features:
- Initial idea.
- Helper functions for the modpacks: table.contains table.copy_and_rename, add_recipe_unlocks, replace_multiple_recipes
- Graphic assets for the modpacks: overlayers (molten-iron, molten-copper, lava-droplet, gleba, space, em-plant, biochamber)