Car chains

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Car chains

Post by JustAnyone »

You'd generally add an empty car between them with "$car_null00"
User avatar
Jaforzem
Villager
Reactions:
Posts: 10
Joined: 04 Jul 2020, 21:51
Location: Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car chains

Post by Jaforzem »

SmartSelect_20251001-102757_TheoTown.jpg
When I put $car_null00 in a side pass this (The cabin of front don't see well) and the other side pass this (The cabin of back don't see well)
SmartSelect_20251001-102823_TheoTown.jpg
This is my code

Code: Select all    Reset

[ { "id": "$TLS1AT", "type": "car", "frames":[ {"bmp":"TLS1AT.png","count":4,"x":0,"w":11,"h":14, "length":11} ], "v2": [ 4, 0, 4, 0], "moveable":false, "auto colorize":true, "chargeable": false, "flag all": true }, { "id": "$TLS1AM", "type": "car", "frames":[ {"bmp":"TLS1AM.png","count":4,"x":0,"w":29,"h":21, "length":25} ], "v2": [ -5, 1, -6, 0], "moveable":false, "auto colorize":true, "chargeable": false, "flag all": true }, { "id": "$TLS1AF", "type": "car", "title":"TLS1A", "frames":[ {"bmp":"TLS1AF.png","count":4,"x":0,"w":11,"h":14, "length":11} ], "flag all": true, "capacity":100, "moveable": false, "speed": 1.05, "auto colorize":true, "chargeable": false, "tail":["$car_null00", "$TLS1AM","$car_null00","$TLS1AT"], "meta": {"tags": {"short_distance_passenger_train": {}}}, "v2": [ 4, 0, 4, 0] } ]
JSON checker
Check
You do not have the required permissions to view the files attached to this post.
O
Ostrovsk
Townsman
Reactions:
Posts: 43
Joined: 13 Oct 2023, 16:31
Location: Rostov-on-Don
Plugins: Showcase Store
Version: Beta

Re: Car chains

Post by Ostrovsk »

:windows :android
Screenshot_2025-10-31-21-30-23-00_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
Hello, how can you fix this style of bus? There is a $car_null00 between the parts, only the first and second frames have this problem, the third and fourth seem normal
You do not have the required permissions to view the files attached to this post.
Last edited by Ostrovsk on 31 Oct 2025, 20:11, edited 1 time in total.
O
Ostrovsk
Townsman
Reactions:
Posts: 43
Joined: 13 Oct 2023, 16:31
Location: Rostov-on-Don
Plugins: Showcase Store
Version: Beta

Re: Car chains

Post by Ostrovsk »

Good evening, we seem to have the same problem. Haven't solved this problem? I just suffer myself too, but with wheeled transport😅
User avatar
Jaforzem
Villager
Reactions:
Posts: 10
Joined: 04 Jul 2020, 21:51
Location: Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Car chains

Post by Jaforzem »

Hello, I was already able to solve the problem and what happened was that the frame size was incorrect, in my case it was too small
User avatar
Aidanspacelover2
Inhabitant of a Megacity
Reactions:
Posts: 256
Joined: 17 Oct 2025, 23:28
Location: Ironland
Plugins: Showcase Store
Version: Beta

Platform

Re: Car chains

Post by Aidanspacelover2 »

Beep beep
O
Ostrovsk
Townsman
Reactions:
Posts: 43
Joined: 13 Oct 2023, 16:31
Location: Rostov-on-Don
Plugins: Showcase Store
Version: Beta

Re: Car chains

Post by Ostrovsk »

[цитата=Jaforzem post_id=240754 время=1761948312 пользователь_id=24836]
Здравствуйте, я уже смог решить проблему и произошло то, что размер кадра был неправильным, в моем случае он был слишком мал
[/цитировать]
Hello, do you need the first, second and other parts of the transport to be the same size? For example, 15x15?
O
Ostrovsk
Townsman
Reactions:
Posts: 43
Joined: 13 Oct 2023, 16:31
Location: Rostov-on-Don
Plugins: Showcase Store
Version: Beta

Re: Car chains

Post by Ostrovsk »

JustAnyone wrote: 01 Oct 2025, 12:46 You'd generally add an empty car between them with "$car_null00"
Hello, where can I find the Json code for the Vanilla Accordion Bus?
O
Ostrovsk
Townsman
Reactions:
Posts: 43
Joined: 13 Oct 2023, 16:31
Location: Rostov-on-Don
Plugins: Showcase Store
Version: Beta

Re: Car chains

Post by Ostrovsk »

:android I don't know what to do and who to contact. I still did not understand how to make an elongated bus normally. I'm not even talking about my bus, I recreated a vanilla model of the bus, exactly like in the game, 3 and 4 frames are absolutely normal, perfect. But the first 2 frames have a hole between the parts. No matter how hard I try, it does not clean. I'll send photos and code
Screenshot_2025-11-15-21-07-45-69_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
Screenshot_2025-11-15-21-07-38-63_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
Screenshot_2025-11-15-21-07-32-17_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
Screenshot_2025-11-15-21-07-26-29_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
Screenshot_2025-11-15-21-07-19-18_b9c7f85ab9c096b4378029bc61eaf2d6.jpg
And here is my code:

[
{
"id":"Kamaz6299Popa",
"type":"car",
"author":"Ostrovsk",
"flag normal": false,
"flag bus": true,
"frames":[{"bmp":"Kamaz6299Popa.png","count":4,"w":14,"h":13}],
"v2": [ 2, 0, 3, 0 ],
"speed": 1
},
{
"id":"Kamaz6299Pered",
"type":"car",
"author":"Ostrovsk",
"flag normal": false,
"flag bus": true,
"meta": {"tags": {"ts_normal_bus": {}}},
"capacity": 175,
"requirements":[{"type": "RANK", "lvl": 3}],
"title":"Kamaz 6299 Harmonica[ru]Камаз 6299 Гармошка",
"frames":[{"bmp":"Kamaz6299Pered.png","count":4,"w":18,"h":15}],
"tail":["$car_null00","Kamaz6299Popa"],
"v2": [ 1, 0, 0, 1 ],
"speed": 1
}
]
You do not have the required permissions to view the files attached to this post.