I'm trying to use the function nearest_house_matching_criterion with the criterion SEARCH_HOUSE_BY_ID (like 'nearest_house_matching_criterion(10, SEARCH_HOUSE_BY_ID)'), but the compiler says: Unrecognized identifier 'SEARCH_HOUSE_BY_ID' encountered.
What am I doing wrong? I'm using the NML version r2083.
NML: Usage of nearest_house_matching_criterion
Moderator: Graphics Moderators
Re: NML: Usage of nearest_house_matching_criterion
Code: Select all
nml/global_constants.py
490: 'SEARCH_HOUSE_BY_TYPE' : 0,
491: 'SEARCH_HOUSE_BY_CLASS' : 1,
492: 'SEARCH_HOUSE_BY_GRFID' : 2,
Re: NML: Usage of nearest_house_matching_criterion
In the description in the wiki: http://newgrf-specs.tt-wiki.net/wiki/NM ... _variablesAlberth wrote:Where did you find ..._BY_ID ?
I tried SEARCH_HOUSE_BY_TYPE now and it seems that it does what I want. Thanks!
Who is online
Users browsing this forum: No registered users and 17 guests