layout |
---|
main |
Page Contents
- TOC {:toc}
This is the main page for the PythonSDK Mod Database. The PythonSDK is an Unreal Engine plugin allowing you to write plugins in Python to interact directly with UE objects. This opens up many new avenues for modding, from simply allowing modifying dynamically generated objects to letting modders run arbitrary game functions whenever they please.
Currently it supports:
- Borderlands 2
- Borderlands: The Pre-Sequel
- Tiny Tina's Assault on Dragon Keep: A Wonderlands One-shot Adventure
If you're a video guide type person, apple1417 made a video guide:
But if you're more of a text guide style person:
-
Download the latest release on Github.
-
Open
PythonSDK.zip
. It should contain a singleBinaries
folder: -
Locate your game's files.
In Steam, this can be done by right-clicking on the game in your library, selecting "Properties," then in the "Local Files" section, clicking "Browse":
The default locations are:
Steam:C:\Program Files (x86)\Steam\steamapps\common\<game>
Epic:C:\Program Files\Epic Games\<game>
-
Copy the
Binaries
folder fromPythonSDK.zip
exactly as it is over your game folder, so it merges with the one there. -
If you had previously installed an older version of the SDK, delete any old files that weren't overwritten by the ones in the latest
PythonSDK.zip
. The release notes will tell you which ones. -
You are done, and may launch the game (if it is running, relaunch it now). You should see a "Mods" menu in the main menu!
-
If the SDK fails to run with the files correctly in place as described above, you may need to download and install Microsoft Visual C++ Redistributable.
PythonSDK does not yet work natively on Linux, but it seems to work well under SteamPlay/Proton and Wine. To load properly, though, Wine needs to be told to allow ddraw.dll
overrides. Simply set the game's launch options (via Properties -> General
) to:
WINEDLLOVERRIDES="ddraw=n,b" %command%
Additionally, the latest SDK releases want the main executable name to be Borderlands2.exe
(or one of the other games as relevant), so doing a symlink/copy for Launcher.exe
won't work. If you want or need to bypass the launcher you can add -NoLauncher
to the launch options after %command%
:
WINEDLLOVERRIDES="ddraw=n,b" %command% -NoLauncher -NoStartupMovies
Installing mods is even simpler than installing the SDK itself.
In order to install SDK mods, all you need to do is:
- Download the mod itself, usually this will be a zip file.
- With the "General" mod selected, press
O
to open the Mods folder.
- Then you can extract the folder from the mod zip file into this Mods folder.
In the root of this new mod folder, there should be an__init__.py
file. Depending on the mod, there might be other files too, in the mod folder, but the__init__.py
should always be there. - Restart your game, and the mod will get loaded.
- Certain mods may have requirements, you can see them by looking at the
Requirements
header. Follow the exact same steps to install these. - More advanced mods could have some extra steps needed to install them, you should always read through the
Description
section of the mod page to make sure that you've installed the mod properly!
If you need further help, join the Borderlands Modding Support Discord to read through FAQs or ask your own questions.