Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import blueprint #3

Open
tiennou opened this issue Aug 19, 2023 · 1 comment
Open

Cannot import blueprint #3

tiennou opened this issue Aug 19, 2023 · 1 comment

Comments

@tiennou
Copy link

tiennou commented Aug 19, 2023

Using the JSON Import/Export window, as soon as the text value changes it gets reset to the default blank slate, so you cannot paste your blueprint in

@tiennou
Copy link
Author

tiennou commented Aug 19, 2023

Did a few more tests after cloning and building locally, which seems to be a different version than the one deployed.

Blueprint: https://github.com/bencbartlett/Overmind/blob/master/assets/basePlanner/bunker_layout.txt

Pasting blueprint:

Imported JSON:
building-planner.tsx:274 {name: '', shard: 'shard0', rcl: 8, buildings: {…}}
building-planner.tsx:287 Uncaught TypeError: Cannot read properties of undefined (reading 'plain')
    at building-planner.tsx:287:26
    at Array.forEach (<anonymous>)
    at mx.importJson (building-planner.tsx:286:43)
    at ob.importJson (modal-json.tsx:34:28)
    at onChange (modal-json.tsx:61:62)
    at Object.st (react-dom.production.min.js:52:317)
    at pt (react-dom.production.min.js:52:471)
    at react-dom.production.min.js:53:35
    at Br (react-dom.production.min.js:100:68)
    at Wr (react-dom.production.min.js:101:380)

Entering a comma to edit the blueprint manually:

modal-json.tsx:33 Uncaught SyntaxError: Expected double-quoted property name in JSON at position 45
    at JSON.parse (<anonymous>)
    at ob.importJson (modal-json.tsx:33:29)
    at onChange (modal-json.tsx:61:62)
    at Object.st (react-dom.production.min.js:52:317)
    at pt (react-dom.production.min.js:52:471)
    at react-dom.production.min.js:53:35
    at Br (react-dom.production.min.js:100:68)
    at Wr (react-dom.production.min.js:101:380)
    at react-dom.production.min.js:113:65
    at et (react-dom.production.min.js:292:189)
[snip]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant