Page 1 of 7

Patch: Town road layout

Posted: 16 Mar 2007 11:52
by skidd13
There are a few diffrent town build road styles (and patches for them).
I think it's not really nice to use only one of them, so I mixed them and created an option to select the current style. Now I got so far, that I added real grid layouts.

You can switch between the layout during gaming!
  • Options:
  • build no more roads
  • original (min. 1 tile distance between roads)
  • better roads (min. 2 tile distance between roads)
  • 2X2 grid
  • 3X3 grid
[UPDATE]
...
- r9671 dev requested changes
- r9676 coding style
- r9769 coding style
- r9779 got into trunk

Use the nightly's (r9779 afterwards) for this feature.


Download (deprecated)
Linux binary
Windows binary Thanks to Desolator
Source patch

Posted: 16 Mar 2007 13:31
by Wolf01
i find usefull the no-roads one, sometimes i don't want that a city grow by itself

Posted: 16 Mar 2007 13:50
by DeletedUser21
There should be something that allows towns only to build 2 x 2 style IMO.

Let's explain this:

Code: Select all

R R R R
R H H R
R H H R
R R R R
R = Road
H = House

Well anyway, the general idea is to stop towns creating roads close to eachother. (I find it ugly to see tonnes of dead/lose ends while towns always have some kind of structure in them in RL.) :wink:

Posted: 16 Mar 2007 13:54
by Wolf01
Mr. X wrote:There should be something that allows towns only to build 2 x 2 style IMO.

Let's explain this:

Code: Select all

R R R R
R H H R
R H H R
R R R R
R = Road
H = House

Well anyway, the general idea is to stop towns creating roads close to eachother. (I find it ugly to see tonnes of dead/lose ends while towns always have some kind of structure in them in RL.) :wink:
maybe you need eye glasses... no wait, no sun glasses :)
skidd13 wrote:[*]US styled (2 tile distance between roads)[/list]

Posted: 16 Mar 2007 13:56
by DeletedUser21
:oops: I skipped that part for some reason.
Whoops! :P

Well US styled is good, but the logic Whopper used in his towns should also be possible someday. (I hope so atleast. :wink: )

Posted: 16 Mar 2007 22:47
by White Rabbit
I've dreamt about this patch... :lol:

Posted: 25 Mar 2007 20:48
by Chicago Rail Authority
Any chance that you could post a win32 *.exe against a recent nightly?

Thanks!

Posted: 25 Mar 2007 20:53
by skidd13
Chicago Rail Authority wrote:Any chance that you could post a win32 *.exe against a recent nightly?

Thanks!
I'm sorry I only use/have access to Linux.
Maybe it'll get in trunk soon. ;)

Posted: 25 Mar 2007 21:12
by Chicago Rail Authority
skidd13 wrote:I'm sorry I only use/have access to Linux.
Maybe it'll get in trunk soon. ;)
Perhaps another forum member would be willing to post/PM a win32 *.exe (with your permission, of course) :)

Sounds like a great patch - can't wait to try it out!

Posted: 30 Mar 2007 14:16
by MeTo
A very good patch :) However.... if there are no roads in the town and I have set that I don't want towns to build roads.... that town builds one square of road... would it be possible to forbid towns to build even this ?

Posted: 30 Mar 2007 14:22
by cmoiromain
why do you want towns to build 0 bits of roads? :?
If you really want to destroy towns, then use the magic buldozer cheat and destroy the town ;)

Posted: 30 Mar 2007 14:49
by skidd13
MeTo wrote:A very good patch :) However.... if there are no roads in the town and I have set that I don't want towns to build roads.... that town builds one square of road... would it be possible to forbid towns to build even this ?
So you want town to grow without roads?

I hope it'll get at first "as it is" (style or dev requested changes excluded) into trunk.

After that other town layout's such as yours could be implemented and added.

