-
Notifications
You must be signed in to change notification settings - Fork 2
3.1 Compiling the source code
G.W. Mensink edited this page Jan 28, 2015
·
4 revisions
In this page we will describe how you can compile the source code of the SurvivalKit plugin.
##1. Deobfuscating 7 days to die binaries
In order to compile your source code you need to deobfuscate your 7 Days to Die binary.
Information on deobfuscating has been moved to this page.
##2. Compiling the SurvivalKit source code.
We assume you are familiar with compiling C# projects using Visual Studio or MonoDevelop.
The code should compile without any errors if all assemblies are present.
- Check out the trunk of the SurvivalKit. In this guide we will use this folder: "_D:\deobfuscate_"
- Navigate to the folder containing the deobfuscated assembly (See step 1)
- Copy the following assemblies: "Mono.Cecil.dll", "Mono.Cecil.Rocks.dll", "Assembly-CSharp.deobf.dll"
- Paste the copied assemblies to "_D:\deobfuscate\Assemblies_".
- Navigate to the following folder: "_{your-7days-to-die-folder}\7DaysToDie_Data\Managed_".
- Copy the following assemblies: "Assembly-UnityScript-firstpass.dll", "System.Core.dll", "UnityEngine.dll", "mscorlib.dll", "LogLibrary.dll"
- Paste the copied assemblies to "_D:\deobfuscate\Assemblies_".
- Rename "Assembly-CSharp.deobf.dll" to "Assembly-CSharp.dll"
Now you should be able to open the solution and build the projects.
Important note: We strongly recommend using the "mscorlib.dll" assembly from the managed folder.
This way you will prevent compatibility issues with versions installed on your system.
##3. Optional : Building the SurvivalKit documentation.
- Install the Sandcastle Help File Builder and start the "Sandcastle Help File Builder GUI".
- In the File menu, select Open Project and navigate to the "HelpProj.shfbproj" file.
- In the Documentation menu, select Build Project.
While building, some warnings of missing types in other assemblies may occur but you can ignore these. Once finished, you should see "Build completed successfully" in the last line.