-
Notifications
You must be signed in to change notification settings - Fork 19
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
Minecraft 1.14 #129
base: 1.12
Are you sure you want to change the base?
Minecraft 1.14 #129
Conversation
Still very much in progress
Still very much in progress
Removed deprecated book creation
Looks pretty good so far, but I have a few overall notes:
|
Thank you for your feedback.
My TODO list:
|
That's something I've been wanting to fix, but never could without breaking mods. This could be a good time to take care of that.
Hm, I use IntelliJ and haven't had problems with it. You did make sure to apply it, right? |
Ok, I will have another look if its reasonable to separate the api properly. Yes I did apply it. Gradle is always fun, especially with all kinds of (build) caches. I made sure they build.gradle matched the HWYLA one, but it still did not work |
Still prints a missing model warning
I am not sure what this was required for, but both unicode and non unicode seems to be working fine in 1.14
One thing that is causing some trouble, is that the language data is (for some reason) only available during registry events and after the LoadComplete event. So it is not possible to localize text during any of the events suitable for building the book content/categories. (I don't want to construct the book content during the item registry event). Most content could be localized when displayed, but e.g. PageHelper.pagesForLongText requires the full translation to be able to choose the appropriate number of pages. I might have a look at delaying the book content initialization until the book is actually used for the first time. This might create a little bit of one time lag though. I will also have a look if we can avoid loading the book content on server side. |
Seems to work fine so far. What do you think about increasing the book width a little bit. Yes, it would look different than vanilla books, but I think it would greatly improve reading comfort. About splitting of an api package/module: |
Sounds like my reason, so it's good enough of a reason for me! |
Provide proper line and page wrapping. Extend test book
So, I think this is ready. Page widthI changed the width of the book, it is now more a square shape. I think this makes guide books much easier to read than before, since more than two words fit in one line. Pages generally don't look as crammed. This means that updating mods might have to adjust their content, if they had manual line breaks or similar. If you don't like this I can revert the commit, but I generally think this makes GuideAPI more competitive with Patchouli ConfigurationThe configuration, which now supports the perBook setting, is still in toml. I understand that to hat toml, but I don't think that is reason enough to force players to deal with different config file formats for mod configs. It is good that all mod configs are in the same format and Forge just decided that this format is now toml (not sure why, but probably because the new library does not support the old). It is a tiny config file, so it shouldn't really matter which format this is in. FormattingIn the last commit I ran the default Intellij formatter over the entire codebase. This could also be reverted. |
@TehNut Did you already have time to look at this? |
I'll try and make time to look through it tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's some trivial things I'll take care of, otherwise this looks fine.
MinecraftForge.EVENT_BUS.addListener(this::onServerStarting); | ||
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onServerStarting); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just forgot to remove it
So, since I really need a 1.14 version (users are asking for Vampirism guide book and asking a lot of questions on CurseForge and Discord which would be answered by the book) and it didn't seem like you are very committed to MC modding right now, I decided to release my fork on Curse on my own. It has a different modid: "guideapi-vp" and a different package. So, if you should decide to continue actively working on and supporting GuideAPI, there shouldn't be any conflicts and Vampirism could migrate back. I will start working on 1.15 soon. |
My mod Vampirism is using Guide-API to provide a guide book since Minecraft 1.7.10
Since Vampirism is now available for 1.14 and 1.15, I need a Guide Book for those MC versions as well.
There already is Patchouli, but it has some limitations and more importantly the content would have to be ported. Therefore I decided to update Guide-API to 1.14 (and later 1.15) since you generously published this under MIT licence.
There is still quite some things to do (recipes, book/item registration, debugging), but it already compiles. I am mainly opening this WIP PR to let you know I am working on this and to discuss a few things:
I am not sure how involved your are in MC modding right now and if you are even interested in MC1.14+, so I think there are several options once/if I got a properly update version.
a) you merge this PR and continue maintaining the mod for 1.14+ yourself
b) you add me to the curse project and I can publish new versions for MC1.14+
c) I create a new curse project and add you as an (old) author
d) I include/shade Guide-API in Vampirism.
I'm fine with all options. Guide-API is a cool mod and I just would like to continue using it :)