LUA errors when alt-tabbing with piano midi input; breaks police radio.

Status
Not open for further replies.
Messages
2,664
Reaction score
4,283
Points
845
Type of bug: Lua

Description of the bug:
When sending midi input to the in-game piano and you alt-tab, it will cause a lua error posted below. This will loop infinitely unless you reconnect to the server. It prevents you from (un)muting your police radio.It appears to happen randomly. Once this error appeared instantly after alt-tabbing, once roughly a minute after i had already picked up my piano. MIDI input might still was being send, but i'm not entirely sure.

How to reproduce the bug:
place piano
play a midi while on duty on this piano using FPtjes .dll
experience bug


Time stamp(s): 00:05 uk time 31-5-2020

*Errors:

Code:
[ERROR] gamemodes/perp/gamemode/modules/piano/cl_mididevices.lua:21: bad argument #1 to 'band' (number expected, got nil)
  1. band - [C]:-1
   2. v - gamemodes/perp/gamemode/modules/piano/cl_mididevices.lua:21
    3. unknown - lua/includes/modules/hook.lua:84
     4. v - [C]:-1
      5. unknown - lua/includes/modules/hook.lua:84

*Media: will post video when i can clip this
 
Upvote 0
Status
Not open for further replies.
Back
Top