CyclopsMC / CyclopsCore

Minecraft library mod for EvilCraft, Integrated Dynamics and others.
http://cyclopsmc.github.io/CyclopsCore/
MIT License
18 stars 30 forks source link

[1.21.1-Neo] Instant disconnect upon trying to join server. (org.cyclops.cyclopscore.helper.RecipeSerializerHelpers.writeItemStackOrItemStackIngredientChance(RecipeSerializerHelpers) #191

Closed Gbergz closed 22 hours ago

Gbergz commented 2 days ago

Issue type:


Short description:

Instant disconnect when joining server all of a sudden. Logs point to CyclopsCore so I'll report here see what comes of it. ss1

Steps to reproduce the problem:

  1. Attempt to join server.
  2. Instant disconnect.

ss

Expected behaviour:

That server is joinable without disconnect.


Versions:

Log file:

https://gist.githubusercontent.com/Gbergz/1e59c6e65ace4b9b30c973c1085602c5/raw/de3dd3f649ef53a9d46c205d6581f76a325f1dfa/gistfile1.txt

EDIT:

After some digging I found out that removing Integrated Dynamics causes this issue to disappear. And re-adding it makes issue appear again. So something around Integrated Dynamics.

Versions for integrated mods: IntegratedDynamics v1.23.5 IntegratedCrafting v1.1.10 IntegratedTerminals v1.5.2 IntegratedTunnels v1.8.28

rubensworks commented 2 days ago

Thanks for reporting!

rubensworks commented 1 day ago

Note to self: use ItemStack codecs that accept empty in read and write: https://github.com/CyclopsMC/CyclopsCore/blob/master-1.21/loader-neoforge/src/main/java/org/cyclops/cyclopscore/recipe/ItemStackFromIngredient.java#L79-L100

Just weird that this hasn't happened before. Probably indicates broken/custom recipes in a modpack.

GitHub
CyclopsCore/loader-neoforge/src/main/java/org/cyclops/cyclopscore/recipe/ItemStackFromIngredient.java at master-1.21 · CyclopsMC/CyclopsCore
Minecraft library mod for EvilCraft, Integrated Dynamics and others. - CyclopsMC/CyclopsCore
rubensworks commented 22 hours ago

I'll push a fix which should fix your problem, but there's a small chance it may not (since I wasn't able to reproduce the problem). Once you've updated to the new version, and the problem should still occur for you, please let me know.

Gbergz commented 21 hours ago

Tried just now and unfortunately the issue persists on v1.23.6. Here's the servers latest.log again: File: latest.log Or link: https://gist.githubusercontent.com/Gbergz/4aeecfe6f16992d7456ffb8ed9e95d82/raw/91b3f51b59b87307f4304eb04aec66529b6b2afb/gistfile1.txt

rubensworks commented 20 hours ago

Can you reproduce the problem without any other mods installed? I'm suspecting some other mod in your pack may be breaking vanilla ingredient seralization.

Gbergz commented 17 hours ago

No I can't so I suspect this is another mod causing issues with Integrated Dynamics/Cyclops Core.. hmm annoying.. :s Not sure how to find out which other than removing mods one by one until it works, but that's gonna take a long time with so many mods.

rubensworks commented 7 hours ago

You could try binary search, which should be a lot faster than removing one-by-one: iteratively removing half of the mods until you find the offending one.

Gbergz commented 2 hours ago

Yep, was going to do that and I have done it now.

Removing Occultism makes the issue go away and world is now joinable again. Re-adding it makes issue reappear.

Gbergz commented 2 hours ago

After further testings, readding Occultism and removing KubeJS also solves it, so it might be something there. Edit: Re-adding KubeJS and then deleting the KubeJS folder with the scripts also solves it, so might be something with my scripts currently.

Just weird that this started recently.

Gbergz commented 1 hour ago

Found the issue, it was a KubeJS item ban script I have that is breaking stuff together with Cyclops Core + Integrated Dynamics I guess..

Removing it fixes this issue.

rubensworks commented 1 hour ago

Glad to hear you found the problem!

Gbergz commented 1 hour ago

Thanks for the help on the way, appreciated. :)