Help with Industries' property 24

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

a.locritani
Engineer
Engineer
Posts: 111
Joined: 08 Feb 2007 11:59
Skype: a.locritani
Location: Italy

Re: Help with Industries' property 24

Post by a.locritani »

michael blunck wrote: Not really. I´ve tested it as well.
please, try this
test.grf
(1.75 KiB) Downloaded 39 times
for me (alpha 2.6 alpha 0 r 2071) it works (station named correctly). can you confirm?
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Help with Industries' property 24

Post by michael blunck »

a.locritani wrote:please, try this [...] for me (alpha 2.6 alpha 0 r 2071) it works (station named correctly). can you confirm?
Well, what should I say?

Code is the same:

Code: Select all

    8 * 8	 0C "sawmill"
    9 * 12	 04 0A FF 01 02 DC 80 20 81 04 48 00
   10 * 12	 00 0A 03 01 02 08 02 09 02 24 02 DC
and result is the same too:
SCR20.png
SCR20.png (22.84 KiB) Viewed 645 times
Don´t get me wrong. It´s perfectly possible to get a station named "... sawmill", but I still wonder how near the station must be. Dale?

regards
Michael
Image
a.locritani
Engineer
Engineer
Posts: 111
Joined: 08 Feb 2007 11:59
Skype: a.locritani
Location: Italy

Re: Help with Industries' property 24

Post by a.locritani »

From very quick test seems that if there are max 2 tiles on any axis between any tile station and any industry station, the name is enforced correctly.

every time, after taking screenshot, i delete the station, wait the "ghost label" disappear, then replace in the new location

distance 2 tiles:
SCR1.png
SCR1.png (16.67 KiB) Viewed 620 times
max distance on any axis: 2 tiles (3 counting on NW-SE axis, but also 2 nw-se+1ne-sw) - may be i'm not so clear, here, but i hope you can understand my point
SCR2.png
SCR2.png (18.55 KiB) Viewed 620 times
distance 3 tiles ("prev. here" is where station previously was)
SCR3.png
SCR3.png (20.68 KiB) Viewed 622 times
does this make sense to you? you're right, anyway, prop 09 is not involved
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Help with Industries' property 24

Post by michael blunck »

a.locritani wrote:From very quick test seems that if there are max 2 tiles on any axis between any tile station and any industry station, the name is enforced correctly. [...]
max distance on any axis: 2 tiles (3 counting on NW-SE axis, but also 2 nw-se+1ne-sw) - may be i'm not so clear, here, but i hope you can understand my point
Distances are measured from the "north tile" of an industry using the Manhattan metric.

regards
Michael
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Help with Industries' property 24

Post by DaleStan »

No, for prop 24, "near" is one industry tile within "|Δx|, |Δy| ≤ 3".

Same as for the "Mines" and "Oil Rig" names, except that, for those, there must be two tiles within "|Δx|, |Δy| ≤ 3".
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 8 guests