---------------------------------------------------------------
After getting interested in this patch because of its usefulness for future projects, I checked the patch original thread to see its status. I was surprised to find a version made by belugas and corrected by Roujin that was ignored by the people who was updating the patch to trunk (I was not surprised to see their understandable disappointment), even when it was clearly the version most close to trunk inclusion. Then I decided to get *that* version working in current trunk, add any missing features the patch needed, correct any bugs and reopen the debate about all points that belugas and Roujin already mentioned back then. I have opened a new thread to prevent any further confusions with the old-but-updated version.
The hard part was done back then: allow transport companies to found new towns ingame. But that's not enough: there is a lot of decisions to make, details to polish and finally test it in real games. I can implement the features and mantain the patch, but I need your help for everything else. I'm expecting your feedback and opinions!
List of points to debate
- What should be the price for founding a town?. Right now the prize is 1 875 000, as I found it big enough for new towns.
- What features is the patch missing?. If you think that something important (but only features strictly related to founding towns) is missing, please post your ideas!.
- v15-r17654: Code changes only. Update to current trunk.
- v14-r17558: Don't allow to build a town if the "allow towns to build roads" setting is off and there are no roads available nearby. Now towns are not populated when they are built: only the foundations of the town buildings are placed, and the town will slowly get population when each building is finished.
- v13-r17460: Update to economy changes in trunk.
- v12-r17295: Code for the toolbar GUI simplified (SmatZ). Setting renamed and placed with economy settings. Renaming implementation removed.
- v11-r17288: More code changes and coding style corrections.
- v10-r17285: Some code changes, corrections and optimizations.
- v09-r17260: In multiplayer, allow the company that founded a town to change its name. The server still can change all town names. SAVEGAMES MAY BE INCOMPATIBLE WITH PREVIOUS VERSIONS.
- v08-r17143:
- String names reworked to match trunk style.
- Coding style corrections.
- Checked NewGRF compatibility of the added base cost. (See NewGRF provided)
- v07-r16958:
- Corrected a bug where you could still found towns after disabling their option if you had the found town window opened. Now the window closes when the option is disabled and the game is not at the scenario editor.
- Reduced the cost of building towns (1.875.000 pounds). After some testing games, I found this cost big enough for new towns. Just my personal opinion, though.
- The title of the found town window changes when ingame.
- Showing the cost of building a town in the GUI is back, implementing the DrawWidget function. As with the old GUI, the window is redrawn when inflation changes (actually the code was still there ).
- The GUI code have been remade to use UpdateWidgetSize to hide widgets conditionally, instead of a construction function called at the NWidgetPart array. As a result, the GUI code is much cleaner and understandable. Thanks again, Alberth!
- Minor STR naming corrections.
- v06-r16871: A real GUI is implemented again.
- v05-r16708: Corrected an unchecked use of _current_company. Update of version_number.
- v04-r16679: Added a network-safe news page for town founding.
- v03-r16671: Update to current trunk. Trunk now generates town names in the same way than the original patch did (passing town name parts as a parameter) so that part of the patch was removed. The original GUI was removed and needs to be remade. As a result of trunk allowing towns with different layouts in the same game, now the player can decide the road layout of a town before founding it. The setting for this feature now appears at Economy -> Towns. There were a lot of small changes to the code, and I had to move some parts between files as the result of some reorganizations in trunk.
- v02-r14536 (by Roujin): Invenville town name issue solved. Changed the behaviour of the patch to allow founding only small towns. Their actual size is somewhere between normal "Small" and "Medium" sized towns. Made the command non-offline only.
- v01-r14536 (by belugas): Compared to other versions of founding town patches, it has these advantages: The CreateTownName has been used out of the command handler, making it more network safe. The price of town's funding is now assigned to a new member of the price array. This means that it will now be linked to inflation, something you can verify by letting the window opened around end of month. A few code-style changes have been applied.