Nasal runtime error : Undefined symbol : cs
at /usr/share/games/flightgear/Nasal/local_weather/compat_layer.nas line 560
When I checked that code I found something like this :
- Code: Select all
if (buffer_flag == 1)
{
var cs = weather_tile_management.cloudScenery.new(tile_counter, convective_flag, cl, model);
append(weather_tile_management.cloudSceneryArray,cs);
}
# if weather dynamics is on, also create a timestamp property and sort the cloud hash into quadtree
if (local_weather.dynamics_flag == 1)
{
cs.timestamp = weather_dynamics.time_lw;
cs.write_index = placement_index;
if (getprop(lw~"tmp/buffer-status") == "placing")
{
var blat = buffered_tile_latitude;
var blon = buffered_tile_longitude;
var alpha = buffered_tile_alpha;
}
else
{
var blat = getprop(lw~"tiles/tmp/latitude-deg");
var blon = getprop(lw~"tiles/tmp/longitude-deg");
var alpha = getprop(lw~"tmp/tile-orientation-deg");
}
weather_dynamics.sort_into_quadtree(blat, blon, alpha, lat, long, weather_dynamics.cloudQuadtrees[tile_counter-1], cs);
}
Variable cs is defined only if buffer_flag=1, but when I monitoring this flag in property browser for local_weather/config/buffer_flag, I never see other value than zero. Result is clear - no clouds at the scene after runtime error. Can someone deeply analyze that error ?
I have solution - move var cs=.... before line with if (buffer_flag == 1), but I'm not sure with other consequences.
This bug is in 2018.2.1, 2018.2.2, 2018.3.0 and in 2018.4.0 too