Bus stops

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

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

Platform

Bus stops

#1

Post by Lobby »

Bus stops have been a part of TheoTown for a long time. With the introduction of transportation systems it's finally time to document them.
image.png
image.png (42.31 KiB) Viewed 674 times
In contrast to road decorations bus stops use a special frame format that makes them rotation aware by default. We must at least provide 4 frames, each 32x32 pixels each:
image.png
image.png (1.46 KiB) Viewed 674 times
Each frame represents the bus stop at a specific location on the road. Dependent on the road the bus stop is placed on the frames to draw will be picked automatically.

You can provide more frames (must be a multiple of 4) to provide more variants. Variants will be used to visualize the usage of the bus stop. The last four frames will be used if the bus stop is currently full etc.

Example
Let's define a working bus stop that is a bit green and that is compatible with the new transportation system.
frames.png
frames.png (4.95 KiB) Viewed 674 times

Code: Select all    Reset

[ { "id": "$my_busstop00", "type": "bus stop", "title": "My custom bus stop", "text": ".", "frames": [ { "bmp": "frames.png", "y": 0, "w": 32, "count": 4}, { "bmp": "frames.png", "y": 32, "w": 32, "count": 4}, { "bmp": "frames.png", "y": 64, "w": 32, "count": 4}, { "bmp": "frames.png", "y": 96, "w": 32, "count": 4} ], "price": 800, // Influence of the bus stop "influence passenger bus": 30, // Amount of people who can fit in there "capacity": 32, // The default requirement for bus stops "requirements": [{"type": "RANK","lvl": 3}], // Make it compatible with transportation system bus stops "meta": {"tags": {"default_busstop": {}}} } ]
JSON checker
Check


Good to know
There is only a generic preview for bus stops. You can use "preview frames" to provide your own icon for use in the toolbar.

By default bus stops get placed into the "$cat_bus00" category.

You can use "required flag *", "min dirs", "max dirs", "symmetric dirs" as for road decorations to limit where a bus stop can be built.

Bus stops can only be built on roads that set the "allow bus stop": true flag (implictly set for roads that define "flag bus".)

Bus stops can define animation and animation fg similar to Road decorations.

User avatar
Ostrovsk
Small-town resident
Posts: 34
Joined: 13 Oct 2023, 18:31

Re: Bus stops

#2

Post by Ostrovsk »

Good afternoon. This is the question. Why are the Invisible Bus Stops not working? There is one in the store, but it does not work. I made my stop - the same thing. What can be done about it?

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

Platform

Re: Bus stops

#3

Post by Lobby »

Did you add

Code: Select all

"meta": {"tags": {"default_busstop": {}}}
as described in Transportation System Extension?

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”