Page 1 of 1

Need help with manifest!

Posted: 28 Jan 2021, 16:14
by PixelDubs
I need help with manifest please reply for zip file!

Re: Need help with manifest!

Posted: 28 Jan 2021, 20:57
by Kamikazi
I thought plugin.manifest files are actually easier to code than actual .json files.
I mean, this is an easy to follow and short tutorial on how to code them.
viewtopic.php?f=41&t=10950

Re: Need help with manifest!

Posted: 28 Jan 2021, 21:27
by PixelDubs
Kamikazi wrote: 28 Jan 2021, 20:57 I thought plugin.manifest files are actually easier to code than actual .json files.
I mean, this is an easy to follow and short tutorial on how to code them.
viewtopic.php?f=41&t=10950
I followed it, and now I need help win my JSON because I tried everything to also fix that but It did not work lol.

Re: Need help with manifest!

Posted: 28 Jan 2021, 22:35
by Kamikazi
LZS Gaming wrote: 28 Jan 2021, 21:27
Kamikazi wrote: 28 Jan 2021, 20:57 I thought plugin.manifest files are actually easier to code than actual .json files.
I mean, this is an easy to follow and short tutorial on how to code them.
viewtopic.php?f=41&t=10950
I followed it, and now I need help win my JSON because I tried everything to also fix that but It did not work lol.
So what are you trying to code? Can you send it so i can check it?

Re: Need help with manifest!

Posted: 29 Jan 2021, 00:47
by PixelDubs
diagonal_road.json
(576 Bytes) Downloaded 168 times
Kamikazi wrote: 28 Jan 2021, 22:35
LZS Gaming wrote: 28 Jan 2021, 21:27
Kamikazi wrote: 28 Jan 2021, 20:57 I thought plugin.manifest files are actually easier to code than actual .json files.
I mean, this is an easy to follow and short tutorial on how to code them.
viewtopic.php?f=41&t=10950
I followed it, and now I need help win my JSON because I tried everything to also fix that but It did not work lol.
So what are you trying to code? Can you send it so i can check it?
My JSON has an issue I used JSONlint but I cannot solve it, if possible can you fix it for me and I will give you credit and part of the diamond share.

Re: Need help with manifest!

Posted: 29 Jan 2021, 01:10
by CommanderABab
Probably should be:

Code: Select all

[{
		"id": "$diagonal_road_template00",
		"type": "template",
		"level": 1,
		"traffic lights": [{
			"bmp": "trafficlights.png",
			"w": 32,
			"count": 4
		}],
		"price": 20,
		"monthly price": 1,
		"title": "Dia road no sidewalks",
		"text": "A country road made in Britain without the sidewalk."
	},

	{
		"hidden": true,
		"level": 2,
		"id": "$diagonal_road_diagonal00",
		"template": "$diagonal_road_template00",
		"type": "road",
		"draw ground": true,
		"speed": 3,
		"frames": [

			{
				"bmp": "diagonal.png",
				"w": 32,
				"count": 16
			}
		],
		"allow diagonal": true
	}

]

Re: Need help with manifest!

Posted: 29 Jan 2021, 10:48
by PixelDubs
CommanderABab wrote: 29 Jan 2021, 01:10 Probably should be:

Code: Select all

[{
		"id": "$diagonal_road_template00",
		"type": "template",
		"level": 1,
		"traffic lights": [{
			"bmp": "trafficlights.png",
			"w": 32,
			"count": 4
		}],
		"price": 20,
		"monthly price": 1,
		"title": "Dia road no sidewalks",
		"text": "A country road made in Britain without the sidewalk."
	},

	{
		"hidden": true,
		"level": 2,
		"id": "$diagonal_road_diagonal00",
		"template": "$diagonal_road_template00",
		"type": "road",
		"draw ground": true,
		"speed": 3,
		"frames": [

			{
				"bmp": "diagonal.png",
				"w": 32,
				"count": 16
			}
		],
		"allow diagonal": true
	}

]
It does not show up in my plugins tab or roads section, but TT does not notice errors and lets me play.

Re: Need help with manifest!

Posted: 29 Jan 2021, 19:11
by CommanderABab
It does not show up because it has

Code: Select all

"hidden":true
in it.