Bus stops

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Dominykas
Developer
Reactions:
Posts: 3164
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Platform

Bus stops

#1

Post by Dominykas »

A bus stop can be defined like:

Code: Select all

  {
    "id": "$my_busstop00",
    "type": "bus stop",
    "width": 1,
    "height": 1,
    "influence passenger bus": 30,
    "frames": [{"x":512,"y":864,"w":32,"h":32,"count":4},
      {"x":512,"y":896,"w":32,"h":32,"count":4},
      {"x":512,"y":928,"w":32,"h":32,"count":4},
      {"x":512,"y":960,"w":32,"h":32,"count":4},
      {"x":512,"y":992,"w":32,"h":32,"count":4}],
    "capacity": 32,
    "price":800
  }
These are the frames in use:
busdepot.png
busdepot.png (3.98 KiB) Viewed 893 times
You have to provide at least 4 frames for 4 different placements on a road. Any additional 4 frames are used to visualize the amount of waiting people at this bus stop.
:pickle:

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 860
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Platform

Re: Bus stops

#2

Post by mdk_813 »

You also have to think about the ID!
If you want to make additional bus stops, use your own ID.
If you want to replace the original bus stops with your own version, use this in your JSON:

Code: Select all

"id":"$busstop00",
"override":true,


Regarding the frames:
It is enough to just list your separate images (like with rotation frames for example).
You don't need to define "w" and "h".

Code: Select all

"frames":[{"bmp":"Busstop_A1_1x1.png"},
	{"bmp":"Busstop_B1_1x1.png"},
	{"bmp":"Busstop_C1_1x1.png"},
	{"bmp":"Busstop_D1_1x1.png"},
	{"bmp":"Busstop_A2_1x1.png"},
	{"bmp":"Busstop_B2_1x1.png"},
	{"bmp":"Busstop_C2_1x1.png"},
	{"bmp":"Busstop_D2_1x1.png"},
	{"bmp":"Busstop_A3_1x1.png"},
	{"bmp":"Busstop_B3_1x1.png"},
	{"bmp":"Busstop_C3_1x1.png"},
	{"bmp":"Busstop_D3_1x1.png"},
	{"bmp":"Busstop_A4_1x1.png"},
	{"bmp":"Busstop_B4_1x1.png"},
	{"bmp":"Busstop_C4_1x1.png"},
	{"bmp":"Busstop_D4_1x1.png"},
	{"bmp":"Busstop_A5_1x1.png"},
	{"bmp":"Busstop_B5_1x1.png"},
	{"bmp":"Busstop_C5_1x1.png"},
	{"bmp":"Busstop_D5_1x1.png"}],
Note: A to D are the rotational views, while 1 to 5 refer to the amount of passengers waiting.

Also, I think it would be enough to only provide four frames, you just wouldn't have any distinction for different levels of passenger usage then, though.
Please, correct me if I'm wrong.
My Plugins: Link

Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.

User avatar
CommanderABab
AB
Reactions:
Posts: 9355
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Bus stops

#3

Post by CommanderABab »

Roads support animation! You have to do it a special way! But the road has no way of knowing if a bus stop has been placed on it.
...............:) .Image

User avatar
DESOLAN
Villager
Reactions:
Posts: 24
Joined: Sat Jan 25, 2020 6:19
Location: Philippines
Plugins: Show
Version: Beta
Contact:

Platform

Re: Bus stops

#4

Post by DESOLAN »

JustAnyone wrote:
Sun Dec 10, 2017 17:52
A bus stop can be defined like:

Code: Select all

  {
    "id": "$my_busstop00",
    "type": "bus stop",
    "width": 1,
    "height": 1,
    "influence passenger bus": 30,
    "frames": [{"x":512,"y":864,"w":32,"h":32,"count":4},
      {"x":512,"y":896,"w":32,"h":32,"count":4},
      {"x":512,"y":928,"w":32,"h":32,"count":4},
      {"x":512,"y":960,"w":32,"h":32,"count":4},
      {"x":512,"y":992,"w":32,"h":32,"count":4}],
    "capacity": 32,
    "price":800
  }
These are the frames in use:
busdepot.png

You have to provide at least 4 frames for 4 different placements on a road. Any additional 4 frames are used to visualize the amount of waiting people at this bus stop.
There's a way to change flag?
Everything you can imagine is real

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”