Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Fix 20 Question Game State from crashing setup when installed #72

Open
2 tasks done
Aevyz opened this issue Aug 13, 2018 · 2 comments
Open
2 tasks done

Fix 20 Question Game State from crashing setup when installed #72

Aevyz opened this issue Aug 13, 2018 · 2 comments
Assignees
Labels

Comments

@Aevyz
Copy link
Contributor

Aevyz commented Aug 13, 2018

Specifically this line appears not to work w/o Internet and crashes the whole setup.

private Akiwrapper aw = new AkiwrapperBuilder().setFilterProfanity(true).build();

This leads to:

Exception in thread "main" java.lang.RuntimeException: State with identifier GamingTwentyQuestionsState is missing!
	at roboy.dialog.DialogStateMachine.parseAndSetTransitionsAndFallbacks(DialogStateMachine.java:392)
	at roboy.dialog.DialogStateMachine.loadFromJSON(DialogStateMachine.java:315)
	at roboy.dialog.DialogStateMachine.loadFromFile(DialogStateMachine.java:262)
	at roboy.dialog.Conversation.<init>(Conversation.java:61)
	at roboy.dialog.ConversationManager.createConversation(ConversationManager.java:222)
	at roboy.dialog.ConversationManager.main(ConversationManager.java:118)

Things to Fix:

  • Launching State Exception No need for exception due to refactor
  • Optional: If connection lost, quit game Not possible
@Aevyz
Copy link
Contributor Author

Aevyz commented Sep 17, 2018

Fixed in #85

@markozajc
Copy link

Akiwrapper is a REST API wrapper library (thanks for using it by the way!) that requires internet connection to communicate with Akinator's servers, which can't be accessed without Internet access. Building a new instance of Akiwrapper also creates a new game session, which may throw an exception in that case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants