[patch]Picking and placing single houses

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

User avatar
piratescooby
Route Supervisor
Route Supervisor
Posts: 451
Joined: 21 Nov 2014 12:39
Location: The Granite City.

Re: [patch]Picking and placing single houses

Post by piratescooby »

Haldir wrote:Hello, do someone know if this patch is included in a patchpack? I play the JGR-32 pack. In this the patch is not included.

Thanks for help and forgive me my bad english.
I use JGR'S 0.22.0 , Load up your favourite house set grf,load up scenario editor , choose Landscape - in the far right corner is a small house choose ,this allows the placing of buildings .
Attachments
screenshot.png
(582.79 KiB) Not downloaded yet
Haldir
Engineer
Engineer
Posts: 6
Joined: 12 Aug 2017 12:13

Re: [patch]Picking and placing single houses

Post by Haldir »

Thank you, piratescooby. I think, I misunderstand how to use. I think, I can use it while playing a game, not only in the szenario editor.
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [patch]Picking and placing single houses

Post by wallyweb »

There seems to be a bug.
In the image below we see a cottage as Zone 5 and an office tower as Zone 1.
zoneBug.png
zoneBug.png (38.83 KiB) Viewed 6716 times
The cottage properly builds in the outer most zone and the office tower properly builds in the inner most zone.
The bug is with the zone numbers.
NewGrf Specs - TownZones wrote:Town zones are concentric rings around the centre of each town. A town can have up to five town zones where zone 0 is the outer most zone and the zone with the highest number the inner most.
VariationalAction2/Houses wrote:Town zone where the building is situated. The value is between 0 and 4, where 0 is the outermost zone of the town. Smaller towns have fewer zones. Roads are plain in zone 0 and 1, paved in zone 2, have trees in zone 3 and streetlights in zone 4
Where you describe Town Zones as 1 2 3 4 5, shouldn't that be 4 3 2 1 0?

I noticed this while working in JGR Patch Pack v27.1
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: [patch]Picking and placing single houses

Post by Eddi »

towns have two zone configurations
  1. small towns: (inner) 2 1 0 (outer)
  2. large towns: (inner) 4 3 1 0 (outer)
note that the large towns have no zone 2.
cestkris
Engineer
Engineer
Posts: 33
Joined: 30 May 2019 12:44

Re: [patch]Picking and placing single houses

Post by cestkris »

Hi,
I have a problem with this patch.

viewtopic.php?f=31&t=85409&p=1222493#p1222493


Help me please!! :( :(
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [patch]Picking and placing single houses

Post by wallyweb »

cestkris wrote: 08 Sep 2019 14:28 Hi,
I have a problem with this patch.

viewtopic.php?f=31&t=85409&p=1222493#p1222493


Help me please!! :( :(
A little test might help us to help you figure this out.
1. Remove one of the sets that works.
2. Does one of the crossed out sets become available?
cestkris
Engineer
Engineer
Posts: 33
Joined: 30 May 2019 12:44

Re: [patch]Picking and placing single houses

Post by cestkris »

Nothing changes
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [patch]Picking and placing single houses

Post by wallyweb »

cestkris wrote: 08 Sep 2019 15:21 Nothing changes
Can you post a screenshot showing the change(s) you made?
KahlilGibran
Engineer
Engineer
Posts: 28
Joined: 13 Nov 2019 13:26

Re: [patch]Picking and placing single houses

Post by KahlilGibran »

how to install this patch?
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [patch]Picking and placing single houses

Post by wallyweb »

KahlilGibran wrote: 07 Dec 2019 15:26 how to install this patch?
No need to install if you are playing JGR Patch Pack where it is accessible in the scenario editor.
andres1555
Engineer
Engineer
Posts: 48
Joined: 03 Sep 2018 20:24

Re: [patch]Picking and placing single houses

Post by andres1555 »

Hi! Is there any way to "break" the rules and put any house on any place?
95% of the times i receive the message "Cant build houses there...the building is not allowed"
Im using it on JGRP.
User avatar
wallyweb
Tycoon
Tycoon
Posts: 6102
Joined: 27 Nov 2004 15:05
Location: Canada

Re: [patch]Picking and placing single houses

Post by wallyweb »

andres1555 wrote: 26 Apr 2020 19:59 Hi! Is there any way to "break" the rules and put any house on any place?
95% of the times i receive the message "Cant build houses there...the building is not allowed"
Im using it on JGRP.
This can be a bit of a problem.
The House selection tool shows available zones as 1,2,3,4 and 5 where 5 is the outermost zone.
The NewGRF specifications for Game Mechanics - Town Zones says something quite different:
A town can have up to five town zones where zone 0 is the outer most zone ...
This also appears in varAction2/Houses Property 42:
The value is between 0 and 4, where 0 is the outermost zone of the town ...
and in Action0/houses property 13 Building availability mask (13):

Code: Select all

Bit 	  Value 	        Meaning
0..4 	  1,2,4,8,10 	which town zone(s) the building can be built in
Perhaps the House selection tool should be fixed before attempting to "break" the rules and put any house on any place.
cestkris
Engineer
Engineer
Posts: 33
Joined: 30 May 2019 12:44

Re: [patch]Picking and placing single houses

Post by cestkris »

Hi,

I often use this patch to build my cities. A version exists for Openttd 10.3 ?

Thansk :D
Cyber_Piglin
Engineer
Engineer
Posts: 1
Joined: 11 Apr 2024 16:59

How do i put manually .zip file to work ?

Post by Cyber_Piglin »

I want to download this : viewtopic.php?p=1099696#p1099696 but i don't understand how.

Anyone casn help ?
"How to ..."
User avatar
kamnet
Moderator
Moderator
Posts: 8580
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: How do i put manually .zip file to work ?

Post by kamnet »

Cyber_Piglin wrote: 11 Apr 2024 17:21 I want to download this but i don't understand how. Anyone can help ?
You can't just manually put the zip file in. The zip file contains code that you have to apply to the OpenTTD source code and then compile on your computer system, and that in itself involves setting up a few different things. You'll also need to be competent in applying a patch to source code, knowledge of C++ is helpful This particular piece of code is several years old and it will likely require some work to be usable in the latest versions of the OpenTTD source code.

If you want to learn how to do all of that, you can start by reading the documentation that comes with OpenTTD on how to compile the source code on your computer. If you'd rather skip all of that and just use it, a version of this appears in the JGR Patch Pack (a separate version of OpenTTD) that allows you to pick and place houses using the scenario editor.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 7 guests