[Rseding91] [2.0.15] "Unknown entity name: <null>" error importing blueprint of turret with gaps in target priority list
Posted: Thu Nov 07, 2024 12:47 am
Steps to reproduce:
1. Place a turret, and configure it with 3 target priorities
2. Right click the middle target priority to remove it, leaving a gap
3. Take a blueprint of the turret, and export the blueprint string
4. Import this blueprint string.
You will see:
- "Error while importing string:" flying text next to cursor (no second line or more detail)
- "Unknown entity name: <null>" in the console
- The blueprint was not imported
Decoding this blueprint to JSON the issue is clearly evident:
1. Place a turret, and configure it with 3 target priorities
2. Right click the middle target priority to remove it, leaving a gap
3. Take a blueprint of the turret, and export the blueprint string
Code: Select all
0eNptj9sKg0AMRP9lnlfoZRVdSn9EpGi7SGCNspdSEf+90Rb60rdJyJyZLOhcspMnjjAL6D5ygKkXBOq5dduO28HCoE+cxeS9jVgViB/2BXNcGwXLkSLZj28f5hunobNeDtQfv8I0BrGMvPEFUyrMMFkpYKkyeiFkjoJUqhGG1rmsoyg4hQsn564iOuq/y2brIGqQkN8zCk/rwx6RF6dKV1Wu9UGf82Jd31NHUZU=
You will see:
- "Error while importing string:" flying text next to cursor (no second line or more detail)
- "Unknown entity name: <null>" in the console
- The blueprint was not imported
Decoding this blueprint to JSON the issue is clearly evident:
Code: Select all
{
"blueprint": {
"icons": [
{
"signal": {
"name": "gun-turret"
},
"index": 1
}
],
"entities": [
{
"entity_number": 1,
"name": "gun-turret",
"position": {
"x": 8,
"y": -8
},
"priority-list": [
"small-biter",
"<null>",
"big-biter"
]
}
],
"item": "blueprint",
"version": 562949954404356
}
}