unhappychoice / ReplayMod

Minecraft ReplayMod
https://www.curseforge.com/minecraft/mc-mods/replay-mod-for-forge
GNU General Public License v3.0
37 stars 15 forks source link

Loading the replay mod gives a blank screen. #1

Closed thatdude69420 closed 3 years ago

thatdude69420 commented 3 years ago

Hi Mr LeoCraft,

I am on 1.16.5 and the replay mod is working whilst I am in-game, as it is recording and configurable. It is even showing up in the replay folder on the main menu. But when I go to load the actual replay file, the screen does not display anything. It just the blank minecraft background. (like when you are loading into a world; that's the background.) The game is not crashing. It's just staying on the blank background; so I would have to alt-tab to end the minecraft. Any tips?

I am not knowledgeable on programming or anything.

unhappychoice commented 3 years ago

please upload the screenshot and logs/latest.log file!

thatdude69420 commented 3 years ago

Good day Sir,

Please let me know if you need more

Screenshot_1 Screenshot_2

latest.log

unhappychoice commented 3 years ago

This problem is actually of Valhelsia Structure Mod. (ReplayMod can handle it but it's a bit unnatural.

Ref: https://github.com/ValhelsiaTeam/Valhelsia-Structures/issues/50

Latest source of the mod seems not contain the problem but it's not released. I actually have the same problem and I solved it by building the .jar file from the latest source on my own. I paste the jar file but you'd better to build jar by yourself or wait the next release of the mod.

quoted from the latest.log

[29Apr2021 20:43:10.338] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]: java.lang.ClassCastException: net.minecraft.world.biome.Biome$Category cannot be cast to java.lang.String
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at com.stal111.valhelsia_structures.config.StructureGenConfig.validateBiomeCategory(StructureGenConfig.java:142)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.MatchOps$1MatchSink.accept(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.Spliterators$ArraySpliterator.tryAdvance(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
[29Apr2021 20:43:10.339] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.stream.ReferencePipeline.allMatch(Unknown Source)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec$Builder.lambda$defineList$5(ForgeConfigSpec.java:368)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec$ValueSpec.test(ForgeConfigSpec.java:783)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec.correct(ForgeConfigSpec.java:222)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec.correct(ForgeConfigSpec.java:189)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec.correct(ForgeConfigSpec.java:189)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec.isCorrect(ForgeConfigSpec.java:146)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.common.ForgeConfigSpec.setConfig(ForgeConfigSpec.java:88)
[29Apr2021 20:43:10.340] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.fml.config.ModConfig.setConfigData(ModConfig.java:86)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.fml.config.ConfigTracker.lambda$loadDefaultServerConfigs$6(ConfigTracker.java:132)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.lang.Iterable.forEach(Unknown Source)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.util.Collections$SynchronizedCollection.forEach(Unknown Source)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.fml.config.ConfigTracker.loadDefaultServerConfigs(ConfigTracker.java:129)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraftforge.fml.network.NetworkHooks.handleClientLoginSuccess(NetworkHooks.java:145)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.client.network.login.ClientLoginNetHandler.func_147390_a(ClientLoginNetHandler.java:118)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.network.login.server.SLoginSuccessPacket.func_148833_a(SourceFile:43)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.network.login.server.SLoginSuccessPacket.func_148833_a(SourceFile:12)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.network.NetworkManager.func_197664_a(NetworkManager.java:148)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:138)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:49)
[29Apr2021 20:43:10.341] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at com.replaymod.replay.FullReplaySender.channelRead(FullReplaySender.java:398)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at com.replaymod.replay.FullReplaySender$2.run(FullReplaySender.java:946)
[29Apr2021 20:43:10.342] [replaymod-async-sender/INFO] [STDERR/]: [com.replaymod.replay.ReplayHandler$1:exceptionCaught:257]:   at java.lang.Thread.run(Unknown Source)
unhappychoice commented 3 years ago

valhelsia_structures-16.0.5.zip

thatdude69420 commented 3 years ago

Good day Mr unhappychoice,

So I tried using your valhesia's structure jar file; but it ends up crashing the minecraft (I even installed the valhesia's core mod as well). So I decided to completely remove both vahesia's structure and the core. However, when I load the replay file it does show that its loading terrain, but its just stuck on that. I am hearing ambient sounds and music whilst I am in this loading screen. Also, at the top left corner of the screenshot (not too sure why it isn't showing up in the screenshot) it says: Minecraft 1.16.5 Multiplayer (3rd party server) when I am only playing singleplayer. I don't know if that's intended?

Screenshot_2

latest.log

TLDR: So the changes are: I am seeing the words "loading terrain" versus it being completely blank last time. And I tried placing your valhesia's structure jar file in the mod folder (then needed the core mod) but ended up crashing the minecraft.

Finally, you indicated to build the jar file. But I don't know how to. I don't know much programming. Can you elaborate a little more? I am very doubtful that an updated valhesia's structure version would drop anytime soon.

Your willingness to help is greatly appreciated. I eagerly await some good news.

unhappychoice commented 3 years ago

https://github.com/mezz/JustEnoughItems/issues/2233

unhappychoice commented 3 years ago

You can find JEI causes another problem in the latest.log. I need more investigation to decide whether ReplayMod should handle this or not.

