Page 1 of 2
Trains do not chain well.
Posted: 19 May 2022, 16:03
by Marsneko
- siryooo.png (1.37 KiB) Viewed 8956 times
I want to like this
- hartram_ii_1.png (1.02 KiB) Viewed 8956 times
- hartram_ii_3.png (1.01 KiB) Viewed 8956 times
- hartram_ii_2.png (693 Bytes) Viewed 8956 times
But here's what happens.
hartram_ii_2 is not chaining well
hartram_ii_2 slams into hartram_ii_1 and hartram_ii_3
Code:
Select all Reset
[{
"id":"Marsneko's_tramcar",
"type":"template",
"flag normal":false,
"flag train":true,
"speed":2,
"v2":true
},{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii_2"]
},{
"id" : "Marsneko's_train_station",
"type" : "railway station",
"width":1,
"height":1,
"build time":0,
"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" : 4,
"radius" : 10}],
"capacity" : 10
}]
Re: Trains do not chain well.
Posted: 19 May 2022, 16:27
by TheFennekin
Rather than chaining them separately, chain them as one car.
Under Train1's draft add the tails: Train2 and Train3
Re: Trains do not chain well.
Posted: 20 May 2022, 16:14
by Marsneko
- hartram_ii_full.png (1.42 KiB) Viewed 8892 times
Is this what you mean?
Re: Trains do not chain well.
Posted: 21 May 2022, 03:16
by TheFennekin
Yes
Is this how you wanted?
Code:
Select all Reset
[{
"id":"Marsneko's_tramcar",
"type":"template",
"flag normal":false,
"flag train":true,
"speed":2,
"v2":true
},{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii"]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}]
}]
Re: Trains do not chain well.
Posted: 21 May 2022, 08:16
by Marsneko
TheFennekin wrote: ↑21 May 2022, 03:16
Yes
Is this how you wanted?
Code:
Select all Reset
[{
"id":"Marsneko's_tramcar",
"type":"template",
"flag normal":false,
"flag train":true,
"speed":2,
"v2":true
},{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii"]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}]
}]
It won't work with that json.
The "tail" must be at the bottom.
Code:
Select all Reset
[{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii"]
}]
By the way, it went like this.
Re: Trains do not chain well.
Posted: 21 May 2022, 08:30
by Marsneko
Marsneko wrote: ↑
- hartram_ii_full.png (1.41 KiB) Viewed 8845 times
Is this what you mean?
The way to do it without using "tail" is...
It stops displaying in the middle of the screen.
Re: Trains do not chain well.
Posted: 21 May 2022, 20:23
by CommanderABab
You left the "v2":true out of the car definitions.
Re: Trains do not chain well.
Posted: 22 May 2022, 03:04
by Marsneko
It's in the template.
Do I need to insert it in all of them?
Re: Trains do not chain well.
Posted: 22 May 2022, 03:06
by Naufhal
Yes
Re: Trains do not chain well.
Posted: 22 May 2022, 03:45
by Marsneko
Inserted in all of them made no difference.
Re: Trains do not chain well.
Posted: 22 May 2022, 05:29
by CommanderABab
Marsneko wrote: ↑22 May 2022, 03:04
It's in the template.
Do I need to insert it in all of them?
Probably not, I hadn't noticed the template. :/
Re: Trains do not chain well.
Posted: 22 May 2022, 06:48
by Marsneko
Anyway, how can I do this?
- siryoooou.png (2.04 KiB) Viewed 8769 times
Re: Trains do not chain well.
Posted: 24 May 2022, 12:49
by TheFennekin
Thought that would work... try this
Hartram ii 3 should be at the front, then tail 2 and 1 (based from the pictures you provided on the original post) 3 > 2 > 1
Re: Trains do not chain well.
Posted: 24 May 2022, 13:09
by Marsneko
Marsneko wrote: ↑21 May 2022, 08:16
TheFennekin wrote: ↑21 May 2022, 03:16
Yes
Is this how you wanted?
Code:
Select all Reset
[{
"id":"Marsneko's_tramcar",
"type":"template",
"flag normal":false,
"flag train":true,
"speed":2,
"v2":true
},{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii"]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}]
}]
It won't work with that json.
The "tail" must be at the bottom.
Code:
Select all Reset
[{
"id":"hartram_ii_1",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_2.png","w":16,"count":4}]
},{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":18,"count":4}]
},{
"id":"hartram_ii_2",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_3.png","w":18,"count":4}],
"tail":["hartram_ii_1","hartram_ii"]
}]
By the way, it went like this.
I already did.
Is this what you mean?
Re: Trains do not chain well.
Posted: 01 Jun 2022, 14:31
by Marsneko
Code:
Select all Reset
{
"id":"hartram_ii",
"type":"car",
"template":"Marsneko's_tramcar",
"frames":[{"bmp":"hartram_ii_1.png","w":22,"count":4}],
"tail":["hartram_ii_1","hartram_ii_2"],
"v2":true
}
- hartram_ii_1.png (1.13 KiB) Viewed 8494 times
Only two worked.
I don't know the rules.
Nothing done on hartram_ii_2.png and hartram_ii_3.png.
Re: Trains do not chain well.
Posted: 12 Jun 2022, 08:21
by Marsneko
I can't do it anymore!Plz help me Lobby=サン!
Re: Trains do not chain well.
Posted: 12 Jun 2022, 15:55
by TheFennekin
Could it be a mistake on graphics? Or just plain error on tailing? I'm also now confused
@Lobby
Re: Trains do not chain well.
Posted: 19 Jun 2022, 04:14
by Marsneko
hmm…Is there anyone else we can count on?It's been a month.
Re: Trains do not chain well.
Posted: 19 Jun 2022, 04:17
by Naufhal
Marsneko (Stalma). I Can fixed It. Please Reply Or Quote. Which Problem?
Re: Trains do not chain well.
Posted: 19 Jun 2022, 09:05
by Marsneko