gocha / emu2midi-lua

EmuLua scripts for recording retro game sound to MIDI file or FlMML
MIT License
16 stars 4 forks source link

Module 'MIDI' not found error when stoping script #1

Open tastymeatball opened 3 years ago

tastymeatball commented 3 years ago

When I'm trying to stop the script I'm getting the following error.

.\emu2midi.lua:446: module 'MIDI' not found: no field package.preload['MIDI'] no file '.\MIDI.lua' no file 'C:\VBA\lua\MIDI.lua' no file 'C:\VBA\lua\MIDI\init.lua' no file 'C:\VBA\MIDI.lua' no file 'C:\VBA\MIDI\init.lua' no file '.\MIDI.dll' no file '.\MIDI51.dll' no file 'C:\VBA\MIDI.dll' no file 'C:\VBA\MIDI51.dll' no file 'C:\VBA\clibs\MIDI.dll' no file 'C:\VBA\clibs\MIDI51.dll' no file 'C:\VBA\loadall.dll' no file 'C:\VBA\clibs\loadall.dll'

I'm using VBA-RR v23.6 svn480-LRC4.

tastymeatball commented 3 years ago

It seems that the MIDI.lua file of the MIDI module is missing. https://luarocks.org/modules/peterbillam/midi Placing the MIDI.lua in the same directory as the other lua files from this repository seems to be enough to fix the problem. Would be nice if you would include this into this repository.

bauspanderu commented 3 years ago

For those who don't want to install luarocks:

  1. download https://luarocks.org/manifests/peterbillam/midi-6.8-0.src.rock
  2. extract it using 7-zip or something similar
  3. open the MIDI-{version}.tar-gz (where version represents the version of the archive you've downloaded)
  4. the midi.lua is in there