factorio-tools icon indicating copy to clipboard operation
factorio-tools copied to clipboard

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

Open Scarabytes opened this issue 4 years ago • 0 comments

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!

Scarabytes avatar Feb 25 '21 09:02 Scarabytes