Error when save a fresh quest and then reload Minecraft
cyberpunkbln opened this issue ยท 0 comments
Hello,
when i start with an empty config/hqm directory all is fine, but when i make an Quest and make reputations, and save and reload Minecraft then this error appears:
Minecraft: 1.16.4
Forge: 35.2.0
HQM: HQM-1.16.2+5.5.4-forge.jar
[27Nov2020 23:07:50.917] [modloading-worker-3/INFO] [Hardcore Questing Mode/]: [HQM] Loading Quest Line, with 0 temp paths. ()
[27Nov2020 23:07:50.965] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Loaded mod instance forge of type net.minecraftforge.common.ForgeMod
[27Nov2020 23:07:50.966] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Injecting Automatic event subscribers for forge
[27Nov2020 23:07:50.966] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.AutomaticEventSubscriber/LOADING]: Attempting to inject @EventBusSubscriber classes into the eventbus for forge
[27Nov2020 23:07:50.966] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.AutomaticEventSubscriber/LOADING]: Auto-subscribing net.minecraftforge.client.model.ModelDataManager to FORGE
[27Nov2020 23:07:50.968] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Completed Automatic event subscribers for forge
[27Nov2020 23:07:50.968] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Firing event for modid forge : FMLConstructModEvent
[27Nov2020 23:07:50.968] [modloading-worker-4/DEBUG] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Fired event for modid forge : FMLConstructModEvent
[27Nov2020 23:07:51.156] [modloading-worker-3/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Failed to create mod instance. ModID: hardcorequesting, class hardcorequesting.forge.HardcoreQuestingForge
java.lang.ClassCastException: hardcorequesting.common.forge.bag.GroupTier cannot be cast to hardcorequesting.common.forge.reputation.Reputation
at hardcorequesting.common.forge.reputation.ReputationManager$$Lambda$3244/563572225.accept(Unknown Source) ~[?:?]
at java.util.ArrayList.forEach(ArrayList.java:1249) ~[?:1.8.0_51]
at hardcorequesting.common.forge.reputation.ReputationManager.lambda$loadFromString$1(ReputationManager.java:65) ~[?:?]
at hardcorequesting.common.forge.reputation.ReputationManager$$Lambda$3243/1305852000.accept(Unknown Source) ~[?:?]
at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_51]
at hardcorequesting.common.forge.reputation.ReputationManager.loadFromString(ReputationManager.java:65) ~[?:?]
at hardcorequesting.common.forge.quests.SimpleSerializable$$Lambda$3237/1391970169.accept(Unknown Source) ~[?:?]
at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_51]
at hardcorequesting.common.forge.quests.SimpleSerializable.load(SimpleSerializable.java:36) ~[?:?]
at hardcorequesting.common.forge.quests.QuestLine.loadAll(QuestLine.java:185) ~[?:?]
at hardcorequesting.common.forge.HardcoreQuestingCore.initialize(HardcoreQuestingCore.java:57) ~[?:?]
at hardcorequesting.forge.HardcoreQuestingForge.<init>(HardcoreQuestingForge.java:93) ~[?:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_51]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_51]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_51]
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[?:1.8.0_51]
at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_51]
at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:81) [?:35.1]
at net.minecraftforge.fml.javafmlmod.FMLModContainer$$Lambda$3063/1351247295.run(Unknown Source) [?:35.1]
at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:120) [?:?]
at net.minecraftforge.fml.ModContainer$$Lambda$3082/939829672.run(Unknown Source) [?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1618) [?:1.8.0_51]
at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1610) [?:1.8.0_51]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_51]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_51]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) [?:1.8.0_51]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_51]
When i only make quests without using the reputation system, all is fine? bzw whein i delete the reputation.json then all is fine.
thx
Edit: After a few debugging, i can say the reputations.json is the Problem. I think the reputions.json will not be properly saved with the imgame editor, the reputations tiers are missing.
Have anybody an example reputations.json or an hint to fix it before a bugfix will come?