1. When building there appears error messages.
When this doesn’t help write me a eMail!
2. Something after build went wrong / do not work / I see an empty scene.
IMPORTANT: Please use here for building a standalone Platform (Window/Mac/Linux).
At first, when something won’t work as expected with activated Obfuscator that does work with deactivated Obfuscator, open in Unity Editor ‘File->Build Settings…’. On the right you see ‘Development Build’, activate it. Rebuild the game and start it.
If you have an empty scene some MonoBehaviour classes were not correctly obfuscated and so wrong loaded by Unity. You will see one or multiple error messages at the bottom left. Go to step 3.
If you have not an empty scene, got to the point of the Game, where something is missing or went wrong. You will see one or multiple error messages at the bottom left. Go to 3.
3. Find the error source.
If a error Message looks like this: ‘A script behaviour (probably xxxx.yyyy?) has a different serialization layout when loading. (Read ABC bytes but expected XYZ bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?’
You can ignore it. It is not harmful. But if you have more error message, please deactivate in Unity under ‘Window->Obfuscator Pro Settings’ the Security Setting: ‘Make Classes unreadable for Disassembler’.
For other errors, to self solve it or to identify it, so I can help, go through following steps. (If you have no error messages look here again.)
We will deactivate several settings and rebuild to localize the error.
Deactivate successively all security settings and rebuild and start. If theres still an error, go on.
After the security settings do the same with the general settings.
Then with the advanced settings.
While deactivating all settings / features from bottom to top, at some point the error will vanish.
Reactivate the setting / feature that leads to the error. Rebuild. After build, run the game, go to the error. If you see an error message go on. Else please see here again.
In your Running Game, you see the development console and the error message. Press here on ‘Open Log File’ (Image 1).
An file opens called: ‘output_log.txt’. Find here your error messages. Could look like this (Image 2).
The Red marked part is the namespace, the blue one the class name and the green one the Method name. These are mostly the obfuscated names. To find the real name and know where the error is, open in your build directory the file: ‘YourBuildName_ObfuscatorLog.txt’ with an Texteditor or with the Obfuscator Logviewer. Could look like this (Image 3).
Search here for the obfuscated names. Look out that at the left side there is ‘[Info][Rename]’. The blue marked part is the original name. The green one the obfuscated.
So you get something like: ‘FlipWebApps.GameFramework.Scripts.GameStructure.GameItems.Components.GameItemButton.CoinColorCanUnlock’
Open the source code, navigate to your class and method where you localized your the error. Then see please here again. (Perhaps you forgot something?)
That does not help? Then send me an eMail, with the error message you get and the code belonging to it following the steps from above (when possible).
4. Cannot find the errors source.
Send me an eMail, with the error message you get and the code belonging to it following the steps from above (when possible).