I followed the documentation: https://docs.godotengine.org/en/stable/development/compiling/compiling_with_script_encryption_key.html
Problem: I want to export for android with script encryption. I get same errors as on this page. ERROR: open_and_parse: Condition [...bla bla...]
on Android.
Godot version: 3.2.4.beta1
Windows 10
Exact steps I did:
- Created a key with openssl.
- Set
set SCRIPT_AES256_ENCRYPTION_KEY=your_generated_key
- Executed following commands:
scons -j 6 platform=android target=release android_arch=armv7
scons -j 6 platform=android target=release android_arch=arm64v8
cd platform/android/java
.\gradlew generateGodotTemplates
Copied the bin/android_release.apk
to %appdata%\Roaming\Godot\templates\3.2.4.beta1\
scons platform=android target=release_debug
android_arch=armv7 scons platform=android target=release_debug
android_arch=arm64v8 cd platform/android/java
.\gradlew generateGodotTemplates
Copied the bin/android_debug.apk
to %appdata%\Roaming\Godot\templates\3.2.4.beta1\
In Godot:
- Under android export > script, I set the key in the input field and
set export mode to encrypted.
- Under android export > options > Custom Template, I set the debug and
release accordingly to C:/godot/bin/android_debug.apk
and C:/godot/bin/android_release.apk
Then exported to android (and it crashes right after starting the game, it flickers a bit and then crashes). Adb logcat shows same errors as here. Note: it does not crash when exporting normally. Any help?
On the same link (top of the page), it says: Godot is encrypting the scripts during export, but can't read them at runtime. Well, what should I do?