JSON

Resources from the game that you might use in your game can be found here
Previous topicNext topic
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 129
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by Lakan Haraya » 19 Apr 2020, 14:42

Hi :') ... Where can I find the json for the road decorations :/ I can't find it on animation.json, decoration.json, nor road.json ...
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON road deco sample

Post by CommanderABab » 19 Apr 2020, 15:29

Code: Select all

[
  {"id":"$anim_roaddeco_sample00_00","type":"animation","frames":[{"bmp":"frames.png","x":0,"w":32,"handle y":8}]},
  {"id":"$anim_roaddeco_sample00_01","type":"animation","frames":[{"bmp":"frames.png","x":32,"w":32,"handle y":8}]},
  {"id":"$anim_roaddeco_sample00_02","type":"animation","frames":[{"bmp":"frames.png","x":64,"w":32,"handle y":8}]},
  {"id":"$anim_roaddeco_sample00_03","type":"animation","frames":[{"bmp":"frames.png","x":92,"w":32,"handle y":8}]},
  {
    "id":"$roaddeco_sample00",
    "type":"road decoration",
    "title":"Sample deco",
    "text":"I am a road decoration.",
    "price":100,
    "animation":[
      {"id":"$anim_roaddeco_sample00_00"},
      {"id":"$anim_roaddeco_sample00_02"}
    ],
    "frame animation indices":[
      [0,1],[0,1],[1],[1],
      [0],[0],[],[],
      [0,1],[0,1],[1],[1],
      [0],[0],[],[]
    ],
    "animation fg":[
      {"id":"$anim_roaddeco_sample00_01"},
      {"id":"$anim_roaddeco_sample00_03"}
    ],
    "frame animation fg indices":[
      [0,1],[0],[0,1],[0],
      [0,1],[0],[0,1],[0],
      [1],[],[1],[],
      [1],[],[1],[]
    ]
  }
]
frames.png
main.json
frames_usage.png
Screenshot_20180514-154312.png
You do not have the required permissions to view the files attached to this post.
my avatar:
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 129
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by Lakan Haraya » 19 Apr 2020, 15:50

:/ But how can I put road deco on level bridges? I mean, on json... Because I can't put my road deco plugin into my road (bridge) plugin :/
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by CommanderABab » 19 Apr 2020, 16:08

The road deco always goes on the top level of road. If you did it in the plugin, you would

Code: Select all

"actions": [
				    {
						"type": "build",
						"id": "$roadid"
				    },
				    {
						"type": "build",
						"id": "$roaddecoid"
					}
				],
my avatar:
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 129
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by Lakan Haraya » 19 Apr 2020, 17:00

Hmmm... Gonna try that...
Thanks Commander... :D
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 721
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

Post by Hadestia » 20 Apr 2020, 05:52

Lakan Haraya wrote: 19 Apr 2020, 15:50 :/ But how can I put road deco on level bridges? I mean, on json... Because I can't put my road deco plugin into my road (bridge) plugin :/
Maybe your road decoration flags aren't the same as your road flags
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 721
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

Post by Hadestia » 24 Jun 2020, 08:56

Where's the firebrigades?
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: JSON

Post by Lobby » 24 Jun 2020, 09:13

It's not included because it also contains a premium building, however, here's the rest of it:

Code: Select all

  {
    "id":"$firedepartment01",
    "type":"fire brigade",
    "width":1,
    "height":1,
    "frames":[{"x":1888,"y":1296,"w":32,"h":35}],
    "animation":[
      {"id":"1x3l", "x":7, "y":-7}, {"id":"1x3l", "x":19, "y":-6},
      {"id":"$animalertred00","x":18,"y":-2,"on fire":true},
      {"id":"$animalertred01","x":13,"y":-13,"on fire":true}
    ],
    "price":2000,
    "monthly price":20,
    "influence fire department":200,
    "requirements":[{"type":"RANK","lvl":1}],
    "performance":true
  },

   {
      "id":"$firedepartment00",
	  "type":"fire brigade",
	  "width":2,
	  "height":2,
	  "frames":[{"x":1632,"y":1024,"w":64,"h":48,"count":1}],
     "frames winter":[{"x":896,"y":810,"w":64,"h":48,"offset x":1024,"offset y":2048}],
     "animation":[
       {"id":"3x3_ltr", "x":39, "y":-11}, {"id":"3x3_ltr", "x":45, "y":-1},
       {"id":"$animalertblue00","x":10,"y":-10,"shift":0,"on fire":true},
       {"id":"$animalertred00","x":18,"y":-6,"shift":4,"on fire":true},
       {"id":"$animalertblue00","x":24,"y":-3,"shift":0,"on fire":true},
       {"id":"$animalertred00","x":32,"y":1,"shift":4,"on fire":true}
     ],
	  "price":12000,
	  "monthly price":30,
	  "influence fire department":100,
     "requirements":[{"type":"RANK","lvl":4}],
     "performance":true
   }
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by TheFennekin » 24 Jun 2020, 12:22

Just a thought, is it possible to add capacity liken in schools and hospitals to a prison plugin?
Image
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 721
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

Post by Hadestia » 24 Jun 2020, 12:32

TheFennekin wrote: 24 Jun 2020, 12:22 Just a thought, is it possible to add capacity liken in schools and hospitals to a prison plugin?

Yes via lua :)
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by TheFennekin » 24 Jun 2020, 13:02

rjroldan1 wrote: 24 Jun 2020, 12:32
TheFennekin wrote: 24 Jun 2020, 12:22 Just a thought, is it possible to add capacity liken in schools and hospitals to a prison plugin?

Yes via lua :)
I'll try that :bc
Image
User avatar
Uncle Koala
Metropolitan
Reactions:
Posts: 142
Joined: 05 Apr 2020, 12:53
Location: Pitcairn Islands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by Uncle Koala » 14 Aug 2020, 20:03

Can you please update content_car.json :bq

EDIT: Thanks! :space
Lua is easy! :lua:

Code: Select all

if Car.GoingToCrashIntoEachOther()
   then Car.DontCrash
end
User avatar
TheoKier[YT]
Villager
Reactions:
Posts: 22
Joined: 11 Sep 2020, 02:58
Location: Philippines
Plugins: Showcase Store

Re: JSON

Post by TheoKier[YT] » 16 Sep 2020, 23:30

How about for waste disposal is there a json for it id like to make one hope you reply thanks :)
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by CommanderABab » 17 Sep 2020, 00:07

TheFennekin wrote: 24 Jun 2020, 12:22 Just a thought, is it possible to add capacity liken in schools and hospitals to a prison plugin?
Why not a prison library (school) and a prison infirmary (hospital)? :)
my avatar:
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by TheFennekin » 17 Sep 2020, 09:10

I'm actually trying a modulable prison right now but details soon 😉
Image
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by TheFennekin » 19 Sep 2020, 02:24

Textures will be based on my country's prisons btw
Image
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 721
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

Post by Hadestia » 31 Oct 2020, 15:15

Are all those are updated?
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: JSON

Post by Lobby » 02 Nov 2020, 09:20

Probably not, but I updated now most of them.
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

Post by TheFennekin » 02 Nov 2020, 09:36

How to make a sloped fence plugin?
Image
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: JSON

Post by Lobby » 02 Nov 2020, 13:25

See content_fence.json. It is done by providing 4 additional frames that will be used for the slopes :json

Code: Select all    Reset

[ { "id": "$fence_real00", "type": "fence", "frames": [ {"x": 40,"y": 352,"w": 16,"h": 16,"count": 2,"handle y":8}, {"x": 884,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 901,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 919,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 937,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024} ], "price": 100 } ]
JSON checker
Check
The flat frames:
image.png
The slope frames:
image.png
You do not have the required permissions to view the files attached to this post.
Previous topicNext topic