You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you very much for the UndoRedo script! Very nice functionality! Bravo!
I tried using UndoRedo-1.5.1.lua, but the code table.insert(seekTable,0,0) was giving me the following error:
[UndoRedo_1_5_1] Lua error: /home/ubuntu/.config/mpv/scripts/UndoRedo-1.5.1.lua:22: bad argument #2 to 'insert' (position out of bounds)
I think that this error may have to do with the lua version (5.1 versus 5.2 & 5.3?).
On my setup I was able to fix this by replacing the two occurrences of the table.insert code with: seekTable[0] = 0
I am writing this comment to propose one of the following options:
Either in the script switch on the lua version with an if-else statement
or use a 'try-except' construct with pcall
or (simplest option) make a comment about this in the README.md file and/or a code comment in the script itself (to safe troubleshooting time for future users)
Kind regards,
Grateful user
The text was updated successfully, but these errors were encountered:
Dear developer,
Thank you very much for the UndoRedo script! Very nice functionality! Bravo!
I tried using UndoRedo-1.5.1.lua, but the code
table.insert(seekTable,0,0)
was giving me the following error:[UndoRedo_1_5_1] Lua error: /home/ubuntu/.config/mpv/scripts/UndoRedo-1.5.1.lua:22: bad argument #2 to 'insert' (position out of bounds)
I think that this error may have to do with the lua version (5.1 versus 5.2 & 5.3?).
On my setup I was able to fix this by replacing the two occurrences of the table.insert code with:
seekTable[0] = 0
I am writing this comment to propose one of the following options:
Kind regards,
Grateful user
The text was updated successfully, but these errors were encountered: