factorio-blueprint-decoder icon indicating copy to clipboard operation
factorio-blueprint-decoder copied to clipboard

Unknown prototype: simple-entity-with-force

Open USSX-Hares opened this issue 1 year ago • 0 comments

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}'")

USSX-Hares avatar Nov 25 '23 13:11 USSX-Hares