Page 1 of 1

About laying the road.

Posted: 17 Feb 2021, 11:04
by dc5
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.

Posted: 17 Feb 2021, 11:06
by dc5
Correction: Please tell me how to make a plug-in that can lay roads and water pipes at the same time.

Re: About laying the road.

Posted: 17 Feb 2021, 11:09
by The_Real_Michael_1
dc5 wrote:
17 Feb 2021, 11:06
Correction: Please tell me how to make a plug-in that can lay roads and water pipes at the same time.
1st. You can edit posts (you dont have to correct yourself in another post).
2nd. It is a brilliant idea.

Re: About laying the road.

Posted: 17 Feb 2021, 11:11
by dc5
How can I make it?

About laying the road.

Posted: 17 Feb 2021, 11:40
by dc5
Please tell me how to make a plug-in that can lay roads and water pipes at the same time.

Re: About laying the road.

Posted: 17 Feb 2021, 12:03
by TheFennekin
I think maybe you can do it via lua

Re: About laying the road.

Posted: 17 Feb 2021, 12:14
by dc5
I don't have that much skill. I wish there was something that could serve as a sample ...

Re: About laying the road.

Posted: 17 Feb 2021, 12:42
by TheFennekin
Try looking here viewforum.php?f=41

Re: About laying the road.

Posted: 17 Feb 2021, 13:34
by Bearbear76
 ! Message from: Bearbear76
Moved from Suggestions --> Plug-in Discussions
Don't worry about the red mark. It means nothing. ;)

Re: About laying the road.

Posted: 17 Feb 2021, 13:36
by CommanderABab
roadpipeinvroad.json
(908 Bytes) Downloaded 179 times

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
	}]
}
]
The price includes the cost of the roads and pipes.

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.

Posted: 17 Feb 2021, 14:06
by dc5
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.

Posted: 17 Feb 2021, 14:10
by dc5
Thanks to TheFennekin for your advice. It seemed to be understood soon, but I still didn't understand.

Re: About laying the road.

Posted: 17 Feb 2021, 14:11
by dc5
Thank you to everyone else for their advice.