Closed WidAmi closed 2 years ago
Loading a Blueprint book with an icon set seems to fail.
The code:
blueprint = get_blueprintable_from_string(TRAIN_BOOK_INPUT)
This is the exception I get:
factorio-draftsman/venv/lib/python3.7/site-packages/draftsman/classes/blueprintbook.py:135: DraftsmanWarning: <class 'draftsman.classes.blueprintbook.BlueprintBook'> has no attribute 'icons' self.setup(**root["blueprint_book"])
And this is the blueprint book string:
0eNrdlkFvozAQhf9K5TOpgkNKw3X3srceVtpDFSEDA7VqPJYxaaOK/94xJBvUZds0SrrS3uyx/d4b+xPJC8tUC8ZK7dIM8ZElL4dKw5L70dSvyRz1UG5kpYXyNbc1wBImHdQsYFrUfmaFVKwLmNQFPLMk7IIPjyjMsUYnNzA6yLt1wEA76SQMxv1km+q2zsCS8u/zubAVzp5EhZpEDTZ0hoZkRzqzcLEI2JYG/HZF8mglCYlhx/yaL73jhkpoaZNulQqYE1Xjj9dCt0KlNRZkUwrVAK1RgzpVoCv34FP6/t4k41OdTQTjNx8E+1QOuq4mf4CiVbv7Opj7OR+tD++492Lf0BiwV3dKOLi6k/ljayjuk5AupVcv+tCDJAkaYSHdPSNa2rcbl3RzrFv3zz2t/N2iwbL8vDTUxm299to32bOTjOgMmBIZqLd2P/0F0eIGbNOn4bdhFK94vFxG0TK+OaA296H/F9qjeIBqsYr/hCr+h7RH83eCfSHtPyzqS7A+0r086b3Z8YSHX0q4xYz6t+40vkvVyuJvfIeLPd7xOb6Zp9IcRtE5Y5wO8y/CzZ6X40Hy8ggPPsczzKf0Zv1/l4NoL9dQ4Wi+Jz/HofcSua+m+x+JdzJ2r/U0ItA=
I forgot to set that particular attribute in the setup function. This will be fixed in version 0.9.7.
0.9.7
Loading a Blueprint book with an icon set seems to fail.
The code:
This is the exception I get:
And this is the blueprint book string: