[Patch] Multi-tile land purchase

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

[Patch] Multi-tile land purchase

Post by handrake »

I'm aware of the old patch, however, Chilli's patch pack mentions it as broken, so I wrote this one from scratch. It works against r24058.

Please feel free to give any feedback/suggestion. Thanks.

-handrake

Update Mar 27 2012. v0.01
* A patch option to adjust a box size under construction (-1=unlimited, 0=no land purchase allowed, 1=1x1, 2=2x2, range -1~10)
* The default value is 1 so everything is the same unless you explicitly change this value in advanced settings.
* Default flags are used - only the server can set this option in MP.
* A small bug fix where it gives you a diagonal rectangle when dragged with ctrl key.
* Savefile BUMP
* Fixed the broken bundle file.

openttd-multi-tile-purchase-r24058-v0.01.zip
multi-tile-purchase-r24058-v0.01.patch
(9.5 KiB) Downloaded 152 times
Image
Last edited by handrake on 07 Apr 2012 06:17, edited 11 times in total.
User avatar
ffpp
Engineer
Engineer
Posts: 125
Joined: 29 Jan 2010 12:56

Re: Patch : Multi-tile land purchase

Post by ffpp »

First post and a patch already ;)

I will give this a try, it sounds useful.
I don't buy land myself all too often but it seems like a very natural extension of the game's control scheme and something like this should be in trunk, imo.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Patch : Multi-tile land purchase

Post by Alberth »

Yes, very good tool for evil-do-ers in MP.
zooks
Transport Coordinator
Transport Coordinator
Posts: 262
Joined: 29 Jun 2006 08:36

Re: Patch : Multi-tile land purchase

Post by zooks »

Maybe add an option to disable it for multiplayer?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Patch : Multi-tile land purchase

Post by Alberth »

you have such big needs for buying land in SP?
User avatar
ffpp
Engineer
Engineer
Posts: 125
Joined: 29 Jan 2010 12:56

Re: Patch : Multi-tile land purchase

Post by ffpp »

Alberth wrote:Yes, very good tool for evil-do-ers in MP.
I didn't realize that this was being abused in MP, I never played this game in MP.
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: Patch : Multi-tile land purchase

Post by handrake »

Alberth wrote:you have such big needs for buying land in SP?
Well, I don't know about other people but I do find it useful to buy land in chunks. (to build an airport later on, suppress a town growth, etc) If people are concerned this might be abused in MP, I'll add an option to disable it.
DeletedUser14
Tycoon
Tycoon
Posts: 1879
Joined: 21 Jan 2012 18:59

Re: Patch : Multi-tile land purchase

Post by DeletedUser14 »

Maybe add an option to limit the maximum amount of of land you can buy in one go (eg 2x2, 3x3, 4x4, 5x5)
Je suis le patron et je vous emmerde!
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Patch : Multi-tile land purchase

Post by Eddi »

we do have a maximum that players can buy in one go. it's 1x1.

there's generally two kinds of people you want to protect from. first kind is the "game-destroyers", similar to lowering the entire map to sea level. the same kind of burst mechanism could be used here.

the second kind is "i buy all tiles around this industry, so nobody else 'steals' my cargo. there's hardly any technical means to prevent that. if in doubt, an administrator/moderator needs to step in here.
maquinista
Tycoon
Tycoon
Posts: 1829
Joined: 10 Jul 2006 00:43
Location: Spain

Re: Patch : Multi-tile land purchase

Post by maquinista »

I prefer to purchase land with railway tiles. Diagonal tiles are great city stoppers, because they doesn't allow crossings at this moment.
Sorry if my english is too poor, I want learn it, but it isn't too easy.[/list][/size]
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: Patch : Multi-tile land purchase

Post by handrake »

Updated to address some of the issues mentioned in replies.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Patch : Multi-tile land purchase

Post by Alberth »

maquinista wrote:I prefer to purchase land with railway tiles. Diagonal tiles are great city stoppers, because they doesn't allow crossings at this moment.
You can also disable 'town builds roads' and then you have to make the roads for the town to expand.
handrake
Engineer
Engineer
Posts: 55
Joined: 26 Mar 2012 10:23

Re: Patch : Multi-tile land purchase

Post by handrake »

Alberth wrote:you have such big needs for buying land in SP?
Image

This is my usual use case of land purchase which is a bit tiring if to be done on each tile every time. If I don't buy out all the outer edge of the ring road like this, houses will be built on spots where I meant to build roads later on. Of course, I can achieve the same thing by laying rails, but it just doesn't feel right and I have to remove them to build anything.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests