lovely
Lovely is a runtime lua injector for LÖVE 2d
About this mod Author’s original text
Lovely is a runtime lua injector for LÖVE 2d
Lovely is a lua injector which embeds code into a LÖVE 2d game at runtime. Unlike executable patchers, mods can be installed, updated, and removed over and over again without requiring a partial or total game reinstallation. This is accomplished through in-process lua API detouring and an easy to use (and distribute) patch system.
Manual Installation
Windows + Proton / Wine
- Download the latest release for Windows. This will be lovely-x86_64-pc-windows-msvc.zip.
- Open the.zip archive, copy winmm.dll into the game directory. You can navigate to the game's directory by right-clicking the game in Steam, hovering "Manage", and selecting "Browse local files". If you are upgrading from an older version of Lovely, delete the old version.dll from the game directory.
- Put one or more mods into the mod directory (NOT the same as the game directory). You may need to create the Mods folder yourself, or launch Balatro with lovely installed once to create it automatically. If you are modding Balatro, this should be
- %AppData%/Balatro/Mods on Windows
~/.steam/steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods on Steam Deck (~/ will be called Home* if you are moving files in the GUI file manager)
- Flatpak version of Steam: ~/.var/app/com.valvesoftware.Steam.steam/steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods
- Only Steam Deck / Proton / Wine Set your game's launch options in Steam to WINEDLLOVERRIDES="winmm=n,b" %command%.
- Run the game through Steam.
Mac
- Download the latest release for Mac. If you have an M-series CPU (M1, M2, etc.) then this will be lovely-aarch64-apple-darwin.tar.gz. If you have an Intel CPU then it will be lovely-x86_64-apple-darwin.tar.gz
- Open the.zip archive, copy liblovely.dylib and run_lovely_macos.sh into the game directory. You can navigate to the game's directory by right-clicking the game in Steam, hovering "Manage", and selecting "Browse local files".
- Put one or more mods into the Mac mod directory (NOT the same as the game directory). This should be /Users/$USER/Library/Application Support/Balatro/Mods where $USER is your username (if you are modding Balatro).\
If you can't find this folder, try pressing Shift-Command-. (period) to show hidden files in Finder.
- Run the game by either dragging and dropping run_lovely_macos.sh onto Terminal.app in Applications > Utilities and then pressing enter, or by executing sh run_lovely_macos.sh in the terminal within the game directory.
Note: You cannot run your game through Steam on Mac due to a bug within the Steam client. You must run it with the run_lovely_macos.sh script.
Important: Mods with Lovely patch files (lovely.toml or in lovely/*.toml) must be installed into their own folder (or zip file) within the mod directory. No exceptions!
Linux Native
- Install love using your distribution's package manager. This is sudo pacman -S love on SteamOS and Arch-based distros, and sudo apt install love on Ubuntu & Debian-based ones.
- Download the latest release for Linux. This will be x86_64-unknown-linux-gnu.tar.gz.
- Open the.tar.gz archive, copy liblovely.so and run_lovely_linux.sh into the game directory. You can navigate to the game's directory by right-clicking the game in Steam, hovering "Manage", and selecting "Browse local files".
- Put one or more mods into the mod directory (NOT the same as the game directory). If you are modding Balatro, this should be ~/.local/share/love/Mods.
- Run the game by executing./run_lovely_linux.sh in the terminal within the game directory (you can copy this file into the directory of choice).
Patches
Note that the patch format is unstable and prone to change until Lovely is out of early development.
Patch files define where and how code injection occurs within the game process. A good (complex) example of this can be found in the Steamodded repo here.
[manifest]
ve
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide. These mods need a community loader first — the bundled readme usually points to its download.