Fire and police composition

Fire departments, Police and SWAT buildings, Your Military creations, Hospitals

Moderators: Scenario Moderators, Plugin Moderators

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

Plugin Creator

Platform

Fire and police composition

#1

Post by CommanderABab »

Code: Select all

[{
  "id":"$ab.firepolicecompo",
  "text":"build a fire and police station with surrounding roads",
  "title":"Fire and Police setdown",
  "type":"park",
  "width":6,"height":4,
  "composition":[
    {"y0":0,"y1":0,"x0":0,"id":"$road01","x1":5},
    {"y0":0,"y1":3,"x0":0,"id":"$road01","x1":0},
    {"frame":0,"y":1,"id":"$firedepartment00","x":1},
    {"frame":0,"y":1,"id":"$police00","x":3},
    {"y0":1,"y1":3,"x0":5,"id":"$road01","x1":5},
    {"y0":3,"y1":3,"x0":1,"id":"$road01","x1":5}
  ]
}]
Picture forthcoming.
Menu
Menu
Screenshot_20190429-160017.jpg (28.46 KiB) Viewed 18471 times
Where I got it from
Where I got it from
Hmmm..
Hmmm..
Build dialog
Build dialog
The rotated hmmmm..
The rotated hmmmm..

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

Plugin Creator

Platform

Re: Fire and police composition

#2

Post by CommanderABab »

Code: Select all

[{
  "id":"$ab.firepolicecompo",
  "text":"build a fire and police station with surrounding roads",
  "title":"Fire and Police setdown",
  "type":"park",
  "width":6,"height":4,
  "composition":[
    {"y0":0,"y1":0,"x0":0,"id":"$road01","x1":5},
    {"y0":0,"y1":3,"x0":0,"id":"$road01","x1":0},
    {"frame":0,"y":1,"id":"$firedepartment00","x":1},
    {"frame":0,"y":1,"id":"$police00","x":3},
    {"y0":0,"y1":3,"x0":5,"id":"$road01","x1":5},
    {"y0":3,"y1":3,"x0":0,"id":"$road01","x1":5}
  ]
}]
Yes, this one works better for those that don't keep autojoin turned on.
Screenshot_20190429-171226.jpg
fireandpolicecompo.zip
Here is a zip file of the json. Also an experimental composition of the composition. :)
(601 Bytes) Downloaded 1234 times

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Posts: 2896
Joined: 18 Apr 2017, 09:03
Location: In a place you don't expect.
Plugins: Showcase Store
Version: Beta

Platform

Re: Fire and police composition

#3

Post by BetterBear »

Ah, I see you making use of the new feature. :)

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

Plugin Creator

Platform

Re: Fire and police composition

#4

Post by CommanderABab »

Yes. The thing to remember is that some adjustments need to be made. :)

User avatar
Imran M
Inhabitant of a Country
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Fire and police composition

#5

Post by Imran M »

Who said buildings can't be rectangles?

User avatar
-LeoLeo-
Inhabitant of a Solar System
Posts: 1624
Joined: 08 Jul 2017, 12:46
Location: Usa
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Fire and police composition

#6

Post by -LeoLeo- »

*Gasps*

*Faints*

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

Plugin Creator

Platform

Re: Fire and police composition

#7

Post by CommanderABab »


User avatar
-LeoLeo-
Inhabitant of a Solar System
Posts: 1624
Joined: 08 Jul 2017, 12:46
Location: Usa
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Fire and police composition

#8

Post by -LeoLeo- »

What does "y0/y1/x0/x1" do??

Is that the x/y coordinate for the 2 orientation?

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

Platform

Re: Fire and police composition

#9

Post by Lobby »

Yes, in order to specify a line we have to provide a start point (x0, y0) and an end point (x1, y1) :img
line.png

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

Plugin Creator

Platform

Re: Fire and police composition

#10

Post by CommanderABab »

Screenshot of screenshot.  :)
Screenshot of screenshot. :)

