I checked it, and it is invalid.KINGTUT10101 wrote: ↑26 Feb 2018, 17:06I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
Railroad with transparent base plugin
Moderator: Plugin Moderators
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
- KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 2220
- Joined: 07 Jul 2016, 22:50
- Location: 'Merica
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
Just use four different json files instead.
- JustAnyone
- Developer
- Reactions:
- Posts: 3479
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Railroad with transparent base plugin
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
}
}
]
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
Let's see if it works.
- Attachments
-
- transperantrails.zip
- (4.31 KiB) Downloaded 97 times
- JustAnyone
- Developer
- Reactions:
- Posts: 3479
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Railroad with transparent base plugin
Code: Select all
"draw ground": true
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
"draw ground" is already true.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
You might have to use null frames for the road with
Code: Select all
"draw ground":true
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
It's "draw ground" with a space. Not one word. Not "draw[tab]ground".
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
This would get through jsonlint but still not work. "draw ground":true has a space!KINGTUT10101 wrote: ↑26 Feb 2018, 17:06I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
You had
Code: Select all
"draw[tab character]ground":true
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
@CommanderABab For some reason, according to your picture, it still looks wrong. There are spaces between the rails.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
It's modified. I was experimenting until I discovered the tab issue.
That's actually drawn with foreground animation indices.
That's actually drawn with foreground animation indices.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
But, you have spaces in your textures. You can see that in the unmodified roads drawn with water.
- wetguy
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 738
- Joined: 25 Nov 2017, 06:10
- Location: United States of America
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Railroad with transparent base plugin
Does this work correctly?
- Attachments
-
- transperantrails.zip
- (4.31 KiB) Downloaded 85 times