Coder Social home page Coder Social logo

turnip-labs / bta-halplibe Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 9.0 36.64 MB

Helper library for the "Better Than Adventure!" fork-mod.

License: Creative Commons Zero v1.0 Universal

Java 100.00%
babric better-than-adventure minecraft minecraft-beta mod

bta-halplibe's Introduction

HalpLibe

Helper library containing functions for common use cases, while ensuring compatibility between mods.

Prerequisites

  • JDK for Java 17 (Eclipse Temurin recommended)
  • IntelliJ IDEA
  • Minecraft Development plugin (Optional, but highly recommended)

Setup instructions

Follow the setup instructions on the example mod GitHub page.

How to include HalpLibe in a project

Add this in your build.gradle:

repositories {
   maven { url = "https://jitpack.io" }
}

dependencies {
    modImplementation "com.github.Turnip-Labs:bta-halplibe:${project.halplibe_version}"
}

Credits

  • azurelmao
  • Flamarine
  • Jim Jim aka FatherCheese
  • icanttellyou
  • youngsditch
  • sunsetsatellite
  • useless

bta-halplibe's People

Contributors

azurelmao avatar bigjango13 avatar fathercheese avatar flamarine avatar forkiesassds avatar giantluigi4 avatar kill05 avatar martinsvk12 avatar olypolyu avatar rogerahuntley avatar uselessbullets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bta-halplibe's Issues

Custom mod blocks breaks textures when Terrain.png uses textures above 16x (Better than Adventure)

2023-09-13_18 17 17
2023-09-13_18 40 03

Bottom image is rose and cobweb in world.

To recreate, increase Bta's Terrain.png resolution by 200% with nearest neighbor, use it via texture pack, and install the "Cave Uberhaul!" Mod from the BTA discord.

Cave uberhaul creator was contacted; after discussion "Do you think it's a bug with halplibe then?" "yea pretty sure. I just changed the order in which the custom blocks get registered, the textures are still messed up in 32x but now theres different blocks overlapping with the flowers etc"

342323423423
223232323

The image with the area in red is the 2x scale Terrain.png. The other image with the area in the selection highlight is the area that Terrain.png at it's native resolution overlaps with 2x scale Terrain.png when anchored the top right corner. It's my speculation that the texture placing logic is simply not accounting for the change in resolution scale, and writing in areas that would normally be empty on a 1x scale Terrain.png.

Occasional random crash when loading the game in IntelliJ

This has happened multiple times and seems completely random

[22:53:17] [Client-Main] java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "image" is null
[22:53:17] [Client-Main] at turniplabs.halplibe.util.TextureHandler.(TextureHandler.java:37)
[22:53:17] [Client-Main] at turniplabs.halplibe.util.TextureHandler.newHandler(TextureHandler.java:64)
[22:53:17] [Client-Main] at net.minecraft.client.render.RenderEngine.md112b10$halplibe$lambda$initDynamicTextures$0$0(RenderEngine.java:739)
[22:53:17] [Client-Main] at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
[22:53:17] [Client-Main] at net.minecraft.client.render.RenderEngine.handler$zbc000$halplibe$initDynamicTextures(RenderEngine.java:739)
[22:53:17] [Client-Main] at net.minecraft.client.render.RenderEngine.initDynamicTextures(RenderEngine.java:138)
[22:53:17] [Client-Main] at net.minecraft.client.render.RenderEngine.refreshTextures(RenderEngine.java:607)
[22:53:17] [Client-Main] at net.minecraft.client.Minecraft.startGame(Minecraft.java:364)
[22:53:17] [Client-Main] at net.minecraft.client.Minecraft.run(Minecraft.java:2879)
[22:53:17] [Client-Main] at java.base/java.lang.Thread.run(Thread.java:833)

Firefly Lanterns causing crashes

I noticed when using the newer versions for halplibe I have issues with hanging lanterns. Whenever I sleep in a bed with one above it or even just jump into one my game crashes. The issue is not present in version 2.1.1 which was the version I had before trying to upgrade to 2.2.0, 2.3.0 has the same issue. This is the report it gives me on the crash screen which hopefully may be of help.
--- BEGIN ERROR REPORT db2068b5 --------
Generated 2023-09-29, 12:17 a.m.

Minecraft: Better than Adventure! INDEV
OS: Windows 10 (amd64) version 10.0
Java: 18.0.1.1, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
LWJGL: 2.9.4-babric.1
OpenGL: NVIDIA GeForce RTX 3080/PCIe/SSE2 version 4.6.0 NVIDIA 536.99, NVIDIA Corporation

java.lang.NullPointerException: Cannot read field "id" because "item" is null
at net.minecraft.core.item.ItemStack.(ItemStack.java:67)
at net.minecraft.core.block.BlockLanternFirefly.getBreakResult(BlockLanternFirefly.java:127)
at toufoumaster.btwaila.gui.GuiBlockOverlay.updateBlockOverlayWindow(GuiBlockOverlay.java:326)
at net.minecraft.client.gui.GuiIngame.handler$zzf000$renderGameOverlay(GuiIngame.java:1284)
at net.minecraft.client.gui.GuiIngame.renderGameOverlay(GuiIngame.java:722)
at net.minecraft.client.render.WorldRenderer.updateCameraAndRender(WorldRenderer.java:467)
at net.minecraft.client.Minecraft.run(Minecraft.java:731)
at java.base/java.lang.Thread.run(Thread.java:833)

Language fallback

Vanilla fallbacks to US English (the Language.Default.INSTANCE) if the requested key is not found in the current selected language, and so should Halplibe do.

Arithmetic Exception cauesed by the TextureHandler

Completely random as well, seems like the only way to fix it is by restarting the game.

[16:40:37] [Client-Main] java.lang.ArithmeticException: / by zero
[16:40:37] [Client-Main] at turniplabs.halplibe.util.TextureHandler.update(TextureHandler.java:68)
[16:40:37] [Client-Main] at net.minecraft.client.render.RenderEngine.updateDynamicTexture(RenderEngine.java:405)
[16:40:37] [Client-Main] at net.minecraft.client.render.RenderEngine.updateDynamicTextures(RenderEngine.java:521)
[16:40:37] [Client-Main] at net.minecraft.client.Minecraft.runTick(Minecraft.java:1123)
[16:40:37] [Client-Main] at net.minecraft.client.Minecraft.run(Minecraft.java:2417)
[16:40:37] [Client-Main] at java.base/java.lang.Thread.run(Thread.java:833)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.