JSON

Resources from the game that you might use in your game can be found here

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: JSON

#81

Post by Lobby »

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
image.png (235 Bytes) Viewed 9591 times
The slope frames:
image.png
image.png (1.39 KiB) Viewed 9591 times

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

#82

Post by TheFennekin »

Thanks very much Lobby!

User avatar
soemkal
Settler
Reactions:
Posts: 1
Joined: 09 Jan 2021, 09:17

Re: JSON

#83

Post by soemkal »

:json
Lobby wrote:
06 Aug 2018, 18:35
World generation is hardcoded and can not be modified by json. However, buildings can specify a spawn behavior that will be applied on map generation. I think as topic about searocks had an example in it.
do you have waste disposal json?

User avatar
Kamikazi
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 27 Jan 2018, 00:58
Location: ESPAÑA
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: JSON

#84

Post by Kamikazi »

soemkal wrote:
13 Jan 2021, 14:31
:json
Lobby wrote:
06 Aug 2018, 18:35
World generation is hardcoded and can not be modified by json. However, buildings can specify a spawn behavior that will be applied on map generation. I think as topic about searocks had an example in it.
do you have waste disposal json?
To them to properly work, you need to be a trusted plugin creator, so you can get the privileged code to make those plugins

User avatar
yusuf8a684
Reactions:

Re: JSON

#85

Post by yusuf8a684 »

Will there be night animation codes too?

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

#86

Post by Kulche »

They probably will. If you're looking for a tutorial, there is one. Also try using ian's tool, it's great :)

If you need some raw data feel free to PM me.
Also, hi yusuf :)

User avatar
yusuf8a684
Reactions:

Re: JSON

#87

Post by yusuf8a684 »

Kulche wrote:
26 Feb 2021, 11:15
They probably will. If you're looking for a tutorial, there is one. Also try using ian's tool, it's great :)

If you need some raw data feel free to PM me.
Also, hi yusuf :)
Hello, thanks. just tried using ian's tool, it is great like the tutorial

User avatar
Ansar1523
Settler
Reactions:
Posts: 5
Joined: 21 Apr 2021, 05:20

Re: JSON

#88

Post by Ansar1523 »

What .json of fire department?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

#89

Post by Bearbear76 »

Ansar1523 wrote:
27 Apr 2021, 04:35
What .json of fire department?
Here you go. ;)
Wekabu city wrote:
13 Jan 2018, 13:30
In which category are fire departments?
Lobby wrote:
27 Jan 2018, 16:40
No, it's hardcoded.

User avatar
Ansar1523
Settler
Reactions:
Posts: 5
Joined: 21 Apr 2021, 05:20

Re: JSON

#90

Post by Ansar1523 »

Lobby wrote:
27 Jan 2018, 16:40
No, it's hardcoded.
what is the code of his influence?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

#91

Post by Bearbear76 »

Ansar1523 wrote:
29 Apr 2021, 04:36
Lobby wrote:
27 Jan 2018, 16:40
No, it's hardcoded.
what is the code of his influence?

Code: Select all

"influence fire department": [number]

User avatar
Ansar1523
Settler
Reactions:
Posts: 5
Joined: 21 Apr 2021, 05:20

Re: JSON

#92

Post by Ansar1523 »

Bearbear76 wrote:
29 Apr 2021, 14:37
Ansar1523 wrote:
29 Apr 2021, 04:36
Lobby wrote:
27 Jan 2018, 16:40
No, it's hardcoded.
what is the code of his influence?

Code: Select all

"influence fire department": [number]
Thank you bro :bc

User avatar
Ansar1523
Settler
Reactions:
Posts: 5
Joined: 21 Apr 2021, 05:20

Re: JSON

#93

Post by Ansar1523 »

how to increase energy or water production to more than 160,000 in a 4x4 building?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: JSON

#94

Post by Bearbear76 »

Ansar1523 wrote:
04 May 2021, 12:22
how to increase energy or water production to more than 160,000 in a 4x4 building?
Did I bit of experimenting and I think the max power (didn't test water. probably the same though)
you can generate from a building is: (width or height)^2 * 10,000

1x1 = 10,000
2x2 = 40,000
3x3 = 90,000
4x4 = 160,000
5x5 = 250,000

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

Plugin Creator

Platform

Re: JSON

#95

Post by CommanderABab »

Yes, more can be specified but won't be heeded.

User avatar
Ansar1523
Settler
Reactions:
Posts: 5
Joined: 21 Apr 2021, 05:20

Re: JSON

#96

Post by Ansar1523 »

Bearbear76 wrote:
08 May 2021, 03:32
Ansar1523 wrote:
04 May 2021, 12:22
how to increase energy or water production to more than 160,000 in a 4x4 building?
Did I bit of experimenting and I think the max power (didn't test water. probably the same though)
you can generate from a building is: (width or height)^2 * 10,000

1x1 = 10,000
2x2 = 40,000
3x3 = 90,000
4x4 = 160,000
5x5 = 250,000
Logical, but one 5x5 plug-in generates 1 million energy and it seems to me that you can set the producing of energy or water to a larger number. Can the lobby answer this question?

User avatar
Sharizal zul
Small-town resident
Reactions:
Posts: 39
Joined: 17 Jun 2021, 17:33
Plugins: Showcase Store
Version: Beta

Re: JSON

#97

Post by Sharizal zul »

Funeral code please!

User avatar
Marco Handres
Townsman
Reactions:
Posts: 69
Joined: 03 Sep 2021, 17:11
Location: Manila, Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: JSON

#98

Post by Marco Handres »

@Lobby in the public.json it contains the code for a diamond priced building or the San Francisco City Hall, can you remove that?

User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: JSON

#99

Post by Hadestia »

What does attribute "moveable" mean?

User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: JSON

#100

Post by Hadestia »

Bearbear76 wrote:
08 May 2021, 03:32
Ansar1523 wrote:
04 May 2021, 12:22
how to increase energy or water production to more than 160,000 in a 4x4 building?
Did I bit of experimenting and I think the max power (didn't test water. probably the same though)
you can generate from a building is: (width or height)^2 * 10,000

1x1 = 10,000
2x2 = 40,000
3x3 = 90,000
4x4 = 160,000
5x5 = 250,000
Oh god you're still alive

Post Reply Previous topicNext topic

Return to “Resources”