Page 5 of 6
Re: JSON
Posted: 02 Nov 2020, 15:25
by Lobby
See content_fence.json. It is done by providing 4 additional frames that will be used for the slopes
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
}
]
The flat frames:
- image.png (235 Bytes) Viewed 12801 times
The slope frames:
- image.png (1.39 KiB) Viewed 12801 times
Re: JSON
Posted: 03 Nov 2020, 06:40
by TheFennekin
Thanks very much Lobby!
Re: JSON
Posted: 13 Jan 2021, 14:31
by soemkal
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?
Re: JSON
Posted: 13 Jan 2021, 21:30
by Kamikazi
soemkal wrote: ↑13 Jan 2021, 14:31
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
Re: JSON
Posted: 26 Feb 2021, 11:02
by yusuf8a684
Will there be night animation codes too?
Re: JSON
Posted: 26 Feb 2021, 11:15
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
Re: JSON
Posted: 27 Feb 2021, 12:38
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
Re: JSON
Posted: 27 Apr 2021, 04:35
by Ansar1523
What .json of fire department?
Re: JSON
Posted: 28 Apr 2021, 13:55
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.
Re: JSON
Posted: 29 Apr 2021, 04:36
by Ansar1523
Lobby wrote: ↑27 Jan 2018, 16:40
No, it's hardcoded.
what is the code of his influence?
Re: JSON
Posted: 29 Apr 2021, 14:37
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]
Re: JSON
Posted: 30 Apr 2021, 04:38
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
Re: JSON
Posted: 04 May 2021, 12:22
by Ansar1523
how to increase energy or water production to more than 160,000 in a 4x4 building?
Re: JSON
Posted: 08 May 2021, 03:32
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
Re: JSON
Posted: 08 May 2021, 03:48
by CommanderABab
Yes, more can be specified but won't be heeded.
Re: JSON
Posted: 14 May 2021, 04:16
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?
Re: JSON
Posted: 08 Sep 2021, 21:42
by Sharizal zul
Funeral code please!
Re: JSON
Posted: 20 Jan 2022, 14:30
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?
Re: JSON
Posted: 23 Aug 2022, 11:16
by Hadestia
What does attribute "moveable" mean?
Re: JSON
Posted: 23 Aug 2022, 11:17
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