mlaidma / bg-sedit

Edit blocks within schematics for the Building Gadgets Minecraft mod
MIT License
10 stars 0 forks source link

Invalid pasted JSON error from template manager #3

Open ProbNotTrunks opened 11 months ago

ProbNotTrunks commented 11 months ago

Not sure if this is related to the recent re-writing of the building gadgets mod, as it is now building gadgets 2, but I was able to swap all the blocks an the new edited JSON was created. But when I tried to paste the code in the template manager in the game, it says "Invalid pasted JSON". Currently playing the Direwolf20 1.20 pack using this design from GitHub user moomoo84, A.K.A. Howester84. Though, now slightly modified thanks to your tool, which worked wonders.

mlaidma commented 10 months ago

Thanks for reaching out! Just to understand your message better - did it work or did you just get "Invalid pasted JSON"?

If you encountered any issues with "Invalid pasted JSON" as you mentioned, can you provide steps to reproduce? I am not actively developing this, but I might take a look at it, if it is not working anymore with new versions of BG.

ProbNotTrunks commented 10 months ago

Thanks for getting back! Yeah, there was a massive rewrite of the code for BG, it's now BG2. I was able to follow all steps listed for your tool and get the edited JSON file spit back out. All I did was copy and paste the entirety of the code from the JSON into the template manager and when I hit "paste" within the template manager GUI, it spit out the text "Invalid pasted JSON". I am curious of this is something to do with how the mapping is formatted in the body of the code? I am away from my computer now, but will try to recreate my steps and add them here when I have a moment. Thank you for your help and for making a great tool. Wish this was somehow integrated within the mod itself.