Chem Flip


Allows you to switch around the inputs/outputs on chemistry things.

Utilities
4 years ago
0.14 - 1.0
70

b Error at last update the mod

5 years ago

Subj
3.877 Error ModManager.cpp:1332: Не удалось загрузить мод "chem_flip": chem_flip/data.lua:68: chem_flip/prototypes/flip.lua:5: attempt to index field '?' (a nil value)
stack traceback:
chem_flip/prototypes/flip.lua:5: in function 'determinecombo'
chem_flip/prototypes/flip.lua:84: in function 'startflippening'
chem_flip/prototypes/flip.lua:95: in main chunk
[C]: in function 'require'
chem_flip/data.lua:68: in main chunk
stack traceback:
[C]: in function 'require'
chem_flip/data.lua:68: in main chunk
3.879 Loading mod core 0.0.0 (data.lua)
3.964 Checksum for core: 1801404058
4.054 Error ModManager.cpp:1332: Error in assignID, recipe-category with name 'crafting' does not exist.

5 years ago
(updated 5 years ago)

Same here, anyone with a fix?

PS.:
Inserting

if not data.raw["assembling-machine"][unflippedname] then return end

in flip.lua line 84 helped for me.

I hope the creator "The_Evil_Pickle" picks this up.

4 years ago

THANK YOU!!! Worked perfectly.

For anyone else wanting a more detailed tutorial:
- Download the mod, unzip it
- in the folder "prototypes" is the flip.lua file
- any Text editor will do (even though you won't have line numbers)
- insert that line IN BETWEEN line 83 and 84.

The end result should look like this:

[line 83] local function startflippening(unflippedname, techname)
[line 84] if not data.raw["assembling-machine"][unflippedname] then return end
[line 85 (this is the original line 84] tobymods.chemflip.combotable[unflippedname] = determinecombo(unflippedname)

Then save the file and zip the entire folder again.
Place this modified folder in the usual mod folder (or do this change there)

4 years ago

This issue has now been fixed. Thanks for the help!

New response