A DLL mod that fixes LuaSocket compatibility issues in REPENTOGON for The Binding of Isaac: Rebirth.
IMPORTANT: This mod involves installing a DLL file that will be loaded by your game. Please be aware of the following:
- DLL files can execute arbitrary code on your system
- Only download from trusted sources (official releases on this GitHub repository)
- Scan files with your antivirus before installation
- The author provides this software "as is" with no warranty or liability
- Use at your own risk - you are responsible for any consequences
By downloading and using this mod, you acknowledge these risks and agree to hold the author harmless from any damages or issues that may arise.
For maximum safety, you can review the source code (or even build it yourself) in this repository before installation.
REPENTOGON's built-in LuaSocket library was compiled for Lua 5.1, which causes crashes when mods attempt to use require("socket"). This incompatibility prevents Isaac mods from utilizing networking functionality that should be available through LuaSocket.
- Game crashes when calling
require("socket")in mod code
zhlLuaSocketFix replaces REPENTOGON's incompatible LuaSocket with a properly compiled version that works with REPENTOGON's Lua environment. The mod:
- ✅ Fixes
require("socket")crashes - ✅ Enables full LuaSocket 3.1.0 functionality
- ✅ Maintains compatibility with existing mods
- ✅ Requires no changes to mod code
- Download the latest
zhlLuaSocketFix_Setup.exefrom the Releases page - Run the installer - it will automatically:
- Detect your Isaac installation (Steam or manual)
- Validate you have REPENTOGON installed
- Install the fix to the correct location
- Download
zhlLuaSocketFix.dllfrom the Releases page - Locate your Isaac installation directory (where
isaac-ng.exeis located) - Ensure you have REPENTOGON installed (look for
zhlREPENTOGON.dll) - Copy
zhlLuaSocketFix.dllto the Isaac directory - Start The Binding of Isaac: Rebirth with REPENTOGON
After installation, you can verify the fix is working:
- Start Isaac with REPENTOGON enabled and --luadebug parameter
- Open the Debug Console (backtick ` key)
- Enter:
lua local s = require("socket"); print(s._VERSION); - You should see the LuaSocket version printed without any crashes
Note: If you don't have --luadebug enabled, LuaSocket functions will not work even with this fix installed.
- The Binding of Isaac: Rebirth
- REPENTOGON (installation guide)
- Windows (the mod is compiled as a Windows DLL)
- --luadebug launch parameter (LuaSocket functionality requires this to be enabled)
LuaSocket will only work if you launch Isaac with the --luadebug parameter:
- Steam: Right-click Isaac → Properties → Launch Options → Add
--luadebug - Other platforms: Add
--luadebugto your launch command or shortcut
Once installed, you can use LuaSocket in your mods normally:
local socket = require("socket")
local tcp = socket.tcp()
-- Your networking code here
tcp:connect("example.com", 80)
-- etc.No special setup or compatibility code is needed - the fix works transparently.
Having issues? Need help?
- 🐛 Bug Reports: Create an issue
- 💬 General Help: Join our Discord
- 📖 REPENTOGON Docs: REPENTOGON Documentation
For developers interested in the implementation details, see the src/ directory which contains:
- Source code architecture and explanation
- Build instructions for compiling from source
- Technical details about the LuaSocket injection method
This project is licensed under the MIT License - see the LICENSE file for details.
TL;DR: You can do whatever you want with this code - use it, modify it, distribute it, sell it. No restrictions, no warranty, no liability.
Created by: sublimnl
Discord: https://discord.com/invite/5R9CSxzcep