I need Help with my Plugin Json

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 98
Joined: Wed Jan 31, 2018 17:55
Location: Austria, Vienna
Plugins: Show

Platform

Plugin Creator

I need Help with my Plugin Json

#1

Post by KentuckyFriedChicken »

Code: Select all

[{
	"draw ground": "false",
	"frame": "your friend.png",
	"height": 1,
	"id": "yourfriend00",
	"influence park": 15,
	"monthly price ": 50,
	"needs land": "true",
	"needs road": "true",
	"needs water": "false",
	"power": -5,
	"price": 100,
	"rotation aware": "false",
	"text": "My first plugin building which is park!",
	"type": "park",
	"water": -5,
	"width": "4"
}]
Is there anything wrong?
Screenshot_20180205-075708.png
Screenshot_20180205-075655.png
I amKentucky
Hello World.


...I really like Scythal

cesareborgia94
Inhabitant of a Planet
Reactions:
Posts: 1306
Joined: Sun Nov 12, 2017 9:23
Location: The Kingdom of Babilandia
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: I need Help with my Plugin Json

#2

Post by cesareborgia94 »

I don't know whats wrong but height and width needs to have the same value.

Also
Not "width"="4", get rid of "" from 4
Use the value such as "height"=1
Values don't need ""
I rarely make plugins now, but I still make them in spare time.
Disclaimer Please no request, I'm busy with real life stuff, I hope you understand ;)
You can find me here only. Discord is sh**, sorry JA :(

User avatar
CommanderABab
AB
Reactions:
Posts: 9108
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: I need Help with my Plugin Json

#3

Post by CommanderABab »

KentuckyFriedChicken wrote:
Mon Feb 05, 2018 9:01

Code: Select all

[{
	"draw ground": "false",
	"frame": "your friend.png",
	"height": 1,
	"id": "yourfriend00",
	"influence park": 15,
	"monthly price ": 50,
	"needs land": "true",
	"needs road": "true",
	"needs water": "false",
	"power": -5,
	"price": 100,
	"rotation aware": "false",
	"text": "My first plugin building which is park!",
	"type": "park",
	"water": -5,
	"width": "4"
}]
Is there anything wrong?

Screenshot_20180205-075708.pngScreenshot_20180205-075655.png
Correct frames line:

Code: Select all

"frames": [{"bmp":"your friend.png"}],
and change the width to 1 as cesar said.
Image

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 98
Joined: Wed Jan 31, 2018 17:55
Location: Austria, Vienna
Plugins: Show

Platform

Plugin Creator

Re: I need Help with my Plugin Json

#4

Post by KentuckyFriedChicken »

CommanderABab wrote:
Mon Feb 05, 2018 9:33
KentuckyFriedChicken wrote:
Mon Feb 05, 2018 9:01

Code: Select all

[{
	"draw ground": "false",
	"frame": "your friend.png",
	"height": 1,
	"id": "yourfriend00",
	"influence park": 15,
	"monthly price ": 50,
	"needs land": "true",
	"needs road": "true",
	"needs water": "false",
	"power": -5,
	"price": 100,
	"rotation aware": "false",
	"text": "My first plugin building which is park!",
	"type": "park",
	"water": -5,
	"width": "4"
}]
Is there anything wrong?

Screenshot_20180205-075708.pngScreenshot_20180205-075655.png
Correct frames line:

Code: Select all

"frames": [{"bmp":"your friend.png"}],
and change the width to 1 as cesar said.

Code: Select all

 [{
	"draw ground": "false",
	"frames": [{"bmp":"your friend.png"}],
	"height": 1,
	"id": "yourfriend00",
	"influence park": 15,
	"monthly price ": 50,
	"needs land": "true",
	"needs road": "true",
	"needs water": "false",
	"power": -5,
	"price": 100,
	"rotation aware": "false",
	"text": "My first plugin building which is park!",
	"type": "park",
	"water": -5,
	"width": 1
}]
Better?
I amKentucky
Hello World.


...I really like Scythal

User avatar
CommanderABab
AB
Reactions:
Posts: 9108
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: I need Help with my Plugin Json

#5

Post by CommanderABab »

Yes
Image

Post Reply Previous topicNext topic

Return to “Problems”