nml icon indicating copy to clipboard operation
nml copied to clipboard

NewGRF Meta Language

Results 40 nml issues
Sort by recently updated
recently updated
newest added

I am creating a house set which uses the `construction_check` callback to allow or deny construction based on a land value I calculate from various tile attributes. If I use...

Callback `cargo_subtype_display` has a special string range, which is not covered by NML. ``` 800..BFF | Display D0xx (D000..D3FF) text without waiting amount. ``` No idea what syntax could be...

The `air_drag_coefficient` property of trains and road vehicles has some magic values: * Integer 0: use some default max_speed-dependent value. * Integer 1: apply no air drag. Currently NML applies...

NML 5.3.0 windows binary is slow (on Windows 7), especially compared to older 0.4 version, it takes more than 10s to compile or even show help.

With me updating the [visualstudio.py generator](https://github.com/spnda/nml/blob/master/nml/editors/visualstudio.py), I noticed that "TILE" does not get exported with "SELF" and "PARENT", even though it is clearly used: https://github.com/OpenTTD/nml/blob/1fec776630208c33de2c59fe32237b22ebab54f1/nml/actions/action2random.py#L78-L81 https://github.com/OpenTTD/nml/blob/1fec776630208c33de2c59fe32237b22ebab54f1/nml/actions/action2random.py#L97-L100

Some VA2 variables are "unavailable" in some contexts, often in the purchase list. When a variable is "unavailable" it does not provide any default value, but rather "throws an exception"....

Unfinished, but does this look sane? See changes in `regression/expected`.

I've tested all except `sprite` and `flags`... The code to edit a bridge becomes 👍 >item(FEAT_BRIDGES, item_wooden_bridge, 0x00 ) { >    property { >        avail_year: 1800; >        cost_factor: 40; >        speed_limit: 40 km/h; >        min_length:...

someone should check whether that actually works for more people than myself. the initalisation of free_parameters from action6.py is moved into ast/grf.py, after preprocessing the grf parameters is done. i...