About laying the road.

Plug-in related stuff can be discussed here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

About laying the road.

#1

Post 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.

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#2

Post by dc5 »

Correction: Please tell me how to make a plug-in that can lay roads and water pipes at the same time.

User avatar
The_Real_Michael_1
Black Hole
Posts: 1547
Joined: 23 Mar 2020, 15:16
Plugins: Showcase Store

Plugin Creator

Platform

Re: About laying the road.

#3

Post 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.

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#4

Post by dc5 »

How can I make it?

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

About laying the road.

#5

Post by dc5 »

Please tell me how to make a plug-in that can lay roads and water pipes at the same time.

User avatar
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.

#6

Post by TheFennekin »

I think maybe you can do it via lua

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#7

Post by dc5 »

I don't have that much skill. I wish there was something that could serve as a sample ...

User avatar
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.

#8

Post by TheFennekin »

Try looking here viewforum.php?f=41

User avatar
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.

#9

Post by Bearbear76 »

 ! Message from: Bearbear76
Moved from Suggestions --> Plug-in Discussions
Don't worry about the red mark. It means nothing. ;)

User avatar
CommanderABab
AB
Posts: 11242
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: About laying the road.

#10

Post by CommanderABab »

roadpipeinvroad.json
(908 Bytes) Downloaded 180 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

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#11

Post by dc5 »

Thank you Abab for creating the text. I was stuck. I couldn't solve it without you. thank you very much!

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#12

Post by dc5 »

Thanks to TheFennekin for your advice. It seemed to be understood soon, but I still didn't understand.

User avatar
dc5
Townsman
Posts: 96
Joined: 08 Feb 2021, 01:43

Re: About laying the road.

#13

Post by dc5 »

Thank you to everyone else for their advice.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”