factorio-blueprint-decoder
factorio-blueprint-decoder copied to clipboard
Unknown prototype: simple-entity-with-force
Blueprint Storage
Same blueprint storage as in #15
Workaround
Changed lines 231-234 to the following:
From
https://github.com/asheiduk/factorio-blueprint-decoder/blob/d6cd1562f52e715721ce448be977e2d4fc71600a/decode#L231-L234
To
type: Index.Type
if (prototype in self._type_mapping):
type = self._type_mapping.get(prototype)
elif ('entity' in prototype):
type = Index.Type.ENTITY
else:
raise KeyError(f"unknown prototype '{prototype}'")