Skip to content
samfun123 edited this page Jan 19, 2020 · 4 revisions

Building Twitch Plays

IMPORTANT: If the TP project is opened in Unity before the dll file was created in the project, it can cause the scripts to break.

Make sure you follow the steps below in order for the reason mentioned above.

  1. Build the DLL
    1. Open the project TwitchPlaysAssembly project in Visual Studio
    2. Build the DLL using Release mode
    3. Wait until the project is finished building
      1. You may get an error message about a file not being copied. You will create the correct folder in the next step.
      2. If the build fails, you might need to go into the TwitchPlaysAssembly.csproj file and change both instances of <LangVersion>latest</LangVersion> to <LangVersion>preview</LangVersion>.
  2. Build the asset bundle
    1. Open the project in Unity
    2. Click "Keep Talking ModKit" and then build the asset bundle
    3. You should be able to launch the game now and test the mod if the asset bundle was built successfully. Check the purple TP holdable and make sure it doesn't say "Something's not right."

Something's not right

You should follow this section only if the purple TP holdable told you to.

  1. Close Unity.
  2. You will have to restore TwitchPlaysAssembly.dll.meta.
    1. If using git desktop, right click on the deleted .meta file and click on Discard changes.
    2. If using git commandline, Enter the following: git checkout Assets/Plugins/Managed/TwitchPlaysAssembly.dll.meta
  3. Follow the instructions in the Building Twitch Plays section above.
  4. Run Keep Talking and Nobody Explodes. Hopefully you won't see the instructions anymore, and if you are in the default setup room, you should no longer see the switch on the top of the TP holdable.