Sword of the Stars: The Pit is an awesome game by itself, but wouldn't it be cool if you could make your own playable characters and possibly modify the game in other ways? Hopefully, now we can.
Right now this process requires some knowledge of Git and C#. Maybe one of these days I can make it more plug and play:
- Purchase The Pit
- Figure out your install location. Typically it is in one of these two directories:
- C:\Program Files (x86)\Kerberos Productions\The Pit
- C:\Program Files (x86)\Steam\SteamApps\common\The Pit
- Git clone this repo and download it locally.
- Copy your
ThePit.exe
into theoriginal
directory in this installation. - Build and run
ThePit.Generator
. It should produce anotherThePit.exe
in thelib
folder and not generate any exceptions. - Change ContentPath in ThePit.Launcher's App.config file to point to your pit installation (see step 2).
- Build and run
ThePit.Launcher
.
If you see the growling Kerberos logo, you're on your way.
This process was tested on versions 1.2.4 and 1.2.7 of the game but I can't guarantee success. Feel free to file an issue if you run into trouble.
You can see a list of the current mod features here.
It seemed like a fun project to try to create a mod for an awesome game. The secret sauce is the very cool Mono.Cecil project, which allows us to automate the inline editing of IL code (rather than having to run ildasm and manually edit IL code). Basically we decompile the original game code, figure out which classes and methods we need to override in order to inject functionality we want, and then create the hook wrappers. Finally we define some alternate data sources so we don't have to pack up XNB files and can keep things more human readable.
This mod is not affiliated with Kerberos Productions in any way.
Use of this mod is at your own risk with absolutely no warranty. It might break something that neither the mod author(s) nor Kerberos will fix for you. This mod may not work with future versions of the game.
Other than that, feel free to use the source and modify it to work as you see fit.