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
Railroad with transparent base plugin
@KINGTUT10101 Can you help me make a plugin similar to an addon to your tram plugin with rails with a transparent base?
@mdk_813 Am I allowed to use a modified version of your rails for a plugin?
@mdk_813 Am I allowed to use a modified version of your rails for a plugin?
- Attachments
-
- The graphics so far
- tramrailstransparent.png (1.23 KiB) Viewed 4341 times
- 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
I'll do the code if you get mdk's permission
- 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
Code: Select all
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;bridgeframesbasedontexturesbyLobbyandTheo",
"autojoin": false,
"bridgeframes": [{
"bmp": "My_rails_bridge_mdk_813.png",
"count": 12,
"h": 48,
"w": 32
}],
"bridgeheight": 11,
"bridgeprice": 120,
"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": "Usedtoguideyourtrains.",
"title": "S-BahnRailwayDecal",
"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
@KINGTUT10101 I think there should be multiple versions of the railway. Some versions that can be used by both trains and road vehicles, making tram/trolleyways on top of roads and nice-looking railroad crossings possible (although missing barriers), another version that can only be used by trains, and maybe a slower version for stations.
Last edited by wetguy on 25 Feb 2018, 21:59, edited 1 time in total.
- 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 These graphics can be used for the rails that will be used for railroad crossings. Each only looks good from certain angles, but it's the best way possible.
- Attachments
-
- railcrossing2.png (1.22 KiB) Viewed 4239 times
-
- railcrossing1.png (1.23 KiB) Viewed 4239 times
- 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 reuse the code and change the png and id names
- 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
I also don't plan on making custom x-crossing frames just for pretty intersections, but the tram/road duo does sound interesting.
- 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 I don't want these to have bridges, can you change the json accordingly?
- 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 remove:
from the json
Code: Select all
"bridgeframes": [{
"bmp": "My_rails_bridge_mdk_813.png",
"count": 12,
"h": 48,
"w": 32
}],
- 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,Is this a correct JSON?
- Attachments
-
- transparentrail1.json
- (2.85 KiB) Downloaded 117 times
- 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
I tried it and it didn't work. I guess I'll just remove it myself then.
- 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
Code: Select all
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;bridgeframesbasedontexturesbyLobbyandTheo",
"autojoin": false,
"bridgeheight": 11,
"bridgeprice": 120,
"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": "Usedtoguideyourtrains.",
"title": "S-BahnRailwayDecal",
"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
@KINGTUT10101 Can you make 4 versions of the rail in one json (Trains only, roads vehicles and trains, road vehicles and trains with North to South railroad crossing, road vehicles and trains with East to West railroad crossing.)
- 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
Also, why did you revert some of the names and descriptions and similar things?
- 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
You don't need to mention me everytime you know
- 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
Why don't you just reuse the same code four times?
- 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
I tried that, and it did not work. How do you properly do it? By the way, did you even read my JSON?
- 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
I couldn't read your json. I tried loading it into json Genie and it was invalid