Compact Crafting

Compact Crafting

9M Downloads

Adding NBT to crafting recipes causes error in connection on server only

DelviousCrafts opened this issue ยท 2 comments

commented

Using NBT as an output in any recipe will cause an error when logging into a server. Upon attempted login, it shows

Internal Exception: io.netty.handler.codec.EncounterException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

This has been tested against both compact machine tunnel items and is also true of vanilla items as well.

paste of vanilla item script used in testing.

paste of compact machines item script used in testing.

paste of latest log file of SERVER both items attempted on at the same time with debug options in world folder serverconfig files set to true.

paste of debug log file of SERVER both items attempt with options in world folder serverconfig files set to true.

paste of latest log file of CLIENT attempting to log in to the same server.

I also tried logging into a server with each script individually with the same result for both. I figured giving you the log file with both would have the most information in it for you.

This is not true of single-player worlds and recipes handle as expected with only NBT items as products. Servers, however, lack the ability to even log in to test recipes.

Removing these scripts without removing other scripts for miniaturization recipes that have no NBT data at all allows you to log in to the server properly. It appears to be strictly NBT data related. Recipes added could then be properly crafted.

Logging in to server with scripts only loaded in client and not server made recipes un-craftable (as expected, but you never know what information will be useful, just providing you with everything I tried).

Removing all miniaturization scripts also allows you to log into the server (obviously, but just in case you were wondering)

paste of latest log file of client single-player world where both are functioning as expected and recipes being tested in world with debug options in world folder serverconfig files set to true.

Minecraft version: 1.18.2
Forge version: 40.1.84
Compact Crafting version: 2.0.0
Compact Machines version: 4.5.0

Also included in test pack just in case

Architectury API version: 4.10.86-forge
JEI version: 9.7.2.266
KubeJS version: 1802.5.5-build.550 (for easier data pack loading)
Rhino version: 1802.2.1-build.240

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

commented

This is still an issue in 1.19.2 at least. Uncertain if 1.18.2 was corrected or not. All files and logging in work until adding the same exact file as presented in the compact machines script above. Verified that there are no new changes to script creation on the wiki at least and all other scripts that are a direct copy from 1.18.2 scripts used for blocks with no NBT work just fine and allow login on a server.

Latest Log Server