Hemiptera Bugtracker at bugs.linux-forks.de

advtrains

digiline data

Send replies to 60@bugs.linux-forks.de or using the Form below.
avatar From: OP
Sun, 02 Sep 2018 20:03:01 -0000

The digiline interrupt uses on the Lua Controller event.msg and on LuaATC/Operation Panel event.message - and event.channel is used in both!

That is a massive PITA!

Please depricate immediantly .message and use also .msg , so that program parts for digiline can easily be exchanged.

This PITA had cost me in a few weeks already many hours of unneeded debugging.

avatar From: Developer
Mon, 03 Sep 2018 19:08:02 -0000

What?

I have no idea how this could be possible. The generated event for digilines always contains a field called 'msg', not message.

Both rail and panel use the same function for digiline events. It is defined in active_common.lua

Please don't confuse it with the standard interrupt()s. The field there is indeed called 'message'. Do you mean this?

avatar From: OP
Sun, 14 Oct 2018 14:41:02 -0000

I'm sorry, you are right, the operation panel internal way is to use ".message", but digiline uses ".msg" for for a longer time - so the use of ".message" for internal messages is for me unexpected.

So I impore you to change ".message" to ".msg" - or to have no broken programs an alias ".msg" for ".message" would be enough.

avatar From: Developer
Wed, 17 Oct 2018 15:54:01 -0000

%close

avatar Status Update
Wed, 17 Oct 2018 18:07:01 -0000
This bug was closed.
Reply