teoxoy / factorio-blueprint-editor

A feature-rich Factorio Blueprint Editor
https://fbe.teoxoy.com
MIT License
332 stars 75 forks source link

[BUG] Error loading 1.1 blueprint #226

Closed Daenyth closed 3 years ago

Daenyth commented 4 years ago

Describe the bug Console error:

index.ts:54 (3) [{…}, {…}, {…}]0: {keyword: "additionalProperties", dataPath: ".blueprint", schemaPath: "#/additionalProperties", params: {…}, message: "should NOT have additional properties", …}data: {snap_to_grid: {…}, absolute_snapping: true, position_relative_to_grid: {…}, icons: Array(2), entities: Array(57), …}dataPath: ".blueprint"keyword: "additionalProperties"message: "should NOT have additional properties"params: {additionalProperty: "snap_to_grid"}parentSchema: {type: "object", required: Array(3), additionalProperties: false, properties: {…}}schema: falseschemaPath: "#/additionalProperties"__proto__: Object1: {keyword: "additionalProperties", dataPath: "", schemaPath: "#/oneOf/1/additionalProperties", params: {…}, message: "should NOT have additional properties", …}2: {keyword: "oneOf", dataPath: "", schemaPath: "#/oneOf", params: {…}, message: "should match exactly one schema in oneOf", …}data: {blueprint: {…}}dataPath: ""keyword: "oneOf"message: "should match exactly one schema in oneOf"params: {passingSchemas: null}parentSchema: {$schema: "http://json-schema.org/draft-07/schema#", $id: "blueprintSchema.json", type: "object", oneOf: Array(2), definitions: {…}}schema: (2) [{…}, {…}]schemaPath: "#/oneOf"__proto__: Objectlength: 3__proto__: Array(0)
M @ index.ts:54
D @ index.ts:81
(anonymous) @ index.ts:279
Promise.catch (async)
press @ index.ts:277
(anonymous) @ actions.ts:268

To Reproduce Steps to reproduce the behavior:

Paste the attached blueprint

Expected behavior It should load the print

Screenshots If applicable, add screenshots to help explain your problem.

Screen Shot 2020-11-30 at 9 07 27 AM

Desktop (please complete the following information):

Additional context

Blueprint String 0eNrN3eFunDd2h/FbKfRZXojkOYdkPraXUQSFnQhZYWXZkOVFgyD33pETK6k0s9ZvtmgLLDawMOeV+P75knwezej8cvHu9vP1x/ubu4eL7365+HT39uObhw9vfrq/+fHx3/958V27urq8+PnLf3+9vHj77tO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lC6K4c2a+fDf05RefpSXDm1V5Ok3aYJpcRl9ku86i/ijjn+E93Zjz/SU/rq6OvfTlfjk+WxNP/ycmiG9A6cZ2zNiA4trxcUv/BejxftdrOo3f2rK1n/5/upMcHohvGiWRTlcTJC511tJVb+7/19OVZGoFGIuvnq1bHEyNRi3AyXJQIdXXiOugQTl5HFcLJC6lB+O1Ch7Aebm5//yXt88V0/v4bhceN5b/9vvfj24e/Xjz+EKcqrrQiNlesV1csHsficSwexzpzHF9+TUUFoQWpBfXqgs1ZbM5icxabs9iaxdYstmaxMYvf3zACWTxVXGnF67N4qlhY8fosvhaEFqQWvD6Lxlk0zqJxFo2zaJpF0yyaZtE0i/71N+lc0bjiSisgvc7pfa2YWMG3CiZI1wnSdYL08yZIvv4ufX2HSXFFckVwxeCKzhWNK660Ap6MwU/G4CfjawVnHpx5cObBmQdnHpx5cOaDMx+c+eDMB2c+OPPBmQ/OfHDmgzMfnHnnzDtn3jnzzpl3zrxz5p0z75x558w7Z94488aZN868ceaNM2+ceePMG2feOPPGmXPknDgH7uc33gJ5/eSHj5PDAg1ar68D0DukEWjGOol0lupjoM8ZP8m8WPB6xEser6q8cPPewNsP73C8ifI+zUcBPm3wgYbPTHws45MfHy75/MpHZD6F80GfWYJxhYmIoYu5jtGR6ZQBmBmbMZ5NAcsI9h2sVNjasBhi98R6iw0aSzr2gKwa2WayMGUny9o3NenUpOv1SQeb6GATHWyig010sIkONtHBJjrYRAeb6GATHWyig010sIkONtHBJjrYRAeb6GATHWyig010sIkONtHBJjrYRAeb6GATHWyig010sIkONtHBJjrYRAeb6GATHWyig010sIkONtHBJjrYRAeb6GATHWyig010sIkONtHBJjrURIea6FATHWqiQ010qIkONdGhJjrURAea6EATHWiiA010oIkONNGBJjrQRAea6EATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIkONdGhJjrURIea6FATHWqiQ010qIlONtHJJjrZRCeb6GQTnWyik010solONtHJJjrZRCeb6GQTnWyik010solONtHJJjrZRCeb6GQTnWyik010solONtHJJjrZRCeb6GQTnWyik010solONtHJJjrZRCeb6GQTnWyik010solONtHJJjrZRCeb6GQTnWyik010qolONdGpJjrVRKea6FQTnWqiU010qolONNGJJjrRRCea6EQTnWiiE010oolONNGJJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTnWqiU010qolONdGpJjrVRKea6FQTXWyii010sYkuNtHFJrrYRBeb6GITXWyii010sYkuNtHFJrrYRBeb6GITXWyii010sYkuNtHFJrrYRBeb6GITXWyii010sYkuNtHFJrrYRBeb6GITXWyii010sYkuNtHFJrrYRBeb6GITXWyii010sYkuNtHFJrrYRBeb6FITXWqiS010qYkuNdGlJrrURJea6FITXWiiC010oYkuNNGFJrrQRBea6EITXWiiC010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJrrURJea6FITXWqiS010qYkuNdGlJnqyweUeHcE9OoJ7dAT36HiqmFjBtwom+dRJPnWST53kUyc59z4J7n0S3PskuPdJaO+T0N4nob1PQnufBPc+Ce59Etz7JLj3SWjvk9DeJ6G9T0J7nyT3PknufZLc+yS590lq75PU3iepvU9Se58k9z5J7n2S3PskufdJau+T1N4nqb1PUnufJHcySe5kktzJJLmTSWqbkdQ2I6ltRlLbjCT3zkjunZHcOyO5d0bq3/5L/dt/qX/7L/Vv/yX/9bjkvx6X/Nfjkv96XOqnX1M//Zr66dfUT78mf34y+fOTyZ+fTP78ZOr7v1Lf/5X6/q/U938lv4Mo+R1Eye8gSn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