Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

Commit 0e8b04d

Browse files
authored
Steal readme from mopi
1 parent 60982b0 commit 0e8b04d

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

README.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,29 @@
1-
# BL2-SDK
2-
Borderlands 2 tools for creating and loading custom plugins
1+
# BL2 PythonSDK
2+
A BL2 Plugin enabling using Python to write plugins that interact directly with BL2 objects
33

4-
* Rename existing binkw32.dll to binkw23.dll
5-
* Copy new binkw32.dll to Win32 folder
6-
* Create a folder called `plugins` in the binaries folder
7-
* Copy the directory `lua/include` into the new `plugins` directory
8-
* Place scripts that you want to run in `binaries/Win32/lua/`
4+
Based off of Borderlands2SDK by McSimp, drmalc's bl2monitor, TheFeckless' UE3 SDK Generator, zeroKilo's ProxyDllMaker, Erik JS' ME1 ASI Loader, and more
95

10-
You'll need to manually enable the console in the binary ATM.
11-
`l <lua code>` runs arbitrary lua code.
12-
`lo <lua file>` runs arbitrary lua files from `binaries/Win32/lua/`.
6+
## Installation
137

14-
Based off of Borderlands2SDK by McSimp, drmalc's bl2monitor, TheFeckless' UE3 SDK Generator, zeroKilo's ProxyDllMaker, Erik JS' ME1 ASI Loader, and more
8+
Begin by [downloading the latest version of `PythonSDK.zip` here](https://github.com/Matt-Hurd/BL2-SDK/releases).
9+
10+
Your game must be hexedited for mods to be able to make changes in game. If you have not done this previously, [Borderlands Community Mod Manager](https://github.com/BLCM/BLCMods/wiki/Borderlands-Community-Mod-Manager) will do it for you.
11+
12+
For PythonSDK to be able to interact with the game, you must add a few things to the game's Win32 folder. If you already have PluginLoader installed, you are all set to go and may skip ahead to Step 6.
13+
14+
1. Quit the game if it is running.
15+
2. [Download the latest version of `ddraw.dll` (A.K.A. PluginLoader).](https://github.com/c0dycode/BorderlandsPluginLoader/releases)
16+
3. Locate the `Win32` folder within your game's `Binaries` folder. ![Win32 folder](https://i.imgur.com/t6OI06l.png)
17+
18+
4. Copy `ddraw.dll` to the `Win32` folder. ![ddrawl.dll](https://i.imgur.com/FHfiSqg.png)
19+
20+
5. In the `Win32` folder, create a folder called `Plugins`. ![Plugins folder](https://i.imgur.com/CDdoKDs.png)
21+
22+
6. Open the `PythonSDK.zip` file to view its contents.
23+
24+
7. Extract all of the files to the `Plugins` folder you created.
25+
26+
## Usage
27+
28+
`py <python code>` runs arbitrary python code.
29+
`pyexec <python file>` runs arbitrary python files from `binaries/Win32/Plugins/Python/`.

0 commit comments

Comments
 (0)