codelenny / factorio-recipe-extraction Goto Github PK
View Code? Open in Web Editor NEWExtracts recipes from Factorio, including recipes added from mods.
Home Page: https://codelenny.github.io/factorio-recipe-extraction/
Extracts recipes from Factorio, including recipes added from mods.
Home Page: https://codelenny.github.io/factorio-recipe-extraction/
Add lint checking, fix any issues in the current code.
As mentioned before, I ran into issued when I tried to extract game data with Bob's and Angel's mods installed. There seem to be some internal lua objects that your are not present while your tools runs and thus mod data cannot be loaded properly. Logs below.
The ~/Applications/factorio-recipe-extraction/factorio
folder is a full merge of both ~/Games/Steam/steamapps/common/Factorio
(which is the installation directory) and ~/.factorio
(which is the user-specific data directory), so all data should be available.
$ $(npm bin)/factorio-extractor --output /tmp/factorio.json --data ~/Applications/factorio-recipe-extraction/factorio
Running data.lua
Running data-updates.lua
Running data-final-fixes.lua
Exception Of Lua Code Has Failed:
...Cx5w/bobenemies_0.15.2/prototypes/alien-artifact.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not bobmods then bobmods = {} end..."]:23: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not bobmods then bobmods = {} end..."]:5: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...binserters_0.15.1/prototypes/technology-inserter.lua:32: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...bassembly_0.15.7/prototypes/assembly-electronics.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "--INITIALIZE..."]:7: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...P1ZOD/boblogistics_0.15.6/prototypes/robot-parts.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "--INITIALIZE..."]:9: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not bobmods then bobmods = {} end..."]:9: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not bobmods then bobmods = {} end..."]:5: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...62Cu20rpYIDGx/bobmining_0.15.2/prototypes/drills.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "--INITIALIZE..."]:15: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not angelsmods then angelsmods = {} end..."]:6: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if not angelsmods then angelsmods = {} end..."]:6: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if settings.startup["bobmods-enemies-aliens..."]:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...nLfyxQuc/boblibrary_0.15.10/technology-functions.lua:44: attempt to concatenate global 'new' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "for i, ore in pairs(bobmods.ores) do..."]:70: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...NgIehwQdgZ/bobplates_0.15.12/prototypes/overides.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...y_0.15.7/prototypes/assembly-electronics-updates.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...fining_0.8.1/prototypes/recipe-builder-fallbacks.lua:3: attempt to index field 'functions' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...0.15.6/prototypes/recipe/roboport-recipe-updates.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "require("prototypes.recipe-updates")..."]:10: attempt to index field 'carbon' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...elspetrochem_0.6.1/prototypes/petrochem-generate.lua:3: attempt to index field 'functions' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...NgIehwQdgZ/bobplates_0.15.12/prototypes/overides.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "require("prototypes.recipe-updates")..."]:6: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...nLfyxQuc/boblibrary_0.15.10/technology-functions.lua:44: attempt to concatenate global 'new' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...s_0.15.4/prototypes/recipe/module-merged-updates.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...pYIDGx/bobmining_0.15.2/prototypes/drill-updates.lua:1: attempt to index global 'settings' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...A1WTLS5f/bobgreenhouse_0.15.2/prototypes/updates.lua:9: attempt to index field 'bob-greenhouse-items' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...cessing_0.4.1/prototypes/bio-processing-override.lua:1: attempt to index field 'functions' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if angelsmods and angelsmods.refining then..."]:5: attempt to index field 'angels-warehouses' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
[string "if angelsmods and angelsmods.refining then..."]:2: attempt to index field 'functions' (a nil value)
Continuing.
Exception Of Lua Code Has Failed:
...ochem_0.6.1/prototypes/petrochem-global-override.lua:1: attempt to index field 'functions' (a nil value)
Continuing.
Ignorning 33 Lua errors.
Extracted Factorio data.
Testing PRs currently fails, as Travis tries to unencrypt id_rsa.enc
on every build, even though it is only needed on master
(to publish gh-pages
), and other repos aren't allowed to use the Travis secret variables for security reasons.
Add an if
statement to guard the openssl
command.
Looks like some sort of 0.15 change?
The only by_pixel references I could find are for this PR to Foreman to add 0.15 compatability
https://bitbucket.org/Nicksaurus/foreman/pull-requests/19
Fix download-headless-data.js
so it doesn't attempt to redownload versions that are already downloaded.
When using lua 5.3, the installation of this tool fails because lua_open() is missing. I found this post stating that lua_open() was removed in 5.3. http://lua-users.org/lists/lua-l/2006-07/msg00329.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.