Skip to main content

PyPi Version

modlunky2

Repository for modding interface for Spelunky 2.

Credits

Special thanks to SciresM, Cloppershy, iojonmbnmb, and Dregu for all of the help in making this tool a reality.

Installation

Download the latest version of modlunky2.exe to your Spelunky 2 installation directory.

Usage

Follow the instructions in the Modlunky 2 Wiki.

Disclaimer

You are strongly discouraged from using any modding tools in your actual online Steam installation as to prevent unlocking achievements, corrupting your savefile and cheating in the leaderboards. You should make a copy of your game somewhere else and install Mr. Goldbergs Steam Emulator in the game directory. (TL;DR: Copy the steam_api64.dll from the zip to the offline game directory and create steam_appid.txt with the text 418530 in it.) Also block the modded installation in your firewall. If you break anything using this tool you get to keep both pieces. Do not report modding related bugs to Blitworks.

Development

If you'd like to contribute to modlunky2 here are some steps to setup your environment.

VirtualEnv

While not required, a virtualenv is a nice way to keep this projects dependencies isolated from the rest of your system. This step is optional but recommended

In the root directory you can make a virtualenv. It will be excluded from commits by default

python -m venv venv

Whenever developing the project you'll want to activate the virtualenv in your terminal. This is platform dependent and there are more comprehensive docs available here: https://docs.python.org/3/library/venv.html

:warning: If you're using PowerShell on Windows you might need to run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser. More information on execution policy is available in the link above.

Platform Shell Command to activate virtual environment
POSIX bash/zsh $ source /bin/activate
fish $ source /bin/activate.fish
csh/tcsh $ source /bin/activate.csh
PowerShell Core $ /bin/Activate.ps1
Windows cmd.exe C:> \Scripts\activate.bat
PowerShell PS C:> \Scripts\Activate.ps1

Setup

Once you have your virtual environment setup and activated you'll want to finish setting up the development environment.

> pip install -r requirements.txt
> pip install -r requirements-dev.txt
> python setup.py develop

This will install any dependencies as well as setting up links on your path to your local source files. Once this is done you'll be able to execute the binaries right from your path after any changes to the source without the need to build or install anything. If you add new source files you may have to run python setup.py develop again to make sure they're linked.

Running Locally

modlunky2

Building Distributions

PyPI

python setup.py sdist
python -m twine upload .\dist\modlunky2-$VERSION.tar.gz

EXE

The default pyinstaller from pip seems prone to false detection from antivirus so you need to build your own version per https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html

See: https://stackoverflow.com/a/52054580

pyinstaller.exe modlunky2.spec

Metadata

Release files for modlunky2 0.13.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modlunky2 0.13.4
File Size Uploaded
modlunky2-0.13.4.tar.gz 1.3 MB Details

Release files / modlunky2-0.13.4.tar.gz

Download URL modlunky2-0.13.4.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
64d090b37b6100e68b420e1595b1ec35779bb2addbada3c8c00d668c1bbd3a9a
BLAKE2b-256 checksum
How to use checksums
8e3f9e55716bf593d0b486edd578b971bad2eb34b6ab297fa027a8bd8c3c2365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.13.4 This release

1 release file

0.12.2

1 release file

0.12.0

1 release file

0.10.3

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.2

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page