-
Notifications
You must be signed in to change notification settings - Fork 35
Internal NMLC error with GRF using a switch parameter #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can confirm. Line 942 in 3251646
At that point, Not that I've any idea where 7 or 20 came from... |
Feature 7 is Houses and feature 14 (20 dec) is towns so NMLC gets confused that the "parent" of a house is a town |
@frosch123 fixed this in #175. Specifically it works after commit cf57433 "Fix: register_map must be accessed with the feature of the action, not with the scope of the variables." |
Thanks! I'll update my NMLC. |
I am building a house set which heavily uses switches with parameters as functions. All have worked fine, except for calculating the town population using the parent scope and a parameter for the population required to construct the building. This returns an internal NMLC error.
I have attached a simple NML file which reproduces this error. Removing the parameter and changing the evaluation to a constant
population >= 10
compiles fine.error_grf.zip
I compiled my copy of NMLC late last fall, I believe around the end of November.
The text was updated successfully, but these errors were encountered: