The idea was to prevent towns growing into huge sprawls. A radius of 25 is already very big but of course i can increase it.zypa wrote:The patch is quite cool.
But i do not like the max 25 tiles limit. Is there a way to allow bigger cities?
Patch: Shape Towns
Moderator: OpenTTD Developers
Re: Patch: Shape Towns
Re: Patch: Shape Towns
I really like it, in particular in conjunction with towns build no roads as it can prevent towns from expanding along a long road. In one game i had a large town connected by a road to another town on the other side of the map, and in the end many of the new buildings in the second town were actually part of the first. However, the option of how big towns should be able to grow should be totally controllable be the user, as i suppose this is really the purpose of the patch. I still want to be able to have massive cities, but not all of them.
previously known as daylight
Re: Patch: Shape Towns
That would be really great. I do not really know why there is a hardcoded limit. Some people may not like big sprawls, they can set th limit to 10 tiles, if people like huge sprawls, they can set the limit to xx tiles.Roest wrote:The idea was to prevent towns growing into huge sprawls. A radius of 25 is already very big but of course i can increase it.zypa wrote:The patch is quite cool.
But i do not like the max 25 tiles limit. Is there a way to allow bigger cities?
Re: Patch: Shape Towns
It's 255 in the latest patch pack.
Re: Patch: Shape Towns
Thank you very much! 

Re: Patch: Shape Towns
Thanks a lot for this great patch! 
Any plans on updating it for 0.6.1 or current trunk, though?

Any plans on updating it for 0.6.1 or current trunk, though?
Re: Patch: Shape Towns
Hi!
I updated this patch to the current rev. 14996.
Since this is the first patch I've created, I can't make any guarantees that it is working correctly!
It lacks this change of the original patch.
Dont know where to put it...
I updated this patch to the current rev. 14996.
Since this is the first patch I've created, I can't make any guarantees that it is working correctly!

It lacks this change of the original patch.
Dont know where to put it...
Code: Select all
Index: src/openttd.cpp
===================================================================
--- src/openttd.cpp (revision 12737)
+++ src/openttd.cpp (working copy)
@@ -2478,6 +2478,16 @@
}
}
}
+ /*
+ * Shape Town patch, towns without a max_radius get 100 assigned,
+ * which should be more than enough
+ */
+ if (CheckSavegameVersion(94)) {
+ Town *t;
+ FOR_ALL_TOWNS(t) {
+ t->max_radius = 100;
+ }
+ }
return InitializeWindowsAndCaches();
}
- Attachments
-
- shapetown-14996.patch
- (20.79 KiB) Downloaded 79 times
Re: Patch: Shape Towns
I believe everything concerning loading and saving can be found in the saveload folder as of r14828.
There are not too many files there, you should find it fast enough.
While updating another patch lately myself, the stuff from openttd.cpp went to afterload.cpp.
In your case it could be another file.
Good luck and happy patching.
There are not too many files there, you should find it fast enough.
While updating another patch lately myself, the stuff from openttd.cpp went to afterload.cpp.
In your case it could be another file.
Good luck and happy patching.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Patch: Shape Towns
Great job Bazhosh! I will try your patch as soon as I get some spare time...
Who is online
Users browsing this forum: No registered users and 5 guests