Modding/Assembly-UnityScript.dll

In Yandere-Simulator you can mod the game's files to create custom content and other cool things that would not usually be in the game. This page will provide you with tutorials on the most basic ways of modding the game.

This page is allowed to be edited as long as your information is correct.

If you have any questions, ask it in the comment section of this page!

Compatibility
Whenever YandereDev releases a new build of the game, the Assembly-UnityScript.dll file gets updated, which means that you can not re-use an assembly file from the older builds of the game, however, some parts of the code can be re-used.

Before You Start...
Required programs

In order to start modding the Assembly-UnityScript.dll file, you'll need an assembly browser and decompiler and a plugin that allows the editing of assemblies. Also, for easier editing, it's recommended that you use Notepad++.

Here are some handy links:
'Note 1 - the wiki is not affiliated with these websites or any programs mentioned. They are a third party, and we don't have control over them. Use at your own risk!'

Note 2 - all of the software mentioned on this page and listed in this section is available for free.

http://ilspy.net/ - assembly browser and decompiler (click on the "Download Binaries" button to download, and extract the contents of the downloaded zip file into a separate folder)

https://github.com/sailro/Reflexil/releases - assembly editor (works as a plugin) (download the "reflexil.for.ILSpy.2.1.AIO.bin.zip", and extract the "Reflexil.ILSpy.Plugin.dll" file into the folder that contains the extracted ILSpy files).

Tip - before starting modding your game, BACKUP your files!

Getting Started
Note - because the Assembly-UnityScript.dll file is dependant on the rest of the game's files, you must edit the assembly file that is located in the game's "Managed" folder, NOT A BACK-UP.

First, launch ILSpy, remove all the files from the left side of the interface by selecting the first file in the list and pressing the "delete" key untill it becomes empty, and then open the Assembly-UnityScript.dll file that is in your game's "Managed" folder of Yandere Simulator. You don't have to open the rest of the game's files.

So, now that all the preparations are done, let's begin!

Modding: Additional Info
'Note - this is the first version of the tutorial. It might be updated in the future.'

By following this tutorial, you will learn how to modify the students' additional info.

Location:
To edit additional info, you need to follow these directions in ILSpy: Assembly-UnityScript ==> StudentInfoScript ==> UpdateAdditionalInfo(int) : void.

Tutorial:

 * 1) Starting after the very first bracket, select everything except the very last bracket, copy the selection, and paste it into any text editor
 * Now, once you've pasted the code into your text editor, there are two ways to edit it:
 * 1) *A) Edit the already existing info that is assigned to a specified StudentID (Pretty self-explanatory, just replace the default text with something else you want).
 * 2) *B) Add new info for students who don't have one. (Copy and paste a part of code that assigns info to a specified StudentID, change the StudentID to the desired one (Student ID's can be found in the Students.json file), and change the info text to something else you want).
 * 3) Once you've edited the code, copy it again.
 * 4) In ILSpy, click on the cog icon (top-left corner of the screen), and a table will appear. Right-click on it and select "Replace all with code", and a new window will open up.
 * 5) In the new window, you will see two brackets. Press the "enter" key after the first bracket to create empty space in between them, and paste the edited code in it.
 * Now, in order to successfully compile the edited code, open the "Imports" region, select all of its contents (Including the "#region " Imports "" and "#endregion" parts), and replace all of it with the edited "Imports" section (see below)
 * 1) To compile the code, make sure that your "Compiler profile" is set to "Unity/SilverLight", and then click on the "Compile" button. Once the compilation is finished, click "Ok", and your code is ready!
 * 2) Once you've compiled the code, right-click on the "UpdateAdditionalInfo(int) : void" and select "Update ILSpy object model".
 * 3) The last step is to properly save the code. To do so, right click on the "Assembly-UnityScript" in the left side of the interface, select "Save as...", and replace the "Assembly-UnityScript.dll" file in the game's "Managed" folder with the new assembly.
 * 4) You are now done! Test your mod to see if everything works properly.

Imports:
using System; using System.Collections.Generic; using System.Text; using UnityEngine; using UnityScript.Lang;
 * 1) region " Imports "
 * 1) endregion

Modding: Hair and Eye Colours
Comming soon...