Please note: development of Photon TrueSync & Thunder is ceased and we will not publish any further updates. While existings apps are not affected, we recommend to migrate apps that are still in development.

Manual Installation

Summary

On this tutorial you will learn how to install and uninstall the Thunder library manually on your Unity installation. In an usual case, Thunder can be installed using the simple Wizard inside the package, that verifies the presence of the library and install or update if necessary. This installation script runs once every time you start the Unity Editor.

Unet Code

The core code of Unet can be found on <unity folder>/UnityExtensions/Unity/Networking under 3 DLLs:

  • Editor/UnityEditor.Networking.dll
  • Standalone/UnityEngine.Networking.dll
  • UnityEngine.Networking.dll

These files represents an extension plugin to Unity and add all networking capabilities
used to build multiplayer games.

Thunder Package

After you download the Thunder from Asset store, it will be added several files to your current project. In order to make the library work property, it was necessary to update/modify some parts of the original Unet code to acomodate the bindinds with Photon network.

You can found our versions of the Networking library inside your project by looking at Assets/PhotonThunderPackage/Networking. As you may know, all DLL files on the project folder are automatically loaded by the Unity Editor as it treat these files as plugins, that is why our files has a .thdr extension, to not be loaded and cause conflicts with the already installed Networking code.

Photon Thunder package files
Photon Thunder package files

Manual Installation Process

The installation process can be summarized as backing up the original files and replace with the modified ones. To do so, follow the next steps:

  1. Find your Unity installation folder and the Networking plugin DLLs. Find for <unity folder>/UnityExtensions/Unity/Networking;
  2. Backup all Networking files and save on folder outside the Unity installation:
  • UnityEngine.Networking.dll
  • UnityEngine.Networking.dll.mdb
  • Editor/UnityEditor.Networking.dll
  • Editor/UnityEditor.Networking.dll.mdb
  • Standalone/UnityEngine.Networking.dll
  • Standalone/UnityEngine.Networking.dll.mdb
  1. Close your Unity Editor, this is necessary, because Unity only load DLL files on the startup;
  2. Copy the Thunder Networking DLLs from your project to your Unity Networking folder following the same tree relations, files must be inside the respective <root> , Editor and Standalone folders;
  3. Rename the files to remove the .thdr extension:
  • .dll.thdr → .dll
  • .dll.mdb.thdr → .dll.mdb
  1. Copy the file PhotonThunderVersion.txt to the same Networking folder inside your Unity installation. This is necessary to mark that Thunder is already installed with a specific version.
    Without this file, when you reopen the Unity Editor, the installation script will try to reinstall Thunder.
  • File source: <project>/Assets/PhotonThunderPackage/PhotonThunderVersion.txt
  • File destination: <unity folder>/UnityExtensions/Unity/Networking/PhotonThunderVersion.txt
  1. Reopen Unity Editor, and you should have Thunder working properly.

Manual Uninstall Process

In order to remove Thunder from you Unity Editor follow the next steps:

  1. If you want a complete removal of Thunder, remove all related files from your project:
  2. Folders:
  • <project>/Assets/PhotonThunderPackage
    - <project>/Assets/Demo
  1. Files:
  • <project>/Assets/Plugins/Photon3Unity3D.dll
    - <project>/Assets/Plugins/Photon3Unity3D.xml
    - <project>/Assets/Plugins/Thunder.dll
    - <project>/Assets/Plugins/Thunder.dll.mdb
    - <project>/Assets/Plugins/ThunderEditor.dll
    - <project>/Assets/Plugins/ThunderEditor.dll.mdb
    - <project>/Assets/Resources/PhotonThunderConfig.asset
  1. Close your Unity Editor;
  2. Navigate to: <unity folder>/UnityExtensions/Unity/Networking;
  3. Remove all the following files:
  • PhotonThunderVersion.txt
  • UnityEngine.Networking.dll
  • UnityEngine.Networking.dll.mdb
  • Editor/UnityEditor.Networking.dll
  • Editor/UnityEditor.Networking.dll.mdb
  • Standalone/UnityEngine.Networking.dll
  • Standalone/UnityEngine.Networking.dll.mdb
  1. Put back all previously saved files to the correct locations. Take extra care with the file UnityEngine.Networking.dll[.mdb] files, as they have the same name, but have differences on compile time.
  2. Reopen your Unity Editor. If you open a project with the Thunder code, it will detect that the library is not installed and will try to reinstall it.
Back to top