inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.14k stars 494 forks source link

HELP: Xamarin/Android: Thread passing divert as parameter throws error #728

Closed acxsasx closed 2 years ago

acxsasx commented 2 years ago

The attached ink file works just fine running on PC. All choices work as expected.

When running it either on the Android emulator or on an Android device, the options that are ink Threads with a parameter fail. The CallStack.Element does not have the temporaryVariables populated and results in the error 'Tried to divert using a target from a variable that could not be found (go_back_to)'

The other choices run just fine on Android.

VS 2019 16.11.6 Android 10.0 - API 29 Xamarin 16.11.000.190 Xamarin.Android.SDK 12.0.0.3

inktesting.txt

acxsasx commented 2 years ago

Don't use ChoosePathString. Use ChooseChoiceIndex.