Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this repo still up to date? / factoriodump crashes on requires clause in 1.1 vanilla factorio prototypes #15

Open
Scarabytes opened this issue Feb 25, 2021 · 0 comments

Comments

@Scarabytes
Copy link

Scarabytes commented Feb 25, 2021

I tried to generate a recipe table for vanilla factorio 1.1 before adding several mods to be calculated, but factoriodump crashed.
It choked on a requires clause within the vanilla prototypes yielding the following error:

> ./factoriodump --calcdir=../factorio-web-calc/ --gamedir=~/Programme/Linux/Steam/steamapps/common/Factorio --prefix=vanilla-1-0 --verbose
...io/data/base/prototypes/entity/spidertron-animations.lua:521: module '__base__/prototypes/entity/spidertron-light-positions' not found:
	no field package.preload['__base__/prototypes/entity/spidertron-light-positions']could not find ../FactorioLoaderLib/__base__/prototypes/entity/spidertron-light-positions.lua
	no file '~/Programme/Linux/Steam/steamapps/common/Factorio/data/base/__base__/prototypes/entity/spidertron-light-positions.lua'
	no file '~/Programme/Linux/Steam/steamapps/common/Factorio/data/core/lualib/__base__/prototypes/entity/spidertron-light-positions.lua'
	no file '/usr/local/share/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.lua'
	no file '/usr/local/share/lua/5.3/__base__/prototypes/entity/spidertron-light-positions/init.lua'
	no file '/usr/local/lib/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.lua'
	no file '/usr/local/lib/lua/5.3/__base__/prototypes/entity/spidertron-light-positions/init.lua'
	no file '/usr/share/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.lua'
	no file '/usr/share/lua/5.3/__base__/prototypes/entity/spidertron-light-positions/init.lua'
	no file './__base__/prototypes/entity/spidertron-light-positions.lua'
	no file './__base__/prototypes/entity/spidertron-light-positions/init.lua'
	no file '/usr/local/lib/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.so'
	no file '/usr/lib/lua/5.3/__base__/prototypes/entity/spidertron-light-positions.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './__base__/prototypes/entity/spidertron-light-positions.so'

The line in question is in base/prototypes/entity/spidertron-animations.lua, however the same problem also occurs in other places if I edit out the __base__/ in this line.
light_positions = require("__base__/prototypes/entity/spidertron-light-positions"),

It seems that __base__ is not being replaced/removed before searching for the file.

Since the webversion can handle 1.1 just fine, I guess either I'm doing something wrong or this repository hasn't been updated. I'd love to get this fixed soon :) Thank you for all your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant