Skip to content
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.11 wrappers #231

Closed
wants to merge 47 commits into from
Closed

Minecraft 1.11 wrappers #231

wants to merge 47 commits into from

Conversation

ExE-Boss
Copy link
Member

@ExE-Boss ExE-Boss commented Dec 17, 2016

PR has been moved to: #234


I’ve begun work on wrappers for Minecraft 1.11.
Depends on:

To do list:

  • Fix block textures
  • Fix TileEntityTransformer
  • Switch to ICapabilityProvider where appropriate. Thanks @shadowfacts for pointing that out at MinecraftForge/MinecraftForge#3599.
  • BWModel.render: calculate brightness correctly (possibly works, but needs testing)
  • MCParticleTransform.rotation (low priority)
  • Fix build script fat jar reobfuscation (the normal jar obfuscates properly, low priority)

Completed:


P.S.: I will do my best to not let NOVA die just yet, I just hope that life won’t get in the way of that.

@liach
Copy link

liach commented Dec 17, 2016

@ExE-Boss
Copy link
Member Author

ExE-Boss commented Dec 17, 2016

@liach Yes, I know, but that won’t stop me from making the Minecraft 1.11 wrappers anyway.

@codecov-io
Copy link

codecov-io commented Dec 17, 2016

Current coverage is 13.47% (diff: 15.50%)

Merging #231 into master will decrease coverage by 0.28%

@@             master       #231   diff @@
==========================================
  Files           387        394     +7   
  Lines         10839      11087   +248   
  Methods           0          0          
  Messages          0          0          
  Branches       1547       1568    +21   
==========================================
+ Hits           1491       1494     +3   
- Misses         9271       9502   +231   
- Partials         77         91    +14   

Powered by Codecov. Last update 70a4f22...ef77313

@calclavia
Copy link
Member

@ExE-Boss If you manage to get it working, I'll be happy to merge stuff

@ExE-Boss
Copy link
Member Author

One question though, should the package be nova.core.wrapper.mc.forge.v111 or nova.core.wrapper.mc.forge.v1_11?
I vote for the second option, as it’s clearer than the first and won’t be as likely to conflict.

@RX14
Copy link
Contributor

RX14 commented Dec 18, 2016

@ExE-Boss Second option

TODO: Figure out what to do with what was removed in Forge 1.9.
@SoniEx2
Copy link
Contributor

SoniEx2 commented Dec 19, 2016

I love you @ExE-Boss

TODO: Fix asm.
TileEntityTransformer doesn’t yet work, causing the game to crash with:
java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoClassDefFoundError:
net/minecraft/tileentity/TileEntity
Caused by: java.lang.ClassNotFoundException:
net.minecraft.tileentity.TileEntity
Caused by: java.lang.NullPointerException
…ntly no NOVA TileEntities)

TODO: Fix TileEntityTransformer.
@ExE-Boss
Copy link
Member Author

ExE-Boss commented Dec 20, 2016

Debugging the TileEntityTransformer class will be very difficult for me, as this is my first time dealing with Java bytecode directly and ForgeGradle has no :debugClient task, without which breakpoints can’t be used.

As for the bug itself, it seems to have something to do with the changes it does to the TileEntity class causing NullPointerException to be thrown inside the ObjectWeb ASM library.

Other changes:
- The instance of ModLoader can now be retrieved by mods to ensure that
IDs are properly namespaced. (Forge does this too)
- Wrappers were moved to proper packages.
- Nova recipe classes are now registered to RecipeSorter, as recommended
by Forge.
1.7 and 1.8 work now
TODO: Fix textures on blocks
# Conflicts:

#	minecraft/1.8/src/main/java/nova/core/wrapper/mc/forge/v18/wrapper/block/forward/FWBlockSound.java
Reason: NOVA-Energy + Forge Energy compatibilty
Also made it so that wrappers are displayed as
NOVA-Core-Wrapper-MC{mcversion} in all IDEs.
@RX14
Copy link
Contributor

RX14 commented Jan 7, 2017

@ExE-Boss can you come on IRC?

@ExE-Boss
Copy link
Member Author

ExE-Boss commented Jan 7, 2017

Wouldn’t it be easier to use Discord?
I have already set it up (with permission from shadowfacts).

@RX14
Copy link
Contributor

RX14 commented Jan 7, 2017

@ExE-Boss set what up where?

@ExE-Boss
Copy link
Member Author

ExE-Boss commented Jan 7, 2017

[Link removed]

@SoniEx2
Copy link
Contributor

SoniEx2 commented Jan 7, 2017

Relevant xkcd: http://xkcd.com/1782/

@ExE-Boss ExE-Boss mentioned this pull request Jan 7, 2017
17 tasks
@ExE-Boss
Copy link
Member Author

ExE-Boss commented Jan 7, 2017

PR has been moved to: #234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants