Page 1 of 1

[Patch] Multi-tile land purchase

Posted: 26 Mar 2012 10:39
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

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 18:19
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.

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 18:56
by Alberth
Yes, very good tool for evil-do-ers in MP.

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 19:14
by zooks
Maybe add an option to disable it for multiplayer?

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 19:17
by Alberth
you have such big needs for buying land in SP?

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 19:27
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.

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 19:37
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.

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 19:59
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)

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 21:34
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.

Re: Patch : Multi-tile land purchase

Posted: 26 Mar 2012 23:39
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.

Re: Patch : Multi-tile land purchase

Posted: 27 Mar 2012 01:19
by handrake
Updated to address some of the issues mentioned in replies.

Re: Patch : Multi-tile land purchase

Posted: 27 Mar 2012 10:23
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.

Re: Patch : Multi-tile land purchase

Posted: 03 Apr 2012 20:20
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.