Town too close to another town
Moderator: OpenTTD Developers
Town too close to another town
I'm trying to make a scenario cramped with loads of cities, but the problem is when I do that it is hard to place a town close to another town. Is there a way I can overcome this?
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Town too close to another town
No. IIRC the minimum distance is 20 tiles or so.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Town too close to another town
Maybe commenting / changing the piece of code that regulate this could help ?
YNM = yoursNotMine - Don't get it ?
「ヨーッスノットマイン」もと申します。
「ヨーッスノットマイン」もと申します。
Re: Town too close to another town
In the scenario editor, click on the town's name, click the buttons to grow the town.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Town too close to another town
He's probably wants to keep the towns small, not grown.
YNM = yoursNotMine - Don't get it ?
「ヨーッスノットマイン」もと申します。
「ヨーッスノットマイン」もと申します。
Re: Town too close to another town
If the minimum distance between town centers is 20 tiles, then that makes each town, at its widest, just 10 tiles each. That's not much at all.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Town too close to another town
Can anyone then write a patch to stop the maximum width limit? And plus, would it be easy to write?
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Town too close to another town
Sure, it's open-source. Assuming that everyone is capable of learning.UseYourIllusion wrote:Can anyone then write a patch to stop the maximum width limit?
Yes. Or no. DependsUseYourIllusion wrote:And plus, would it be easy to write?
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Town too close to another town
Isn't it just simply finding in the source code where all the town minimum width is defined and then just delete these codes? Or is it much harder than that?
Edit: I meant minimum instead of maximum
Edit: I meant minimum instead of maximum
Last edited by TinyMusic on 03 Jun 2013 14:39, edited 2 times in total.
Formerly known as UseYourIllusion.
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
Java Scenario Found Here - Version 2 out
[tweɪ̂ pû tɕʰì wɔ̀ mǐlɤ lû tɕʰìŋ nì pɑ́ŋmɑ̌ŋ]
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Town too close to another town
I am not even sure what property you assume to have a maximum value. The town separation? Town size? Neither is bound in any way other than map size.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Town too close to another town
Town separation, is.
YNM = yoursNotMine - Don't get it ?
「ヨーッスノットマイン」もと申します。
「ヨーッスノットマイン」もと申します。
Re: Town too close to another town
IIRC there once was a patch that allowed to configure the town distance
-
- Engineer
- Posts: 2
- Joined: 31 May 2020 09:32
Re: Town too close to another town
im just new to openTTD, and found a hint to the old theme here:
in the Sources of openTTD (ver 1.10.1)
in the file ./src/town_cmd.cpp
in line 1834
So try to change that to 10, 5 or something else and compile openttd to a new version.
With that you have the chance to build towns close together. If it not works,
you have to look for other places in the sources, if there are these '20' in
other places again and change them there also.
If you want to give others the same possibility, you have also to give them your compiled openTTD.
I think, a "normal" Version opens such a szenario ( towns too close together ) in a way, which throws
an error or which deletes some towns. But try it, maybe it works also.
If it throws errors, or if towns dissapear, then that is a good hint, where you have to look for more of the '20'
If I success with my german linux, and really share it on the net, there will also be
a special Version of OpenTTD, with some "reality"-Szenarios, one for Germany, one for Europe.
And because with Europe on 256x256 i also can't put MainTowns at the places they shoud be,
I will also try to change the Value '20' )
But first my german Linux should get "usuable for others" rolleyes
hope it helps
in the Sources of openTTD (ver 1.10.1)
in the file ./src/town_cmd.cpp
in line 1834
the fix value 20 seems to be the one, who gives the error.if (IsCloseToTown(tile, 20)) {
return_cmd_error(STR_ERROR_TOO_CLOSE_TO_ANOTHER_TOWN);
}
So try to change that to 10, 5 or something else and compile openttd to a new version.
With that you have the chance to build towns close together. If it not works,
you have to look for other places in the sources, if there are these '20' in
other places again and change them there also.
If you want to give others the same possibility, you have also to give them your compiled openTTD.
I think, a "normal" Version opens such a szenario ( towns too close together ) in a way, which throws
an error or which deletes some towns. But try it, maybe it works also.
If it throws errors, or if towns dissapear, then that is a good hint, where you have to look for more of the '20'
If I success with my german linux, and really share it on the net, there will also be
a special Version of OpenTTD, with some "reality"-Szenarios, one for Germany, one for Europe.
And because with Europe on 256x256 i also can't put MainTowns at the places they shoud be,
I will also try to change the Value '20' )
But first my german Linux should get "usuable for others" rolleyes
hope it helps
Who is online
Users browsing this forum: No registered users and 9 guests