Page 2 of 3

Re: Railroad with transparent base plugin

Posted: 26 Feb 2018, 04:10
by KINGTUT10101
wetguy wrote:
26 Feb 2018, 02:41
KINGTUT10101 wrote:
26 Feb 2018, 01:51
Why don't you just reuse the same code four times?
I tried that, and it did not work. How do you properly do it? By the way, did you even read my JSON?
Make sure the ids are different for each and make sure each is using the right PNG file.

Re: Railroad with transparent base plugin

Posted: 26 Feb 2018, 05:29
by wetguy
KINGTUT10101 wrote:
26 Feb 2018, 04:09
I couldn't read your json. I tried loading it into json Genie and it was invalid
Read it using a computer.

Re: Railroad with transparent base plugin

Posted: 26 Feb 2018, 06:10
by KINGTUT10101
I don't have one

Re: Railroad with transparent base plugin

Posted: 26 Feb 2018, 06:54
by wetguy
@KINGTUT10101

Code: Select all

[{
	"allowbus": false,
	"allowtransfer": true,
	"author": "mdk_813;22Alpha;Kingtut101;wetguy",
	"autojoin": false,
	
	}],
	"category": "traincategory.kt101",
	"connectable": true,
	"drawground": true,
	"flagnormal": false,
	"flagtram": true,
	"frames": [{
		"bmp": "raildecal.png",
		"count": 16,
		"h": 17,
		"w": 32
	}],
	"id": "S_Bahn_railway_decal.mdk",
	"level": 5,
	"monthlyprice": 1,
	"ordinal": 500,
	"price": 50,
	"requirement": {
		"requirements": [{
			"data": {
				"lvl": 5
			},
			"type": "RANK"
		}]
	},
	"speed": 1.5,
	"text": "Used to guide your trains.",
	"title": "Railway with transperant base",
	"type": "road",
	"xflags": {
		"flagnormal": false,
		"flagtram": true
	}
}]
[{
	"allowbus": false,
	"allowtransfer": true,
	"author": "mdk_813;22Alpha;Kingtut101;wetguy",
	"autojoin": false,
	
	}],
	"category": "traincategory.kt101",
	"connectable": true,
	"drawground": true,
	"flagnormal": false,
	"flagtram": true,
	"frames": [{
		"bmp": "raildecal.png",
		"count": 16,
		"h": 17,
		"w": 32
	}],
	"id": "railway_road.mdk",
	"level": 5,
	"monthlyprice": 1,
	"ordinal": 500,
	"price": 50,
	"requirement": {
		"requirements": [{
			"data": {
				"lvl": 5
			},
			"type": "RANK"
		}]
	},
	"speed": 1.5,
	"text": "Used to guide your trains on top of roads.",
	"title": "Roadtop Tramway",
	"type": "road",
	"xflags": {
		"flagnormal": true,
		"flagtram": true
	}
}]
[{
	"allowbus": false,
	"allowtransfer": true,
	"author": "mdk_813;22Alpha;Kingtut101;wetguy",
	"autojoin": false,
	
	}],
	"category": "traincategory.kt101",
	"connectable": true,
	"drawground": true,
	"flagnormal": false,
	"flagtram": true,
	"frames": [{
		"bmp": "railcrossing1.png",
		"count": 16,
		"h": 17,
		"w": 32
	}],
	"id": "railway_crossing1.mdk",
	"level": 5,
	"monthlyprice": 1,
	"ordinal": 500,
	"price": 50,
	"requirement": {
		"requirements": [{
			"data": {
				"lvl": 5
			},
			"type": "RANK"
		}]
	},
	"speed": 1.5,
	"text": "Used for railway crossings.",
	"title": "Railroad crossing NS",
	"type": "road",
	"xflags": {
		"flagnormal": true,
		"flagtram": true
	}
}]
[{
	"allowbus": false,
	"allowtransfer": true,
	"author": "mdk_813;22Alpha;Kingtut101;wetguy",
	"autojoin": false,
	
	}],
	"category": "traincategory.kt101",
	"connectable": true,
	"drawground": true,
	"flagnormal": false,
	"flagtram": true,
	"frames": [{
		"bmp": "railcrossing1.png",
		"count": 16,
		"h": 17,
		"w": 32
	}],
	"id": "railway_crossing2.mdk",
	"level": 5,
	"monthlyprice": 1,
	"ordinal": 500,
	"price": 50,
	"requirement": {
		"requirements": [{
			"data": {
				"lvl": 5
			},
			"type": "RANK"
		}]
	},
	"speed": 1.5,
	"text": "Used for railway crossings.",
	"title": "Railroad crossing WE",
	"type": "road",
	"xflags": {
		"flagnormal": true,
		"flagtram": true
	}
}]

Re: Railroad with transparent base plugin

Posted: 26 Feb 2018, 17:06
by KINGTUT10101
I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)

Re: Railroad with transparent base plugin

Posted: 27 Feb 2018, 00:49
by wetguy
KINGTUT10101 wrote:
26 Feb 2018, 17:06
I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
I checked it, and it is invalid.

Re: Railroad with transparent base plugin

Posted: 27 Feb 2018, 01:06
by KINGTUT10101
Just use four different json files instead.

Re: Railroad with transparent base plugin

Posted: 27 Feb 2018, 19:14
by JustAnyone
Try this

Code: Select all