Posted: 30 Mar 2007 15:16
by MeTo
cmoiromain : I expected a question like that :) Well.... how to write it quickly... :) I have played TT and all its versions for years.... My goal is currently to BUILD.... to create some traffic system and to adjust cities as well.... I don't care about the original main thing - money.... the same it is with towns.... So, for example.... I want to have a large desert.... yes.... I can delete towns in the scenario editor.... but.... what if I want to create some "desert city" once ? No way.... there will be no town.... I know, I can remove the only square of road (+ two buildings) in all "empty" towns again, again and again.... but if I play a 2048*2048 map, I would be always removing roads :) I play this great game just for fun :) So I don't need to keep the reality at 100%.
I agree, this function may look extremely useless for someone.... (well.... like the townsbuildnoroads function, at the beginning it didn't seem to be done once, so I really appreciate that somebody created it, many thanks to him)... but... it is not written anywhere that everyone has to keep the same way of playing this game.... and furthermore, nobody makes anyone to use that :)
skidd13 :
"So you want town to grow without roads? "
If I remove houses and roads in some town..... it is not a "town" anymore, for me.... it is just a "sign" with some name, which can be used to create a town, sometimes.... but it doesn't have to...
It would be nice if there is a possibility to create a town while playing the game.... but it is not needed, it would be just enough to definitely forbid towns to build roads... even the one road...
In the first townsbuildnoroads patch (from Spoot), towns did not build one road. But all newer versions do that :( (But the first one is not compatible with todays new versions of OTTD)

Posted: 30 Mar 2007 15:25
by skidd13
MeTo wrote:If I remove houses and roads in some town..... it is not a "town" anymore, for me.... it is just a "sign" with some name, which can be used to create a town, sometimes.... but it doesn't have to...
It would be nice if there is a possibility to create a town while playing the game.... but it is not needed, it would be just enough to definitely forbid towns to build roads... even the one road...
In the first townsbuildnoroads patch (from Spoot), towns did not build one road. But all newer versions do that :( (But the first one is not compatible with todays new versions of OTTD)
Ah I get your point.
My patch can stop the city's from growing during the game and enable it again.
That is a diffrent thing (from coding view). You want a patch to destroy and/or create towns.

Posted: 30 Mar 2007 15:27
by MeTo
I wrote it would be nice to have a patch where it would be possible to add a town :) But it would be really enough to forbid towns to build even the only piece of road :) I played it in this way with the first version of townsbuildnoroads patch and I was satisfied :) I mean, during the game.... I know that your patch is applied also if I generate a new game.... but if I destroy the last piece of road once, I don't want the town to create it again....

Posted: 30 Mar 2007 15:30
by skidd13
MeTo wrote:I wrote it would be nice to have a patch where it would be possible to add a town :) But it would be really enough to forbid towns to build even the only piece of road :) I played it in this way with the first version of townsbuildnoroads patch and I was satisfied :) I mean, during the game.... I know that your patch is applied also if I generate a new game.... but if I destroy the last piece of road once, I don't want a town to create it....
Post a link to the patch, and I'll have a look at it.

Posted: 30 Mar 2007 15:31
by MeTo
It is the first one, townscanbuildroads.patch
http://tt-forums.net/viewtopic.php?t=24661
On the second page there are two newer versions, but no of them forbids to build one piece of road....

Posted: 30 Mar 2007 19:15
by gkirilov
skidd13, are you sure it does only 2x2 squares? Because what you replied to Mr. X's question and what is your first post is different. There is this "min" which bothers me (i.e. it can be also 2x3 3x3 etc.). We need exactly 2x2 and nothing else. And if I am wrong can you please demonstrate a layout with only 2x2 squares filled with buildings.

Posted: 30 Mar 2007 22:53
by skidd13
gkirilov wrote:skidd13, are you sure it does only 2x2 squares? Because what you replied to Mr. X's question and what is your first post is different. There is this "min" which bothers me (i.e. it can be also 2x3 3x3 etc.). We need exactly 2x2 and nothing else. And if I am wrong can you please demonstrate a layout with only 2x2 squares filled with buildings.
You are right. It is (2+x) * (2+y).
I never intend a grid, also I thought over it. I wanted to get rid of the ugly 1x1 and combine it with the stop towns from growing.
But I'll try to write a grid layout generator.

Posted: 31 Mar 2007 11:32
by skidd13
Patch updated.
Now it is a real 2x2 grid-layout!