Keniras Random Recipes

by Kenira

Randomizes recipes (amount of ingredients and products, crafting time) as well as many other things that can be toggled individually like belt speed, crafting speeds, energy consumption, weapon damage...

4 days ago
0.15 - 2.0
1.34K

g Stack size randomization

2 months ago
(updated 2 months ago)

This frequently breaks things, but even when disabled, things still break. Like the spidertron remote.

2 months ago

Can't reproduce this error. Spidertron remotes work as expected in tests, even with stack sizes being randomized.

I'd like to fix this, but i need more info to do so because i can't fix what i can't replicate: What breaks, and how exactly? If there are any error messages, please post those. Also, what random seed are you using? Do you play with any other mods?

Alternatively, you can also send a savegame with the issues since that includes things like mods and settings.

a month ago
(updated a month ago)

It keeps randomizing mod item stack sizes even when the option is disabled.

It also randomizes the mech armor stack sizes, despite the stack size option being disabled. This makes the game unplayable in many situations.

Can't reproduce this error. Spidertron remotes work as expected in tests, even with stack sizes being randomized.

I'd like to fix this, but i need more info to do so because i can't fix what i can't replicate: What breaks, and how exactly? If there are any error messages, please post those. Also, what random seed are you using? Do you play with any other mods?

Alternatively, you can also send a savegame with the issues since that includes things like mods and settings.

I can't send savegames because the game won't finish loading.

it seems that the issue is that the recipes themselves output more items, but that the recipes don't allow them to do that

a month ago
(updated a month ago)

Good news is that the blacklist seems to work now.

a month ago
(updated a month ago)

It would be really helpful if you could send a save. It sounds like you can get into the game at least using the blacklist, and i just can't do much without reproducing it. Alternatively, please at least tell me the random seed and the rest of your options, like screenshots of all the mod settings would be helpful. Also, which version of the game and the mod you're using. I really need hard info to work with here, as i keep asking for.

Just from looking at the code, i can't do much because to me it looks like stack sizes will not in fact get randomized if the setting is disabled, and i simply cannot reproduce the issues. And i simply can't help if you don't provide a save, or the info i'm asking for.

It would be really helpful if you could send a save. It sounds like you can get into the game at least using the blacklist, and i just can't do much without reproducing it. Alternatively, please at least tell me the random seed and the rest of your options, like screenshots of all the mod settings would be helpful. Also, which version of the game and the mod you're using. I really need hard info to work with here, as i keep asking for.

Just from looking at the code, i can't do much because to me it looks like stack sizes will not in fact get randomized if the setting is disabled, and i simply cannot reproduce the issues. And i simply can't help if you don't provide a save, or the info i'm asking for.

You see, when the game broke it meant i couldn't enter the game past the mod loading. There are no saves, because i couldn't start any games in this situation. The problem wasn't actually the stack sizes themselves, but the fact that the recipes would yield more than 1 item per recipe for the unstackable items. By setting the randomization settings to high range and low difficulty, this would for example make it so the mech armor recipe gave 3 mech armors at a time, which doesn't work since it's unstackable. The mech armor was appearantly not in the armor group, so the armor blacklist didn't cover it. Adding it to the same list as artillery ammo did however work. The same goes for the modded recipes.

As for the versions, i always kept both as up to date as i could.

With high range and low difficulty, this issue was consistent enough that the randomization seed would not really matter.

Adding mech armor and the other items directly to the same blacklist as artillery ammo fixed the issues. My suggestion here would be to have the mod automatically detect the unstackable tag, and not randomize the product count per recipe for those items, rather than just the item's stack size itself. I assume you ran into this issue with artillery ammo as well as the armors, hence the specific blacklist for those items.

7 days ago
(updated 7 days ago)

I could sometimes reproduce it on a bigger modpack with changed seed:

22.855 Error ModManager.cpp:1625: Error while running setup for recipe prototype "5d-power-armor-04" (recipe): Recipe item-product "5d-power-armor-04" is not stackable but has a max count of 2.

Another example:

  24.292 Error ModManager.cpp:1625: Error while running setup for recipe prototype "early-construction-light-armor" (recipe): Recipe item-product "early-construction-light-armor" is not stackable but has a max count of 2.

Mods: SE, K2, 5dim, 248, ores, etc.

I selected "Custom" and selected individual checkboxes. I have enabled everything, except: item stack, inventory size, roboport stats, personal equipment.

7 days ago
(updated 7 days ago)

Config changes that doesn't work:

recipe_blacklist = 
            "early-construction-heavy-armor",
            "early-construction-light-armor",

blacklist_matching = 
            "-armor"

Config changes that works:

blacklist_unstackable_items =
              "early-construction-light-armor",
              "early-construction-heavy-armor",
              "5d-power-armor-09"

OR

  table.insert(blacklist_unstackable_items, "cardboard-box")
  table.insert(blacklist_unstackable_items, "early-construction-light-armor")
  table.insert(blacklist_unstackable_items, "early-construction-heavy-armor")

Is there a way to add wildcard support for blacklist_unstackable_items ?

4 days ago

Since SE and K2 both don't have an update for factorio v2.0 yet, i assume you're still playing on v1.1. Just so you know, any updates to this mod will only be for factorio v2.0+, i just can't keep 2 branches for all the mods updated, sorry.

With that said, added a check against blacklist_matching when randomizing products that may fix this issue in the new mod version 2.1.1. So putting an item on the blacklist_matching should now prevent the randomization of that item as a product in recipes.

New response