|
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 |
3 | 3 |
|
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 |
9 | 5 |
|
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 |
13 | 7 |
|
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.  |
| 17 | + |
| 18 | +4. Copy `ddraw.dll` to the `Win32` folder.  |
| 19 | + |
| 20 | +5. In the `Win32` folder, create a folder called `Plugins`.  |
| 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