On this page
Upgrading
This guide covers how to upgrade Parley. To use this guide properly, navigate to the version from which you are upgrading and work your way upwards. Unless stated otherwise, it is mandatory to follow every upgrade step from the version your are on.
Prerequisites
- Parley is installed and running in your Godot Editor.
Version 1.x.x to 2.x.x
- Download and install Parley
v2.x.x. - Replace of extensions of
FactInterfacewithParleyFactInterface. - Within each Fact definition, rename the
executemethod toevaluateand adjust the method contract by changing the type of thectxparameter withParleyContext. - Within each Action definition, rename the
executemethod torunand adjust the method contract by changing the type of thectxparameter withParleyContext. - Replace
Parley.start_dialoguewithParley.run_dialogueand ensure thectxparameter is of type:ParleyContext. - Replace any interface of
ParleyDialogueSequenceAst.process_nextwithParleyDialogueSequenceAst.nextand adjust the interface as appropriate.