Closed ejektaflex closed 5 years ago
The only valid solution at the moment is to set Bookshelf & GameStages to compileOnly
in build.gradle
, and then put the game-ready versions in the mods folder for runtime. It seems that useDepAts
cannot be used for me (It is apparently private?), though setUseDepAts(true)
can be used (although, as mentioned, it still causes the IllegalArgumentException
). Do you know what would be causing this?
Access transformers are not being loaded properly in your environment. You need to make sure the dependencies are being loaded in a way that ForgeGradle can detect. Here is a working example.
Yes, that does not work. I'm using the deobf jars for compilation in the way that you've shown, yet your access transformers arent being loaded properly.
(What you've shown is the very first thing I tried, I'm of course going to try replicate your build.gradle from another setup before reporting an issue on it)
Is there any issue with using the compiled files for runtime and deobf for compilation, as I'm doing now? It seems to be the best solution, though it's obviously not perfect.
I am not sure. Perhaps this is an issue with gradle version. I use version 4.3+ for all of my wrappers.
I'm using 4.10.3, but that could very well be it. I think that I'll stick with this method for now, perhaps try out v5.0+. Regardless, it works.
I'm trying to work with GameStages, and have it (as well as Bookshelf) added to my
build.gradle
. However, either during or after PostInit Bookshelf seems to crash with anIllegalAccessError
. This seems like a copy of #109, although the given solution is not valid (cannot setuseDepAts = true
sinceuseDepAts
is private, andsetUseDepAts(true)
does not change the outcome, giving the same crash.)Edit: I did try and change mappings to "stable_39", thinking that maybe an access transformer had changed access to a variable or some such, but to no avail.
Bookshelf: 2.3.552 GameStages: 2.0.114 Forge: 1.12.2-14.23.5.2796
Here is the crash: