It is not dependent on my specific code. It occurs as well when using the sample code from yourWIKI for the 'static_data_load' function.
This are the log messages created from that sample code:
a single log entry on startup of AM
Code: Select all
2022-03-17 11:56:38 ERROR InstrumentScanner - *Test - Instrument Scanner ERROR: Error loading instrument script: [string "logic.lua"]:6: attempt to index a nil value (global 'data')
Code: Select all
2022-03-17 11:58:38 ERROR InstrumentScanner - *Test - Instrument Scanner ERROR: Error loading instrument script: [string "logic.lua"]:6: attempt to index a nil value (global 'data')
2022-03-17 11:58:38 ERROR InstrumentScanner - *Test - Instrument Scanner ERROR: Error loading instrument script: [string "logic.lua"]:6: attempt to index a nil value (global 'data')
2022-03-17 11:58:38 ERROR InstrumentScanner - *Test - Instrument Scanner ERROR: Error loading instrument script: [string "logic.lua"]:6: attempt to index a nil value (global 'data')
2022-03-17 11:58:38 ERROR InstrumentScanner - *Test - Instrument Scanner ERROR: Error loading instrument script: [string "logic.lua"]:6: attempt to index a nil value (global 'data')
I question the value of such scanning when the messages are not correct. The scanner should ignore indexing of such dynamically loaded data.
Paul