✔Still error...

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

✔Still error...

#1

Post by Josh »

Hi guys,

I am trying to fix this, but it just doesn't work. Alreadt tried jsonlint for it. And yes, I am going to update the campsite plugin pack soon!

Code: Select all

[{
		"id": "camping.josh",
		"type": "category",
		"title": "Camping",
		"frames": [{
			"bmp": "campsite_plugin_pack_josh_icon.png"
		}],
		"ordinal": 10
	},
	{
		"id": "driving_caravan_josh",
		"type": "car",
		"frames": [{
			"bmp": "driving_caravan_josh.png",
			"w": 21,
			"count": 4
		}],
		"v2": true
	},
	{
		"id": "camping.places.1.josh",
		"type": "residential",
		"category": "camping.josh",
		"ordinal": 1,
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_3A.png.png"
		}, {
			"bmp": "campsite_places_josh_3B.png.png.png"
		}, {
			"bmp": "campsite_places_josh_3C.png.png.png"
		}, {
			"bmp": "campsite_places_josh_3D.png.png.png"
		}],
		"habitants": 3,
		"auto build": false,
		"needs road": true,
		"car spawner": [{
			"cars": ["driving_caravan_josh"],
			"count": 1,
			"radius": 100
		}]
	},
	{
		"id": "camping.places.2.josh",
		"type": "residential",
		"category": "camping.josh",
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_2A.png"
		}, {
			"bmp": "campsite_places_josh_2B.png.png"
		}, {
			"bmp": "campsite_places_josh_2C.png.png"
		}],
		"habitants": 3,
		"auto build": false,
		"needs road": true
	},
	{
		"id": "camping.places.3.josh",
		"type": "residential",
		"category": "camping.josh",
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_1A.png"
		}, {
			"bmp": "campsite_places_josh_1B.png"
		}],
		"habitants": 0,
		"auto build": false,
		"needs road": true
	},
	{
		"id": "camping.facilities.josh",
		"type": "park",
		"category": "camping.josh",
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "volleyball_field.png"
		}],
		"title": "Camping facilities",
		"text": "Makes your camping guests happy.",
		"needs road": false
	},
	{
		"id": "campfire.animation.josh",
		"type": "animation",
		"category": "camping.josh",
		"author": "Josh",
		"frames": [{
				"bmp": "campfire_animation_josh_A.png"
			},
			{
				"bmp": "campfire_animation_josh_B.png"
			},
			{
				"bmp": "campfire_animation_josh_C.png"
			},
			{
				"bmp": "campfire_animation_josh_D.png"
			}
		],
		"speed": 1.5
	},
	{
		"id": "campfire.josh",
		"type": "park",
		"category": "camping.josh",
		"draw ground": true,
		"author": "Josh",
		"flammable": false,
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campfire_josh.png"
		}],
		"animation": [{
			"id": "campfire.animation.josh",
			"x": 12,
			"y": -5
		}],
		"smoke": [{
			"id": "$smoke05",
			"x": 17,
			"y": -3
		}],
		"title": "Campfire",
		"text": "Come to warm yourself.",
		"needs road": false
	},
	{
		"id": "grassy.road.josh",
		"type": "road",
		"draw ground": true,
		"category": "camping.josh",
		"ordinal": 1,
		"author": "Lobby & theo",
		"level": 0,
		"speed": 1.0,
		"frames": [{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			}
		]
		"price": 5,
		"monthly price": 1,
		"title": "Grassy road",
		"text": "A road that is useful for building campsites."
	}
]

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 857
Joined: 16 Dec 2016, 02:38
Location: Germany
Plugins: Showcase Store

Platform

Re: Still error...

#2

Post by mdk_813 »

You missed a comma and you had "water" and "power" twice.
It should work like this:

Code: Select all

[{
		"id": "camping.josh",
		"type": "category",
		"title": "Camping",
		"frames": [{
			"bmp": "campsite_plugin_pack_josh_icon.png"
		}],
		"ordinal": 10
	},
	{
		"id": "driving_caravan_josh",
		"type": "car",
		"frames": [{
			"bmp": "driving_caravan_josh.png",
			"w": 21,
			"count": 4
		}],
		"v2": true
	},
	{
		"id": "camping.places.1.josh",
		"type": "residential",
		"category": "camping.josh",
		"ordinal": 1,
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_3A.png.png"
		}, {
			"bmp": "campsite_places_josh_3B.png.png.png"
		}, {
			"bmp": "campsite_places_josh_3C.png.png.png"
		}, {
			"bmp": "campsite_places_josh_3D.png.png.png"
		}],
		"habitants": 3,
		"auto build": false,
		"needs road": true,
		"car spawner": [{
			"cars": ["driving_caravan_josh"],
			"count": 1,
			"radius": 100
		}]
	},
	{
		"id": "camping.places.2.josh",
		"type": "residential",
		"category": "camping.josh",
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_2A.png"
		}, {
			"bmp": "campsite_places_josh_2B.png.png"
		}, {
			"bmp": "campsite_places_josh_2C.png.png"
		}],
		"habitants": 3,
		"auto build": false,
		"needs road": true
	},
	{
		"id": "camping.places.3.josh",
		"type": "residential",
		"category": "camping.josh",
		"level": 1,
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campsite_places_josh_1A.png"
		}, {
			"bmp": "campsite_places_josh_1B.png"
		}],
		"habitants": 0,
		"auto build": false,
		"needs road": true
	},
	{
		"id": "camping.facilities.josh",
		"type": "park",
		"category": "camping.josh",
		"draw ground": true,
		"author": "Josh",
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "volleyball_field.png"
		}],
		"title": "Camping facilities",
		"text": "Makes your camping guests happy.",
		"needs road": false
	},
	{
		"id": "campfire.animation.josh",
		"type": "animation",
		"category": "camping.josh",
		"author": "Josh",
		"frames": [{
				"bmp": "campfire_animation_josh_A.png"
			},
			{
				"bmp": "campfire_animation_josh_B.png"
			},
			{
				"bmp": "campfire_animation_josh_C.png"
			},
			{
				"bmp": "campfire_animation_josh_D.png"
			}
		],
		"speed": 1.5
	},
	{
		"id": "campfire.josh",
		"type": "park",
		"category": "camping.josh",
		"draw ground": true,
		"author": "Josh",
		"flammable": false,
		"water": 0,
		"power": 0,
		"width": 1,
		"height": 1,
		"frames": [{
			"bmp": "campfire_josh.png"
		}],
		"animation": [{
			"id": "campfire.animation.josh",
			"x": 12,
			"y": -5
		}],
		"smoke": [{
			"id": "$smoke05",
			"x": 17,
			"y": -3
		}],
		"title": "Campfire",
		"text": "Come to warm yourself.",
		"needs road": false
	},
	{
		"id": "grassy.road.josh",
		"type": "road",
		"draw ground": true,
		"category": "camping.josh",
		"ordinal": 1,
		"author": "Lobby & theo",
		"level": 0,
		"speed": 1.0,
		"frames": [{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			},
			{
				"bmp": "grassy_road.png"
			}
		],
		"price": 5,
		"monthly price": 1,
		"title": "Grassy road",
		"text": "A road that is useful for building campsites."
	}
]

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Still error...

#3

Post by Josh »

Thank you very much! It works :D

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Still error...

#4

Post by JustAnyone »

Caravans?

Post Reply Previous topicNext topic

Return to “Problems”