resolve_method
assertion error for state shortcut due to Dictionary in game_states
#498
Labels
bug
Something isn't working
Describe the bug
When Dialogue Manager starts up, it adds a Dictionary within the
game_states
that corresponds to all project Autoloads.When trying to resolve a method that is available within one of the state shortcuts Autoloads, an assertion error is triggered due to the execution failing on this Dictionary.
Since it will attempt all other state shortcuts afterwards, it will eventually find it, however the assertion failure could be considered annoying.
Affected version
To Reproduce
Expected behavior
No assertion error is raised if the expression fails to run for a single game state. It should however be run if all game states fail to run the expression.
Screenshots
![image](https://private-user-images.githubusercontent.com/31015897/308926233-daea82db-d9d2-43a6-ad2f-adaee87c0263.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzOTY1OTQsIm5iZiI6MTcxOTM5NjI5NCwicGF0aCI6Ii8zMTAxNTg5Ny8zMDg5MjYyMzMtZGFlYTgyZGItZDlkMi00M2E2LWFkMmYtYWRhZWU4N2MwMjYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDEwMDQ1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThlOWM1OWMwNDBlNmM3MWQ3MDAzNmI0NThjNjljMGY4MjBjZTc1YmQ5MmIwNzczZjM3MTc2ODRkODA5N2EyZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eTM7BXBbLNcmbPfRJTI4U-g4Br8GlhVxZ0L_tppOxzk)
The text was updated successfully, but these errors were encountered: