why my train pass through a road

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 14:00
Location: Japan Shikoku
Plugins: Showcase Store

why my train pass through a road

#1

Post by Marsneko »

画像
Screenshot_20220505-223230.png
json

Code: Select all    Reset

[{ "id":"hartram_ii", "type":"car", "frame":[{"bmp": "hartram_ii.png","count": 4,"h": 28,"w": 37}], "frag normal":false, "flag train":true, "speed":2, "v2":true },{ "id": "Marsneko's_train_station", "width":1, "height":1, "type": "railway station", "frame":[{"bmp": "tramcar_station.png","count": 4,"w": 32}], "draw ground": true, "needs road": false, "influence passenger train": 30, "car spawner": [{"targets": ["Marsneko's_train_station"], "cars": ["hartram_ii"], "count": 3, "radius": 10}], "capacity": 10 }]
JSON checker
Check

User avatar
JustAnyone
Developer
Reactions:
Posts: 3480
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: why my train pass through a road

#2

Post by JustAnyone »

It should be 'flag normal' instead of 'frag normal' in car (train) draft definition.

User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 14:00
Location: Japan Shikoku
Plugins: Showcase Store

Re: why my train pass through a road

#3

Post by Marsneko »

I didn't notice the typo.thx
It now runs only on the railroad tracks.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”