About laying the road.
Moderators: Scenario Moderators, Plugin Moderators
About laying the road.
Please tell me how to make a plug-in that can lay between the road and the water supply at the same time.
Re: About laying the road.
Correction: Please tell me how to make a plug-in that can lay roads and water pipes at the same time.
- The_Real_Michael_1
- Black Hole
- Posts: 1547
- Joined: 23 Mar 2020, 15:16
- Plugins: Showcase Store
-
Plugin Creator
Platform
About laying the road.
Please tell me how to make a plug-in that can lay roads and water pipes at the same time.
- TheFennekin
- Neighborhood fox
- Posts: 2728
- Joined: 24 Aug 2017, 11:17
- Location: Wandering around
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: About laying the road.
I think maybe you can do it via lua
Re: About laying the road.
I don't have that much skill. I wish there was something that could serve as a sample ...
- TheFennekin
- Neighborhood fox
- Posts: 2728
- Joined: 24 Aug 2017, 11:17
- Location: Wandering around
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: About laying the road.
Try looking here viewforum.php?f=41
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: About laying the road.

- CommanderABab
- AB
- Posts: 11242
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: About laying the road.
Code: Select all
[
{
"type":"road",
"level":1,
"id":"roadpipeinvroad",
"title":"roadpipeinvroad",
"allow diagonal":true,
"frames":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],
"bridge frames":[
{"x":512,"y":96,"w":32,"h":48,"count":12},
{"x":512,"y":96,"w":32,"h":48,"count":4},{"x":896,"y":96,"w":32,"h":48,"count":4},{"x":768,"y":96,"w":32,"h":48,"count":4},
{"x":512,"y":144,"w":32,"h":48,"count":12},
{"x":512,"y":144,"w":32,"h":48,"count":4},{"x":896,"y":144,"w":32,"h":48,"count":4},{"x":768,"y":144,"w":32,"h":48,"count":4},
{"x":512,"y":192,"w":32,"h":48,"count":12}
],
"width":1,"height":1,"auto join":true,"draw ground":true,"price":250,
"on built fun": [{
"actions": [{
"type": "build",
"id": "$pipe00"
}, {
"type": "build",
"id": "$road01"
}],
"p": 1,
"ignore success": true
}]
}
]
It's an invisible road that builds pipes and the country road. Pipes will not cross higher level (highway, expressway, etc) roads unless you use a bridge.
The "roadpipeinvroad" itself should never exist once built.
It does not include diagonal frames, so anything built diagonally will be corners.
Uses in game graphics for preview bridge frames. Credit: Lobby
Re: About laying the road.
Thank you Abab for creating the text. I was stuck. I couldn't solve it without you. thank you very much!
Re: About laying the road.
Thanks to TheFennekin for your advice. It seemed to be understood soon, but I still didn't understand.
Re: About laying the road.
Thank you to everyone else for their advice.