Skip to content

egoarka/PythonSDK

 
 

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%