-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with Forestry 4.0 #229
Comments
Actually, it is you who needs to update. |
All mods in my instance are up to date @ReikaKalseki . |
I updated to the latest Forestry API in v8. Your Forestry version is ancient. EDIT: EDIT 2: All Forestry downloads I can find are 3.6.X. |
Well it doesn't say that it might be unstable for nothing. I think you shouldn't use Jenkins builds for playing if you plan on keeping your worlds. |
Yeah you can get 4.0 on http://ic2api.player.to:8080/job/Forestry_Dev/ |
Is 4.0 a different branch entirely? I cannot support two branches simultaneously. |
Yes it is, all the X.y.y.y are completely new branches with Forestry. Please do not support in development versions of mods that aren't easily accessible from the "main download" page. It screws up most users and creates a lot of rather annoying scavenger hunts. |
Ok thanks. Is it possible to disable mod interaction with Forestry? |
No. Use a proper Forestry version. Also, it looks like the 4.0 version is using the _old_ API from pre-3.6. So updating to newer mainline Forestry versions actually broke it. Someone on the Forestry team has explaining to do. |
@ReikaKalseki Forestry 4.0 is not using an older API. Forestry's API versioning is per-package using SemVer and is not tied to the mod version number. There are many internal changes in this release, especially to wood items and multiblocks. |
4.x worked with the 3.5.x code, but 3.6.x code works with neither. |
Sounds coincidental to me, I didn't do anything too weird. I loaded up DragonAPI and it was dying on the Forestry Log blocks. There is a new API in Forestry to get the wood items, |
Yeah reflecting into a mod's internal classes if you just need blocks or items is a bad idea. I did the same mistake and recently switched to lookup from the block/item registry. This will continue to work for as long as the mod in questrion doesn't make changes that break existing worlds. That said, the AbstractMethodError in the OP still seems weird. |
My reflective handlers, if they fail, never crash, only fail to load the items. Any NoSuchMethod or similar errors are caused by API changes. Also, stupid as it is, most mods change their APIs rather more than their internal code. Example 1: AE. Eight breaking API changes in six months (including a recapitalization of AEAPI.instance()!) whereas the internal registries remain unchanged. Example 2: MystCraft. Constant refactoring of the API class and constant renaming of the fields (repeatedly adding and removing block_ to the field names). No internal registry change. Also, most mods provide no API hooks to get their items, and yes, like to play musical registration names. |
Well I guess those are stupid examples.
I can't imagine that it happens that often that mods break existing worlds by changing block and item names. I would guess that Block.getBlockFromName and Item.getItemFromName are still more reliable than reflection. For instance, my stuff broke in the past when Thermal Expansion and Chisel renamed their packages. |
I think this discussion got derailed, Forestry made breaking changes including ones that remove blocks in the world. |
I cannot yet update, because fully half of the players are refusing to update the mod version, yet still demanding the support. |
Since I was confused about why DragonAPI includes Forestry, I took a look into it. I've been working to improve the API, basically so that people don't have to implement stuff like in Flowers in particular have breaking changes because we really messed it up in earlier implementations. Instead of needing Instead of needing to write As for the item handler, why not request that one be added to the Forestry API? It would be much easier to maintain there, and there would be no version conflict issues. If you find yourself needing to implement stuff like that in DragonAPI, please let me know that the Forestry API needs improvement. Having DragonAPI act as middleware for active projects like Forestry and others sounds like maintenance hell, worse than Forge. |
I have base classes like |
Just a heads up, Forestry 4.0 is now the stable release. |
And exactly that becomes more and more an issue as many other Mod Developers refuse to support older versions of their Mods. |
Well think about how many people still have old worlds with Forestry 3 and can't update because it would break their world and other addons they have. So unfortunately you can't suit everybody. |
@ljfa-ag that's definitely not a reason not to fix a critical bug. |
The point is that those people can stay on the old worlds with the old versions of Forestry and all the other mods. |
FYI: Forestry just updated to 4.2.0 and did some API changes to add some new functions. |
Reika has been proven wrong, chances are we'll never be hearing from him. |
What is with the drama llamas in this comment thread? Use the old versions if you want any DragonAPI dependent mod. If you have to have Forestry 4, et al? Don't use DragonAPI. Very simple. Reika is aware of the updates, and will change, or not, when HE decides to. Apparently giving the end user the ability to disable forestry integration will raise unrealistic expectations that other integration could be easily disabled (Forestry Integration is very light, and uniquely easy — though non-trivial — to disable), and to prevent a never-ending trend of future support headaches he will not support the "fix" to this problem. As for why he does not wish to update to Forestry 4 as a fix for the problem, I honestly couldn't tell you. None of the reasons I have seen make much sense to me. |
TomeWyrm is right about stating that this should not become personal and/or insulting. |
@walkerjonny i think you make a valid point there. At the least just say "I'm still alive and programming" |
Oh, Reika is still very active. Just have a look on his thread on minecraftforum.net (also maintained by curse). His last reply there is just four hours ago. |
V10. nuff said. that said, im waiting, impatiently, with bated breath, and hands itching to once more hold a digital pickaxe, for the release of V10, and along with it, forestry 4 support. ive just stopped developing my modpack entirely while i await the relevant mods to update to forestry api v4. O.O godspeed reika. |
He's not putting Forestry 4 support into v10. Or at least was not last time I noticed an answer on the subject. |
That would be really bad then... |
@ReikaKalseki |
Achievement unlocked: solution found! |
Okay, question: Do you have anywhere you post downloads for dev builds that may include this fix? If not, Is there any way to compile a version of RotaryCraft with this fix, because I noticed your Github includes solely source code and not your build.gradle or anything? Or am I just going to have to wait for an update? RotaryCraft is a must-have in my game and I'd like to add it. |
You'll have to wait for an update, just like the rest of the public. v10 shouldn't be that long in coming. I'd give my personal estimate, but I know better than to give ETAs in public. Sometimes this community is full of those who let their enthusiasm take over their common sense. |
lol alright thanks |
now the new version v10 is there and now neither versions of forestry seem to work for me. (neither 3.4 (which i´ve been using without any problems with RC v9b) nor 4.0) Any ideas why? (or forestry versions that DO work?) EDIT: i just have no idea what they mean or how to fix this xD |
Just done some quick testing with forestry 1.7.10-4.2.2.50 and no crashing issues here. finally i can update my modpack \o/ :+1: |
Alright, so if it works with the newest Forestry release it should be fine. |
is there any compatibilty to forestry versions prior to 4.x with the v10 of RC? I recieved this error while using Forestry 3.6: Can I somehow fix this? Because i cant update Forestry due to problems with updating the forge version EDIT: never mind xD |
Your mod is not compatible with latest Forestry. Please update.
https://gist.github.com/Akai1/6f05ccf523748dc9f34c
The text was updated successfully, but these errors were encountered: