Dynamic Recipe Randomizer

by Esnos

Randomizes recipes every minute during gameplay dynamically.

Tweaks
19 days ago
2.0
42
Manufacturing

g A new randomizer!

a month ago

Always excited to see new randomizers. Do you have any future plans for this?

25 days ago

For now I want to play it more and add more generation options later. Also I could make it more UPS efficient later. Code cleaning is also necessary. I looked at the other randomizers code (yours too btw), considered them a spaghetti and ended up cooking it myself anyway while covering edgecases.

Main challenge of this mod was separation of data.lua and control.lua. I circumvented it by generating multiple recipes variants and changing recipes to correct current variant while scanning assembler prototypes. If you want to incorporate my code or you have any questions feel free to ask.

24 days ago

Yeah, you definitely need the multiple recipes up front in data.lua to then switch between in control.lua. I'm surprised that my mod seemed spaghetti; that's the one I actually tried to make organized. Though maybe since I haven't coded for a job I don't know the standard conventions.

Excited to see where this goes!

New response