Skip to content

egoarka/PythonSDK

This branch is 6 commits ahead of, 6 commits behind bl-sdk/PythonSDK:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

adede80 · Jul 15, 2022
Nov 11, 2021
Apr 21, 2019
Jul 15, 2022
May 9, 2018
Jul 10, 2022
Jul 15, 2022
Apr 21, 2019
Aug 5, 2019
Aug 7, 2020
Sep 12, 2019
Jul 15, 2022
Jul 15, 2022

Repository files navigation

UnrealEngine PythonSDK

Support Discord Developer Discord

An UnrealEngine Plugin enabling using Python to write plugins that interact directly with UE objects

List of compatible games

  • Borderlands 2
  • Borderlands: The Pre-Sequel
  • Tiny Tina’s Assault on Dragon Keep: A Wonderlands One-shot Adventure

Linux (SteamPlay/Proton and Wine)

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. Additionally, the latest SDK release (as of February 29, 2020) wants the main executable name to be Borderlands2.exe, so the common workaround of a Launcher.exe symlink/copy won't do the trick. Instead, set the game's launch options (via Properties -> General) to:

WINEDLLOVERRIDES="ddraw=n,b" bash -c 'exec "${@/Launcher.exe/Borderlands2.exe}"' -- %command%

Or, for TPS:

WINEDLLOVERRIDES="ddraw=n,b" bash -c 'exec "${@/Launcher.exe/BorderlandsPreSequel.exe}"' -- %command%

Note that using WINEDLLOVERRIDES for ddraw isn't supported by the Wine developers, so if you experience problems with the game while using this method, please don't ask the WineHQ team for assistance.

Compile with MinGW

requirements: python3.7.5 headers & python37.lib (win x32)

build.sh

Build with Docker

docker build . -t sdk:env
docker run --rm -it -v $PWD:/var/sdk sdk:env

The built ddraw.dll will be in current directory.

About

Borderlands 2 PythonSDK

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 89.7%
  • C 8.5%
  • Python 1.8%