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
FactInterface
withParleyFactInterface
. - Within each Fact definition, rename the
execute
method toevaluate
and adjust the method contract by changing the type of thectx
parameter withParleyContext
. - Within each Action definition, rename the
execute
method torun
and adjust the method contract by changing the type of thectx
parameter withParleyContext
. - Replace
Parley.start_dialogue
withParley.run_dialogue
and ensure thectx
parameter is of type:ParleyContext
. - Replace any interface of
ParleyDialogueSequenceAst.process_next
withParleyDialogueSequenceAst.next
and adjust the interface as appropriate.