But you can try other JEI versions for temporary fix ( I think a little old one is better.

java.lang.IllegalStateException: A JEI API method is being called by another mod from the wrong thread:
Thread[replaymod-async-sender,10,main]
It must be called on the main thread by using Minecraft.addScheduledTask.
    at mezz.jei.util.ErrorUtil.assertMainThread(ErrorUtil.java:257) ~[jei:7.6.4.87]
    at mezz.jei.recipes.RecipeManager.unhideRecipe(RecipeManager.java:308) ~[jei:7.6.4.87]
    at mezz.jei.recipes.RecipeManager.addRecipe(RecipeManager.java:148) ~[jei:7.6.4.87]
    at mezz.jei.recipes.RecipeManager.addRecipeTyped(RecipeManager.java:105) ~[jei:7.6.4.87]
    at mezz.jei.recipes.RecipeManager.addRecipes(RecipeManager.java:98) ~[jei:7.6.4.87]
    at mezz.jei.recipes.RecipeManager.<init>(RecipeManager.java:90) ~[jei:7.6.4.87]
    at mezz.jei.load.PluginLoader.getRecipeManager(PluginLoader.java:142) ~[jei:7.6.4.87]
    at mezz.jei.startup.JeiStarter.start(JeiStarter.java:74) ~[jei:7.6.4.87]
    at mezz.jei.startup.ClientLifecycleHandler.startJEI(ClientLifecycleHandler.java:141) ~[jei:7.6.4.87]
    at mezz.jei.startup.ClientLifecycleHandler.setupJEI(ClientLifecycleHandler.java:134) ~[jei:7.6.4.87]
    at mezz.jei.startup.ClientLifecycleHandler.lambda$new$2(ClientLifecycleHandler.java:100) ~[jei:7.6.4.87]
    at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?]
    at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?]
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) [eventbus-4.0.0.jar:?]
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) [eventbus-4.0.0.jar:?]
    at net.minecraft.tags.ITagCollectionSupplier.func_242212_e(ITagCollectionSupplier.java:25) [?:?]
    at net.minecraft.client.network.play.ClientPlayNetHandler.handler$zef000$replayMod_ignoreHandshakeConnectionClose(ClientPlayNetHandler.java:2784) [?:?]
    at net.minecraft.client.network.play.ClientPlayNetHandler.func_199723_a(ClientPlayNetHandler.java) [?:?]
    at net.minecraft.network.play.server.STagsListPacket.func_148833_a(SourceFile:31) [?:?]
    at net.minecraft.network.play.server.STagsListPacket.func_148833_a(SourceFile:9) [?:?]
    at net.minecraft.network.NetworkManager.func_197664_a(NetworkManager.java:148) [?:?]
    at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:138) [?:?]
    at net.minecraft.network.NetworkManager.channelRead0(NetworkManager.java:49) [?:?]
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [netty-all-4.1.25.Final.jar:4.1.25.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [netty-all-4.1.25.Final.jar:4.1.25.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [netty-all-4.1.25.Final.jar:4.1.25.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [netty-all-4.1.25.Final.jar:4.1.25.Final]
    at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) [netty-all-4.1.25.Final.jar:4.1.25.Final]
    at com.replaymod.replay.FullReplaySender.channelRead(FullReplaySender.java:398) [replaymod:?]
    at com.replaymod.replay.FullReplaySender$2.run(FullReplaySender.java:946) [replaymod:?]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_291]
thatdude69420 commented 3 years ago

Hey unhappychoice,

So I removed jei and it actually works. I am surprised!! Its strange because even though I removed jei, the jei hud shows up in game still. Either way thank you so much for the assistance. But let me ask you something. Once I add more mods to my minecraft; there is a chance with each mod, to break the replay mod again right? So I'll always have to be checking the log file to see which mod is breaking it?

I presume that you developed this mod to shoot your youtube videos right. And once it works for you, you'll see no reason to update to fix any bugs right? If so, can you recommend like a youtube video of the sort so I'll be able to fix issues without bothering you?

And once again, thank you.

unhappychoice commented 3 years ago

Its strange because even though I removed jei, the jei hud shows up in game still

That's because some mods include whole JEI dependency ( It's not accurate / correct way, I think

Once I add more mods to my minecraft; there is a chance with each mod, to break the replay mod again right?

Yes. Right now, ReplayMod emulates vanilla server to replay recorded data even it's not the vanilla environment. And I think most of mods don't assume that, of course, then crash, make a bug, freeze, etc.

So I'll always have to be checking the log file to see which mod is breaking it?

Yes. To prevent that, we need to do something like

But these need much time and cost. So, I need to be careful to decide something about that.

I presume that you developed this mod to shoot your youtube videos right

That's true.

And once it works for you, you'll see no reason to update to fix any bugs right?

Not any. If it's easy or critical, I will fix that. ( It depends on the priority

If so, can you recommend like a youtube video of the sort so I'll be able to fix issues without bothering you?

Yes, I can. But fixing the problems by coding is better in most cases, so it depends

And once again, thank you.

I'm glad I could help you!

thatdude69420 commented 3 years ago

Thank you for your reply. I wish you continued success.

thatdude69420 commented 3 years ago

Hi Mr unhappychoice,

Can you look at this log file and tell which mod is conflicting with epic fight mod? I really wanna keep the epic fight mod but I don't know which mode to delete. I am having no problems when epic fight mod is not used.

I am not getting any replies on the official mod page and you're the only one I know that can read this. Please?

I removed the replaymod to see if it'll work but still.

latest.log

unhappychoice commented 3 years ago

https://github.com/Yesssssman/epicfightmod/issues/245 It seems 👆and it's purely the bug of the epic fight. So, there's nothing ReplayMod can do.

thatdude69420 commented 3 years ago

thanks leo. great videos btw! will continue to support. my name is body mind zone on youtube.

thisismynameepic commented 3 years ago

i am having a problem trying to run this on a modpack on 1.16.5