ModifiedCommand / ConvertJavaTextureToBedrock

Web app for converting Minecraft Java texture packs to Bedrock texture packs
http://modifiedcommand.github.io/ConvertJavaTextureToBedrock/
GNU General Public License v3.0
31 stars 10 forks source link

Failed to parse created manifest.json #3

Closed Juice805 closed 2 years ago

Juice805 commented 2 years ago

While attempting to convert the Ozocraft Remix texture pack version 1.19v3 the conversion failed:

Start conversion
...
Create metadata manifest.json
ERROR: SyntaxError: JSON.parse: bad control character in string literal at line 5 column 16 of the JSON data

Full log here

PiSaucer commented 2 years ago

I am unable to fix this issue because it's JSON issue. After looking at the pack.mcmeta, I notice that the comment created a spacing issue confusing the generator. To fix this, just replace the information with:

{
   "pack":{
      "pack_format": 9,
      "description":"§6OzoCraft Remix §21.19\n§eFan updated by AEON"
   }
}
{
  "pack": {
    "pack_format": 9,
    "description": "§6OzoCraft Remix §21.19\n§eFan updated by AEON",
 "__comment": "

// These Spaces

This is a fan updated Classic 32x32 pack originally by Ozo.se // These weird line breaks that don't use /n
Fixes issues with Lanterns, Netherite etc by filling in 
missing items and parity

// These Spaces

"}
}

The comments show the issues with this pack.mcmeta