[{
		"allowbus": false,
		"allowtransfer": true,
		"author": "mdk_813;22Alpha;Kingtut101;wetguy",
		"autojoin": false,
		"category": "traincategory.kt101",
		"connectable": true,
		"drawground": true,
		"flagnormal": false,
		"flagtram": true,
		"frames": [{
			"bmp": "raildecal.png",
			"count": 16,
			"h": 17,
			"w": 32
		}],
		"id": "S_Bahn_railway_decal.mdk",
		"level": 5,
		"monthlyprice": 1,
		"ordinal": 500,
		"price": 50,
		"requirement": {
			"requirements": [{
				"data": {
					"lvl": 5
				},
				"type": "RANK"
			}]
		},
		"speed": 1.5,
		"text": "Used to guide your trains.",
		"title": "Railway with transperant base",
		"type": "road",
		"xflags": {
			"flagnormal": false,
			"flagtram": true
		}
	},
	{
		"allowbus": false,
		"allowtransfer": true,
		"author": "mdk_813;22Alpha;Kingtut101;wetguy",
		"autojoin": false,
		"category": "traincategory.kt101",
		"connectable": true,
		"drawground": true,
		"flagnormal": false,
		"flagtram": true,
		"frames": [{
			"bmp": "raildecal.png",
			"count": 16,
			"h": 17,
			"w": 32
		}],
		"id": "railway_road.mdk",
		"level": 5,
		"monthlyprice": 1,
		"ordinal": 500,
		"price": 50,
		"requirement": {
			"requirements": [{
				"data": {
					"lvl": 5
				},
				"type": "RANK"
			}]
		},
		"speed": 1.5,
		"text": "Used to guide your trains on top of roads.",
		"title": "Roadtop Tramway",
		"type": "road",
		"xflags": {
			"flagnormal": true,
			"flagtram": true
		}
	},
	{
		"allowbus": false,
		"allowtransfer": true,
		"author": "mdk_813;22Alpha;Kingtut101;wetguy",
		"autojoin": false,

		"category": "traincategory.kt101",
		"connectable": true,
		"drawground": true,
		"flagnormal": false,
		"flagtram": true,
		"frames": [{
			"bmp": "railcrossing1.png",
			"count": 16,
			"h": 17,
			"w": 32
		}],
		"id": "railway_crossing1.mdk",
		"level": 5,
		"monthlyprice": 1,
		"ordinal": 500,
		"price": 50,
		"requirement": {
			"requirements": [{
				"data": {
					"lvl": 5
				},
				"type": "RANK"
			}]
		},
		"speed": 1.5,
		"text": "Used for railway crossings.",
		"title": "Railroad crossing NS",
		"type": "road",
		"xflags": {
			"flagnormal": true,
			"flagtram": true
		}
	},

	{
		"allowbus": false,
		"allowtransfer": true,
		"author": "mdk_813;22Alpha;Kingtut101;wetguy",
		"autojoin": false,
		"category": "traincategory.kt101",
		"connectable": true,
		"drawground": true,
		"flagnormal": false,
		"flagtram": true,
		"frames": [{
			"bmp": "railcrossing1.png",
			"count": 16,
			"h": 17,
			"w": 32
		}],
		"id": "railway_crossing2.mdk",
		"level": 5,
		"monthlyprice": 1,
		"ordinal": 500,
		"price": 50,
		"requirement": {
			"requirements": [{
				"data": {
					"lvl": 5
				},
				"type": "RANK"
			}]
		},
		"speed": 1.5,
		"text": "Used for railway crossings.",
		"title": "Railroad crossing WE",
		"type": "road",
		"xflags": {
			"flagnormal": true,
			"flagtram": true
		}
	}
]

Re: Railroad with transparent base plugin

Posted: 05 Mar 2018, 01:27
by wetguy
Let's see if it works.

Re: Railroad with transparent base plugin

Posted: 05 Mar 2018, 01:32
by wetguy
It does not look right, there is water under it.

Re: Railroad with transparent base plugin

Posted: 05 Mar 2018, 15:48
by JustAnyone

Code: Select all

"draw ground": true

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 02:52
by wetguy
JustAnyone wrote:
05 Mar 2018, 15:48

Code: Select all

"draw ground": true
"draw ground" is already true.

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 07:03
by CommanderABab
Screenshot_20180305-232800.png
I surrounded your rails with my invisible road and the same but with bridge. :)

You might have to use null frames for the road with

Code: Select all

"draw ground":true
and draw the rails using the animation code available for roads in tutorials and documentation.

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 07:48
by wetguy
Can someone make a json with this problem fixed?

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 23:20
by CommanderABab
It's "draw ground" with a space. Not one word. Not "draw[tab]ground".

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 23:22
by CommanderABab
With &quot;draw ground&quot;:true with a space.  <br /><br />In the road I was working on.
With "draw ground":true with a space.

In the road I was working on.

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 23:25
by CommanderABab
KINGTUT10101 wrote:
26 Feb 2018, 17:06
I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
This would get through jsonlint but still not work. "draw ground":true has a space!

Re: Railroad with transparent base plugin

Posted: 06 Mar 2018, 23:27
by CommanderABab
wetguy wrote:
06 Mar 2018, 02:52
JustAnyone wrote:
05 Mar 2018, 15:48

Code: Select all

"draw ground": true
"draw ground" is already true.
You had

Code: Select all

"draw[tab character]ground":true

Re: Railroad with transparent base plugin

Posted: 07 Mar 2018, 01:33
by wetguy
@CommanderABab For some reason, according to your picture, it still looks wrong. There are spaces between the rails.

Re: Railroad with transparent base plugin

Posted: 07 Mar 2018, 01:39
by CommanderABab
It's modified. I was experimenting until I discovered the tab issue.

That's actually drawn with foreground animation indices.