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
ParleyFactInterfacewithParleyFactInterface. - Within each Fact definition, add a method matching the
evaluateParleyFactInterfacemethod contract. - Within each Fact definition, remove the
executemethod as this is no longer used. - Within each Action definition, add a method matching the
runParleyActionInterfacemethod contract. - Within each Action definition, remove the
executemethod as this is no longer used. - 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.