Bio Industries


Provides useful buildings and items, like the Bio Farm for growing trees. Solar Farm and Large Accumulator to make your electric setup easier. Bio Fuel section to produce organic plastic and batteries. Lots of New Wood Products, like the big electric pole, wooden pipes, dart turret. Plant trees using seedlings. Change terrain from deserts to grasslands using Fertilizer - helps trees grow better. And a lot more… Please visit the homepage on the forums for more information and feedback.

Content
8 months ago
0.14 - 1.1
54.3K
Manufacturing

b [Fixed] Error Message

4 years ago

Getting this error while trying to load a save. Not sure what to do...
Bio_Industries/migrations/Bio_Industries_0.17.44.lua:64: attempt to index field 'bi_solar_farm_table' (a nil value)
stack traceback:
Bio_Industries/migrations/Bio_Industries_0.17.44.lua:64: in main chunk

Pi-C
4 years ago

Sorry, seems I made another mistake. Could you send me the save game, please, so I can have a look? Setting up testing games is one thing, but apparently I don't catch everything that way…

Pi-C
4 years ago

I think I've found the reason. Please change from

    global.bi_solar_farm_table = nil

to

    global.bi_solar_farm_table[index] = nil

in line 53 of migrations/Bio_Industries_0.17.44.lua. Do you still get the same error then? (There could be some more lines where I made the same stupid mistake and deleted the complete table instead of just a single table entry!)

4 years ago

How do I change that? And how do I send you the save game file?

Pi-C
4 years ago

How do I change that?

I'm on Linux, so I don't know about the path names for Windows etc. Basically, you go to the mod directory, look for Bio_Industries_0.17.44.zip, unpack it, change into the new directory Bio_Industries_0.17.44, and edit the file migrations/Bio_Industries_0.17.44.lua with any text editor you like.

And how do I send you the save game file?

You could do that via PM on the forum (I've the same user name there). I'm not sure about size limits for files, though.

4 years ago

Changing the migrations file worked! Thank you so much!

Pi-C
4 years ago

Great! The same error occurs several times though (copy'n'paste), so I'll still have to rework the migration script to get all tables in order again …

Pi-C
4 years ago

Should be fixed in 0.17.45/0.18.13. Please try the latest version!

New response