Skip to content

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.

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):

  1. lua51.dll, which DeSmuME needs for any Lua script.
  2. LuaSocket for Lua 5.1: the socket folder with core.dll, and socket.lua.

Lockstep does not ship these files. If other Lua scripts already run in your DeSmuME, the first point is done.

  1. Open the run, then Settings → Auto-tracking from the game.
  2. Choose Lua script for your player and press Set up a script connection.
  3. Check the address of the computer running Lockstep (an IP address in your home network or on Tailscale, 127.0.0.1 on the same computer).
  4. Click DeSmuME: the script, filled in, as lockstep-desmume-<CODE>.lua.
  1. Start DeSmuME and load your game.
  2. Tools → Lua Scripting → New Lua Script Window.
  3. Browse, pick the downloaded file, then Run.
  4. The window shows [Lockstep] connected to Lockstep.

If it says module 'socket' not found, LuaSocket is missing or has the wrong architecture (step 1).