User avatar
Mudflesh
Small-town resident
Posts: 40
Joined: 06 Jul 2022, 15:54

Re: Fire and police composition

#11

Post by Mudflesh »

Very great plugin from a master. ❤️❤️❤️

User avatar
Mudflesh
Small-town resident
Posts: 40
Joined: 06 Jul 2022, 15:54

Re: Fire and police composition

#12

Post by Mudflesh »

Can you help me write the dump truck spawning code? And advice me on how to make it work in a plugin.
And what does "performance":true, means?

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

Plugin Creator

Platform

Re: Fire and police composition

#13

Post by CommanderABab »

Mudflesh wrote:
23 May 2025, 19:09
Can you help me write the dump truck spawning code? And advice me on how to make it work in a plugin.
And what does "performance":true, means?
"performance":true, allows the player to adjust the radius of a service building in game by paying more or less Theons per month.

User avatar
Mudflesh
Small-town resident
Posts: 40
Joined: 06 Jul 2022, 15:54

Thank you...

#14

Post by Mudflesh »

CommanderABab wrote:
01 Jun 2025, 17:31
Mudflesh wrote:
23 May 2025, 19:09
Can you help me write the dump truck spawning code? And advice me on how to make it work in a plugin.
And what does "performance":true, means?
"performance":true, allows the player to adjust the radius of a service building in game by paying more or less Theons per month.

User avatar
Mudflesh
Small-town resident
Posts: 40
Joined: 06 Jul 2022, 15:54

Re: Fire and police composition

#15

Post by Mudflesh »

What causes this error while plugins are being uploaded by the game?👇👇👇

Error...
In zonablegraveyards1-0.plugin:

java.lang.IllegalStateException: When loading "ZonableGraveyard.kt101": Cannot fit bmp ZonableGraveyard.png of size 192x15 into world texture. Please report this error code to a developer: 0x42

And how many plugins are allowed in the game?
Help...

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

Plugin Creator

Platform

Re: Fire and police composition

#16

Post by CommanderABab »

Mudflesh wrote:
03 Jun 2025, 03:43
What causes this error while plugins are being uploaded by the game?👇👇👇

Error...
In zonablegraveyards1-0.plugin:

java.lang.IllegalStateException: When loading "ZonableGraveyard.kt101": Cannot fit bmp ZonableGraveyard.png of size 192x15 into world texture. Please report this error code to a developer: 0x42

And how many plugins are allowed in the game?
Help...
It's too wide ( after the others have been placed) for the available slots left in the graphic space.

Space limited.

User avatar
Fyonche
Inhabitant of a Conurbation
Posts: 536
Joined: 02 Jan 2025, 12:59
Location: Non-precise location
Plugins: Showcase Store
Version: Beta

Platform

Re: Fire and police composition

#17

Post by Fyonche »

CommanderABab wrote:
03 Jun 2025, 10:18

Space limited.
May I ask how limited the plugin space is? As of now, I have almost 600 plugins. In theory, how many plugins can I install into the game?

// This might be a foolish question though, I don't know why.

User avatar
Mudflesh
Small-town resident
Posts: 40
Joined: 06 Jul 2022, 15:54

Re: Fire and police composition

#18

Post by Mudflesh »

CommanderABab wrote:
03 Jun 2025, 10:18
Mudflesh wrote:
03 Jun 2025, 03:43
What causes this error while plugins are being uploaded by the game?👇👇👇

Error...
In zonablegraveyards1-0.plugin:

java.lang.IllegalStateException: When loading "ZonableGraveyard.kt101": Cannot fit bmp ZonableGraveyard.png of size 192x15 into world texture. Please report this error code to a developer: 0x42

And how many plugins are allowed in the game?
Help...
It's too wide ( after the others have been placed) for the available slots left in the graphic space.

Space limited.
Thank you for this help.I just need to remove unnecessary plugins.

Post Reply Previous topicNext topic

Return to “Service”