Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

While I was playing game, when I travel to certain place, game crash and show error, I am stuck in this situation and can't ravel anywhere rn ;-;

Here is the error code:

java.lang.NullPointerException
at com.majalis.encounter.EncounterReaderImpl.loadScript(EncounterReaderImpl.java:37)
at com.majalis.encounter.EncounterBuilder$Branch.textScene(EncounterBuilder.java:216)
at com.majalis.encounter.EncounterCode.getEncounter(EncounterCode.java:1253)
at com.majalis.encounter.EncounterFactory.getEncounter(EncounterFactory.java:38)
at com.majalis.screens.ScreenFactoryImpl.getEncounter(ScreenFactoryImpl.java:229)
at com.majalis.screens.ScreenFactoryImpl.getCurrentContextScreen(ScreenFactoryImpl.java:278)
at com.majalis.screens.ScreenFactoryImpl.getScreen(ScreenFactoryImpl.java:137)
at com.majalis.screens.AbstractScreen.switchScreen(AbstractScreen.java:209)
at com.majalis.screens.AbstractScreen$1.act(AbstractScreen.java:73)
at com.badlogic.gdx.scenes.scene2d.actions.SequenceAction.act(SequenceAction.java:65)
at com.badlogic.gdx.scenes.scene2d.Actor.act(Actor.java:96)
at com.badlogic.gdx.scenes.scene2d.Group.act(Group.java:46)
at com.badlogic.gdx.scenes.scene2d.Stage.act(Stage.java:221)
at com.majalis.screens.AbstractScreen.render(AbstractScreen.java:322)
at com.majalis.screens.WorldMapScreen.render(WorldMapScreen.java:1126)
at com.badlogic.gdx.Game.render(Game.java:46)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:225)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:126)

This issue may be fixed in the next public version already, but one thing you can do is open the save file (in the .toa-data folder) and edit the "context" variable from "ENCOUNTER" to "WORLD_MAP". If you note what it says next to "encounterCode" it'd be helpful, so we know which encounter caused the crash. Hope that helps, and thanks!