Page 2 of 2

Re: Help with Industries' property 24

Posted: 14 Nov 2008 21:54
by a.locritani
michael blunck wrote: Not really. I´ve tested it as well.
please, try this
test.grf
(1.75 KiB) Downloaded 40 times
for me (alpha 2.6 alpha 0 r 2071) it works (station named correctly). can you confirm?

Re: Help with Industries' property 24

Posted: 14 Nov 2008 22:13
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 651 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

Re: Help with Industries' property 24

Posted: 14 Nov 2008 22:45
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 626 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 626 times
distance 3 tiles ("prev. here" is where station previously was)
SCR3.png
SCR3.png (20.68 KiB) Viewed 628 times
does this make sense to you? you're right, anyway, prop 09 is not involved

Re: Help with Industries' property 24

Posted: 14 Nov 2008 23:06
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

Re: Help with Industries' property 24

Posted: 15 Nov 2008 07:28
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".