Mini Machines Mod

by Kryzeth

Miniature versions of assemblers, electric furnaces, etc. Full integration with all of Bobs mods and ShinyBobGFX/ShinyAngelGFX, Industrial Revolution, Factorio Extended Plus (FXP), Gotlag's Electric Furnaces, AAI Industry, Fantario, and One More Tier. (independently, not necessarily simultaneously)

Content
21 hours ago
0.13 - 2.0
11.7K
Manufacturing

b [Fixed] Error: Attempt to perform arithmetic on recipeCost (nil value)

4 years ago

here's the final lines of factorio-current.log

82.424 Loading mod mini-machines 7.1.2 (data-final-fixes.lua)
82.435 Script @stdlib/stdlib/data/data.lua:39: Item mini-assembler-0 does not exist. [stdlib/stdlib/data/data.lua:490 in Item, stdlib/stdlib/data/recipe.lua:47 in format, stdlib/stdlib/data/recipe.lua:62 in get_difficulties, stdlib/stdlib/data/recipe.lua:153 in replace_ingredient, @mini-machines/func.lua:296 in miniaturize, @mini-machines/data-final-fixes.lua:10 in ???]
82.435 Error ModManager.cpp:1471: Failed to load mod "mini-machines": mini-machines/func.lua:130: attempt to perform arithmetic on field 'recipeCost' (a nil value)
stack traceback:
mini-machines/func.lua:130: in function 'balanceRecipe'
mini-machines/func.lua:311: in function 'miniaturize'
mini-machines/data-final-fixes.lua:10: in main chunk
82.437 Loading mod core 0.0.0 (data.lua)
85.983 Checksum for core: 1964106968
86.146 Error ModManager.cpp:1471: Error in assignID, recipe-category with name 'crafting' does not exist.

Source: default (utility-sprites).
86.240 Initial atlas bitmap size is 16384
86.241 Created atlas bitmap 2048x544 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
86.248 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
86.261 Parallel Sprite Loader initialized (threads: 3)
86.320 Sprites loaded
86.333 Generated mipmaps (5) for atlas [0] of size 2048x544
86.333 Custom mipmaps uploaded.
86.337 Factorio initialised
86.339 Mods to disable:Failed to load mods: mini-machines/func.lua:130: attempt to perform arithmetic on field 'recipeCost' (a nil value)
stack traceback:
mini-machines/func.lua:130: in function 'balanceRecipe'
mini-machines/func.lua:311: in function 'miniaturize'
mini-machines/data-final-fixes.lua:10: in main chunk

Mods to be disabled:
• mini-machines (7.1.2)

4 years ago
(updated 4 years ago)

Hm.. that's weird. I think just the error message would have been good enough in this case. I wonder.. have you changed any settings recently? I wonder if the issue might be setting recipeCost to 0 causing it to be read as nil, instead of the number zero.

EDIT: Nvm, not a possibility. Must be some other reason that setting is being read as nil instead of a number.

OHHH. Duh. If balance is disabled, the recipeCost doesn't get set to anything. Fixed as of v7.1.3

New response