DeSmuME
DeSmuME on Windows can run Lua scripts, but its Lua has no networking of its own. With LuaSocket the Lockstep script connects as with the other emulators. It covers Diamond, Pearl, Platinum, HeartGold, SoulSilver and their hacks.
1. Prepare DeSmuME
Section titled “1. Prepare DeSmuME”DeSmuME needs two things next to DeSmuME.exe, both for Lua 5.1 and in the same architecture as your DeSmuME (32-bit x86 or 64-bit x64):
lua51.dll, which DeSmuME needs for any Lua script.- LuaSocket for Lua 5.1: the
socketfolder withcore.dll, andsocket.lua.
Lockstep does not ship these files. If other Lua scripts already run in your DeSmuME, the first point is done.
2. Get the script from Lockstep
Section titled “2. Get the script from Lockstep”- Open the run, then Settings → Auto-tracking from the game.
- Choose Lua script for your player and press Set up a script connection.
- Check the address of the computer running Lockstep (an IP address in your home network or on Tailscale,
127.0.0.1on the same computer). - Click DeSmuME: the script, filled in, as
lockstep-desmume-<CODE>.lua.
3. Start the script
Section titled “3. Start the script”- Start DeSmuME and load your game.
- Tools → Lua Scripting → New Lua Script Window.
- Browse, pick the downloaded file, then Run.
- The window shows [Lockstep] connected to Lockstep.
If it says module 'socket' not found, LuaSocket is missing or has the wrong architecture (step 1).