Bug Report - Ghost file

i got a bug report on a mod i’m working on but can’t really say where its the problem.

release-949 (x64)[M]
c++ exception: Error reading file bazaar/entities/decoration/awning_small/awning_small_ghost.json:

Missing :

Source:
{
   "mixins": "stonehearth:mixins:placed_object",
   "type": "entity",
   "components": {
  "model_variants": {
     "default": {
        "models": [
           "file(awning_small.qb)"
        ]
     }
  },
  "mob": {
     "model_origin": { "x": 0, "y": -0.5, "z": -0.5 },
     "region_origin": { "x": 0.5, "y": 0, "z": 0.5 },
     "allow_vertical_adjacent": true
  },
  "render_info": {
     "scale": 0.1,
     "color_map": "bazaar:color_map:awning",
     "material_maps": [
       {
         "type": "one_of",
          [
            "/bazaar/data/materials/material_maps/awning_blue_material_map.json",
            "/bazaar/data/materials/material_maps/awning_red_material_map.json"
          ]
       }
     ]
  }
   },
   "entity_data": {
  "stonehearth:catalog": {
     "display_name": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.display_name)",
     "description": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.description)",
     "icon": "file(awning_small.png)",
     "category": "decoration",
     "material_tags": ["decoration", "crafted", "sign", "stockpile_decoration"]
  }
   }
}
stack traceback:
	[C]: in function 'load_json'
	radiant/modules/resources.lua:34: in function 'load_json'
	stonehearth_ace/lib/catalog/catalog_lib.lua:115: in function '_load_json'
	stonehearth_ace/lib/catalog/catalog_lib.lua:68: in function 'load_catalog'
	...ces/client/catalog_client/catalog_client_service.lua:11: in function 'initialize'
	stonehearth/stonehearth_client.lua:23: in function 'create_service'
	stonehearth/stonehearth_client.lua:50: in function <stonehearth/stonehearth_client.lua:44>
	[C]: ?
	[C]: in function 'trigger'
	radiant/modules/events.lua:55: in function <radiant/modules/events.lua:55>

and also a second one

release-949 (x64)[M]
c++ exception: Error reading file bazaar/entities/decoration/awning_small/awning_small_ghost.json:

Missing :

Source:
{
   "mixins": "stonehearth:mixins:placed_object",
   "type": "entity",
   "components": {
      "model_variants": {
         "default": {
            "models": [
               "file(awning_small.qb)"
            ]
         }
      },
      "mob": {
         "model_origin": { "x": 0, "y": -0.5, "z": -0.5 },
         "region_origin": { "x": 0.5, "y": 0, "z": 0.5 },
         "allow_vertical_adjacent": true
      },
      "render_info": {
         "scale": 0.1,
         "color_map": "bazaar:color_map:awning",
         "material_maps": [
           {
             "type": "one_of",
              [
                "/bazaar/data/materials/material_maps/awning_blue_material_map.json",
                "/bazaar/data/materials/material_maps/awning_red_material_map.json"
              ]
           }
         ]
      }
   },
   "entity_data": {
      "stonehearth:catalog": {
         "display_name": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.display_name)",
         "description": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.description)",
         "icon": "file(awning_small.png)",
         "category": "decoration",
         "material_tags": ["decoration", "crafted", "sign", "stockpile_decoration"]
      }
   }
}
stack traceback:
	[C]: in function 'load_json'
	radiant/modules/resources.lua:34: in function 'load_json'
	stonehearth_ace/lib/catalog/catalog_lib.lua:115: in function '_load_json'
	stonehearth_ace/lib/catalog/catalog_lib.lua:68: in function 'load_catalog'
	...nehearth/services/server/catalog/catalog_service.lua:15: in function 'initialize'
	stonehearth/stonehearth_server.lua:33: in function 'create_service'
	stonehearth/stonehearth_server.lua:88: in function <stonehearth/stonehearth_server.lua:82>
	[C]: ?
	[C]: in function 'trigger'
	radiant/modules/events.lua:55: in function <radiant/modules/events.lua:55>

the json file :frowning:

{
   "mixins": "stonehearth:mixins:placed_object",
   "type": "entity",
   "components": {
      "model_variants": {
         "default": {
            "models": [
               "file(awning_small.qb)"
            ]
         }
      },
      "mob": {
         "model_origin": { "x": 0, "y": -0.5, "z": -0.5 },
         "region_origin": { "x": 0.5, "y": 0, "z": 0.5 },
         "allow_vertical_adjacent": true
      },
      "render_info": {
         "scale": 0.1,
         "color_map": "bazaar:color_map:awning",
         "material_maps": [
           {
             "type": "one_of",
              [
                "/bazaar/data/materials/material_maps/awning_blue_material_map.json",
                "/bazaar/data/materials/material_maps/awning_red_material_map.json"
              ]
           }
         ]
      }
   },
   "entity_data": {
      "stonehearth:catalog": {
         "display_name": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.display_name)",
         "description": "i18n(stonehearth:entities.decoration.wooden_sign_mason.wooden_sign_mason_ghost.description)",
         "icon": "file(awning_small.png)",
         "category": "decoration",
         "material_tags": ["decoration", "crafted", "sign", "stockpile_decoration"]
      }
   }
}

Newermind. Found the problem xD

1 Like

nice, i assume a missing } somewhere? JSON lint to the resque XD?

2 Likes

Yes, you are right :smiley:

Uff never write code after 22:00 ahahahah