Rybadour / Foreman

Visual planning tool for the game Factorio
Other
21 stars 7 forks source link

[0.18 Compat] Bobs Modpack #27

Open Rybadour opened 4 years ago

Rybadour commented 4 years ago

Load up Foreman with Factorio 0.18 and Bobs Mods updated to support Factorio 0.18. Verify that it works reasonably.

There are likely existing issue that have nothing to do with 0.18 compatibility so it may be difficult to differentiate between the two. Try to summarize the issues found and add them to this project.

Rybadour commented 4 years ago

Couple things were failing because we weren't processing the "settings.lua" file. Added that but there are still a few more lingering issues...

Rybadour commented 4 years ago

A couple mods make reference to base module in their Lua. Seems like we'll need to setup the base mod as a this "module".

Rybadour commented 4 years ago

Need to create a global called "mods" that contains a dictionary of mod name mapped to mod version: https://forums.factorio.com/viewtopic.php?f=185&t=84796&p=493643#p493643

https://lua-api.factorio.com/latest/Data-Lifecycle.html

When Factorio first starts, a single shared Lua state is created to process and collect mod setting prototype data from each mod into a global table named data. Additionally, a global table named mods exists that contains a mapping of mod name to mod version for all enabled mods.

Rybadour commented 4 years ago

Fixed most of the issues. Now Bobs + Angels loads most of the recipes. There are few smaller issues remaining:

The following files could not be loaded due to errors:
C:\Users\Ryan\AppData\Local\Temp\angelsbioprocessing_0.7.8\angelsbioprocessing_0.7.8\data.lua (invalid key to 'next')
C:\Users\Ryan\AppData\Local\Temp\angelspetrochem_0.9.8\angelspetrochem_0.9.8\data-final-fixes.lua (...petrochem_0.9.8\prototypes\petrochem-global-override.lua:194: attempt to index field 'sulfuric-nitric-acid' (a nil value))