Can someone make json?

Plug-in related stuff can be discussed 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

Can someone make json?

#1

Post by Josh »

Can someone make a json for this for this picture? I would be grateful :)
tri_trees_All.png
tri_trees_All.png (685 Bytes) Viewed 1729 times

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

Platform

Re: Can someone make json?

#2

Post by mdk_813 »

Sorry, I don't know how to do a json for an image with four frames like yours. But, you could use the json from my palmtrees as a starting point. Note, here I provided six frames:

Code: Select all

 [{
      "id":"Palmtrees.mdk_813",
	  "type":"tree",
	  "author":"mdk_813",
	  "frames":[{"bmp":"Palmtree_A_transp_1x1.png"},{"bmp":"Palmtree_B_transp_1x1.png"},{"bmp":"Palmtree_C_transp_1x1.png"},{"bmp":"Palmtree_D_transp_1x1.png"},{"bmp":"Palmtree_group_A_transp_1x1.png"},{"bmp":"Palmtree_group_B_transp_1x1.png"}],
	  "title":"Palmtrees",
	  "text":"Palmtrees by mdk_813",
 	  "influence pollution":-1,
 	   "influence noise":-1,
 	  "influence nature":1,
 	  "frames per tree":1,
 	  "auto build":false,
 	  "influence radioactive":-1
   }]
In case you want your trees to be built when creating a map, you should set "auto build" to true.

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: Can someone make json?

#3

Post by Josh »

Thanks :)

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

Platform

Re: Can someone make json?

#4

Post by JustAnyone »

I know, but my keyboard is struggling now.

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

Platform

Re: Can someone make json?

#5

Post by JustAnyone »

Code: Select all

"frames":[
      {"bmp":"sample.png","w":16,"h":16,"count":4}
    ],
Try w and h till it fits.

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: Can someone make json?

#6

Post by Josh »

Thank you, I will try

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

Platform

Re: Can someone make json?

#7

Post by JustAnyone »

If doesn't fit. keep changing w with h.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Can someone make json?

#8

Post by CommanderABab »

w=32, h=18

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”