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

Factorio Generator Fails Due to Techs with -2 or -3 at the End of Their Names #3

Open
Skid-Inc opened this issue Dec 4, 2023 · 0 comments

Comments

@Skid-Inc
Copy link

Skid-Inc commented Dec 4, 2023

This is technically an issue in the Factorio AP generator, but because it's caused by use of the extractor and is not a problem with vanilla I'm putting it here to hopefully save confusion.

The Rampant Arsenal mod adds a number of technologies that follow on from vanilla technologies, an example of these would be "rampant-arsenal-technology-advanced-laser-turret-2", which is a follow on tech from laser-turrets (there is also a -3 version of this tech).

"rampant-arsenal-technology-advanced-laser-turret-2": {
	"unlocks": ["advanced-beam-item-rampant-arsenal"],
	"requires": ["laser-turret", "rampant-arsenal-technology-energy-weapons-damage-1", "military-3"],
	"ingredients": ["automation-science-pack", "logistic-science-pack", "military-science-pack", "chemical-science-pack"],
	"has_modifier": false
},

However because it has -2 at the end of the name, the Factorio AP generator ties to treat it as a progressive technology, and attempts to add it as a progressive technology for "rampant-arsenal-technology-advanced-laser-turret", a technology that doesn't exist. So attempting to generator a world the Factorio Generator fails with the following error.

ERROR:root:Could not load world WorldSource(factorio.apworld, is_zip=True, relative=True):
Traceback (most recent call last):
  File "worlds\__init__.py", line 70, in load
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "worlds\factorio\__init__.py", line 12, in <module>
  File "worlds\factorio\Locations.py", line 3, in <module>
  File "worlds\factorio\Technologies.py", line 422, in <module>

KeyError: 'rampant-arsenal-technology-advanced-laser-turret'

Line 422 seems to be attempting to create a progressive technology.

I've attached the extracted output from just having Rampant Arsenal installed and nothing else.
items.json
machines.json
recipes.json
resources.json
techs.json
fluids.json

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