X100 assembler


This mod adds an Assembly machine, furnace and more with a speed of 5x and x100 recipe for all recipes and more Required Mods: EzLib >= 0.1.3 Current maintainer: ZwerOxotnik

Content
1 year, 5 months ago
0.16 - 1.1
2.92K
Manufacturing

b Crash on Game Load

5 years ago

Game crashes on load.
x100/script/X100.lua - Line 47
Regarding Expensive Recipes

20.152 Loading mod X100_assembler 5.0.3 (data-final-fixes.lua)
20.807 Error ModManager.cpp:1263: Failed to load mod "X100_assembler": X100_assembler/data-final-fixes.lua:164: X100_assembler/script/X100.lua:47: attempt to index field 'expensive' (a nil value)
stack traceback:
X100_assembler/script/X100.lua:47: in main chunk
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk
stack traceback:
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk
20.814 Loading mod core 0.0.0 (data.lua)
21.001 Checksum for core: 2928929736
21.532 Error ModManager.cpp:1263: Error in assignID, recipe-category with name 'crafting' does not exist.

Source: enemy-base (noise-layer).
21.673 Initial atlas bitmap size is 16384
21.674 Created atlas bitmap 16384x108 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
21.700 Texture processor created. GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
21.767 Parallel Sprite Loader initialized (threads: 7)
22.034 Sprites loaded
22.058 Generated mipmaps for atlas of size 16384x108
22.068 Custom inputs active: 0
22.073 Factorio initialised
22.083 Mods to disable:Failed to load mods: X100_assembler/data-final-fixes.lua:164: X100_assembler/script/X100.lua:47: attempt to index field 'expensive' (a nil value)
stack traceback:
X100_assembler/script/X100.lua:47: in main chunk
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk
stack traceback:
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk

5 years ago

I've narrowed it down to recipe.expensive not existing for certain recipes.

In script.lua and functions.lua you need to verify recipe.expensive exists before using it.

if recipe.expensive then
*code**
end

5 years ago

fixed

5 years ago

You've missed a couple of references.

functions.lua - Line 91: for x,_ in ipairs(recipe.expensive.results) do

x100.lua - Line 130
2 if statements both need the "if recipe.expensive then"

5 years ago

I will fix it today and rewrite code for .17
Can you send log file for i can load your mods

5 years ago

I get this error:

79.265 Mods to disable:Failed to load mods: X100_assembler/data-final-fixes.lua:164: X100_assembler/script/functions.lua:146: attempt to index field '?' (a nil value)
stack traceback:
X100_assembler/script/functions.lua:146: in function 'make_100'
X100_assembler/script/X100.lua:117: in main chunk
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk
stack traceback:
[C]: in function 'require'
X100_assembler/data-final-fixes.lua:164: in main chunk

5 years ago

https://pastebin.com/AreZ7xeX

Pastebin from 2 minutes ago.

5 years ago

PiggyWhiskey fixed

5 years ago

Tested and works. Thank you

This thread has been locked.