t-affeldt / regional_weather

A diverse weather pack for Minetest using Climate API
https://forum.minetest.net/viewtopic.php?f=9&t=24569
Other
4 stars 2 forks source link

Unknow Error #1

Closed IFRFSX closed 4 years ago

IFRFSX commented 4 years ago

2020-05-20 22:55:58: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'climate_api' in callback environment_Step(): ...ods/climate/regional_weather/ca_weathers/ambient.lua:18: attempt to index local 'params' (a nil value) 2020-05-20 22:55:58: ERROR[Main]: stack traceback: 2020-05-20 22:55:58: ERROR[Main]: ...ods/climate/regional_weather/ca_weathers/ambient.lua:18: in function 'effects' 2020-05-20 22:55:58: ERROR[Main]: ...test/bin/../mods/climate/climate_api/lib/trigger.lua:64: in function 'get_weather_effects' 2020-05-20 22:55:58: ERROR[Main]: ...test/bin/../mods/climate/climate_api/lib/trigger.lua:98: in function 'get_active_effects' 2020-05-20 22:55:58: ERROR[Main]: ...inetest/bin/../mods/climate/climate_api/lib/main.lua:38: in function '?' 2020-05-20 22:55:58: ERROR[Main]: ...media/disk/minetest/bin/../builtin/game/register.lua:429: in function <...media/disk/minetest/bin/../builtin/game/register.lua:413> 2020-05-20 22:55:58: ERROR[Main]: stack traceback:

t-affeldt commented 4 years ago

This appears to be a bug with Climate API passing empty data for filtered-out (dead) players. This is a known bug in v1.0.1 of the API but should be fixed in the latest version. Are you sure you're running the latest version of Climate API? v1.0.2 includes a fix specifically for this case.

IFRFSX commented 4 years ago

@t-affeldt Sorry, I just checked it. I used the version of May 16. I killed a saboteur in the server. As a result, the server stopped running.

IFRFSX commented 4 years ago

After testing on May 18, there is no problem. Thank you for your careful writing of mod. : )