Applied Energistics 2

Applied Energistics 2

156M Downloads

Can't auto-craft Crafting Tables

Nico8400 opened this issue ยท 13 comments

commented
  • Minecraft Version: 1.12.2
  • AE2 Version: rv5-stable-11
  • Forge Version: ModId 'forge' Version 14.23.4.2705

Applied just won't craft things that have a crafting table somewhere in the craft. When clicking "next" nothing happen and the screen stay the same without crashing. Tested on Crafting table and Molecular Assembler.
I can autocraft ME interfaces that are in the same interface than the Molecular assembler/crafting table pattern.
edit: Having crafting tables in stock won't solve the problem.
2018-06-29_16 38 48
2018-06-29_16 39 36

commented

I had the same bug suddenly and I had to remove Tinkers Construct from the modpack (Stoneblock) to fix this.

It's a shame that the developers on both sides won't fix this nasty bug.

commented

Hello, Tinkers Construct dev here from SlimeKnights/TinkersConstruct#3546, can an AE2 dev shed more light on this issue? We already have a null check in place for the player, is there something else from this line that AE does not include in their FakePlayer implementation?

commented

After a quick look at the code of both mods, it looks like the failing code is:

Advancement advancement = playerMP.getServer().getAdvancementManager().getAdvancement(new ResourceLocation(advancementResource));

Since the failure is in MinecraftServer.java, and the only call to that is MinecraftServer.getAdvancementManager(), which in turn does:

return this.worlds[0].getAdvancementManager();

I believe AE uses Forge FakePlayers (from FakePlayerFactory), and the error is "java.lang.ArrayIndexOutOfBoundsException: 0" which makes it sound like for some reason Minecraft is not populating the MinecraftServer.worlds array, which causes the exception when trying to access MinecraftServer.worlds[0].

Perhaps trapping this in a debugger and seeing if the player has a valid server instance associated with it and that the server instance has the worlds field populated may help figure out what is going on.

commented

FYI, for anyone experiencing this issue, if you do a processing pattering into something like an RFTools crafter the issue does not occur. Maybe that's common sense, but I had to test it and it worked.

Also, the TC issue linked by @KnightMiner above references this same workaround too.

commented

Cannot reproduce. Crafting them works fine in a test environment.

commented

Original environment
2018-06-30_11 45 55
2018-06-30_11 46 10
2018-06-30_11 46 16
Test environment in the same world
2018-06-30_11 50 44
2018-06-30_11 50 48
I was able to autocraft crafting table in another save.
Here is a link to the save since it's too big for Github.
https://drive.google.com/open?id=1zTuBOED0X2YBReWxMmUqEx-f0iWgCMzq
Modpack is FTB Continuum.
Config file
AppliedEnergistics2.zip

commented

I haven't checked out the save, but does something show up in the log when you click "start"?

The modpack has quite extensive changes towards recipes. Do you have them set to "allow substitutions"?
If you do, try turning that off for this recipe. Some recipes are bugged and can cause issues like this.

commented

Ok so I'm back, I re-opened my world and I was able to request crafting tables, so I "Saved and quit to title" and re-opened my wolrd but wasn't able to request crafting tables again and this appeared in the log.
edit: This appeared when I clicked "Start"
edit 2: Posted log on Pastebin
https://pastebin.com/6qcUvyHp

commented

@Nico8400 please! Pastebin or something similar!

commented

This is tinkers construct crashing, because there is something seriously wrong with your modpack. The only option we can recommend is to start removing mods until you find the one causing the crash and then report it to this particular mod.

commented

My guess: You autocrafted a TC item with AppliedEnergistcs, and TC tried to give an achievment for this, but couldn't handle, that the item wasn't crafted by player

commented

I have the same issue. Can't autocraft craft tables. Molecular assembles didn't work at first (craft table in recipe), but started working afterwards. Have no clue what it is.

commented

Same crash here, using Enigmatica 2 Expert modpack (other reporters are in other modpacks). The crash shows up after a long time playing, saving/restarting the world fixes it for a while again. That makes it a bear to recreate.

The crash makes it seem that it's an interaction between AE2 (the initiator) and TC (the crasher).
But AE2 dev says it's not AE2 #3575 (comment)
And TC dev says it's not TC DarkPacks/SevTech-Ages#3161 (comment)

So...not sure where to go looking :)