Try the following steps:
-Download the
latest release of BizHawk, unzip the archive somewhere
-Delete the "Lua" folder bundled with BizHawk, so we can avoid confusion about the location of the socket folder
-Create a "socket" folder next to EmuHawk.exe with
the following files inside. You can also get these files from
this archive.
-Add
lua5.1.dll next to EmuHawk.exe. You can also get this file from "Lua 5.1 for Windows"(
you can get an installer here).
-Create a lua script "test_lua_socket.lua" and put it next to EmuHawk.exe with the following code:
Language: lua
package.cpath = ";./?.dll;"
package.path = ";./socket/?.lua;"
socket = require('socket')
print(_G.socket)
print("luasocket is loaded!")
-Start EmuHawk.exe
-Drag "test_lua_socket.lua" inside the BizHawk instance.
At this point, it should work.