Вопрос Ошибка с TargetESP

  • Автор темы Автор темы TIHO
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
7 Дек 2024
Сообщения
36
Реакции
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

крч вот код и ошибка дай те хелпу пж
Код:
Expand Collapse Copy
янв. 22, 2025 10:47:50 PM com.google.common.eventbus.EventBus$LoggingHandler handleException
SEVERE: Exception thrown by subscriber method onRender(fun.blood.events.EventRender.EventDisplay) on subscriber fun.blood.Modules.Feacture.impl.Visuals.TargetESP@11c50812 when dispatching event: EventDisplay(matrixStack=Matrix4f:
1.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0
0.0 0.0 1.0 0.0
0.0 0.0 0.0 1.0
Matrix3f:
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
, partialTicks=0.5000018, type=PRE)
java.lang.NullPointerException
и вот код
Код:
Expand Collapse Copy
package fun.blood.Modules.Feacture.impl.Visuals;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import fun.Modifications.utils.math.Vector4i;
import fun.Modifications.utils.player.projections.ProjectionUtil;
import fun.Modifications.utils.render.ColorUtils;
import fun.Modifications.utils.render.DisplayUtils;
import fun.blood.Modules.Feacture.impl.combat.Aura;
import fun.blood.Modules.settings.Category.Category;
import fun.blood.Modules.settings.Module.Function;
import fun.blood.Modules.settings.Module.ModulesRegister;
import fun.blood.events.EventRender.EventDisplay;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

@ModulesRegister(name = "TargetESP", Category = Category.Visuals)
public class TargetESP extends Function {

    private final Aura aura;

    public TargetESP(Aura Aura) {
        this.aura = Aura;
    }


    @Subscribe
    private void onRender(EventDisplay e) {
        if (e.getType() != EventDisplay.Type.PRE) {
            return;
        }
        if (aura.isState() && aura.getTarget() != null) {
            double sin = Math.sin(System.currentTimeMillis() / 1000.0);
            float size = 150.0F;

            Vector3d interpolated = aura.getTarget().getPositon(e.getPartialTicks());
            Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + aura.getTarget().getHeight() / 2f, interpolated.z);
            GlStateManager.pushMatrix();
            GlStateManager.translatef(pos.x, pos.y, 0);
            GlStateManager.rotatef((float) sin * 360, 0, 0, 1);
            GlStateManager.translatef(-pos.x, -pos.y, 0);
            DisplayUtils.drawImage(new ResourceLocation("blood/images/target.png"), pos.x - size / 2f, pos.y - size / 2f, size, size, new Vector4i(
                    ColorUtils.setAlpha(HUD.getColor(0, 1), 220),
                    ColorUtils.setAlpha(HUD.getColor(90, 1), 220),
                    ColorUtils.setAlpha(HUD.getColor(180, 1), 220),
                    ColorUtils.setAlpha(HUD.getColor(270, 1), 220)
            ));
            GlStateManager.popMatrix();
        }
    }

}
 
Помогите
 
ладно, так уж и быть тебе помогу с...... решением данной проблемы!
спустя всего лишь минуту я нашел твою проблему. барабанная дробь.... HUD.getColor() у тебя выводит Null! Не благодари, и фикси проблему.
 
янв. 23, 2025 8:23:06 AM com.google.common.eventbus.EventBus$LoggingHandler handleException
SEVERE: Exception thrown by subscriber method onRender(fun.blood.events.EventRender.EventDisplay) on subscriber fun.blood.Modules.Feacture.impl.Visuals.TargetESP@55bc58df when dispatching event: EventDisplay(matrixStack=Matrix4f:
1.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0
0.0 0.0 1.0 0.0
0.0 0.0 0.0 1.0
Matrix3f:
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
, partialTicks=0.8999977, type=PRE)
java.lang.NullPointerException: Cannot invoke "fun.blood.Modules.Feacture.impl.combat.Aura.isState()" because "this.aura" is null
at fun.blood.Modules.Feacture.impl.Visuals.TargetESP.onRender(TargetESP.java:33)
at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
at com.google.common.eventbus.EventBus.post(EventBus.java:217)
at net.minecraft.client.gui.IngameGui.renderIngameGui(IngameGui.java:183)
at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:738)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:980)
at net.minecraft.client.Minecraft.run(Minecraft.java:571)
at net.minecraft.client.main.Main.main(Main.java:190)
at fun.Modifications.start.main(start.java:33)
 
янв. 23, 2025 8:23:06 AM com.google.common.eventbus.EventBus$LoggingHandler handleException
SEVERE: Exception thrown by subscriber method onRender(fun.blood.events.EventRender.EventDisplay) on subscriber fun.blood.Modules.Feacture.impl.Visuals.TargetESP@55bc58df when dispatching event: EventDisplay(matrixStack=Matrix4f:
1.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0
0.0 0.0 1.0 0.0
0.0 0.0 0.0 1.0
Matrix3f:
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
, partialTicks=0.8999977, type=PRE)
java.lang.NullPointerException: Cannot invoke "fun.blood.Modules.Feacture.impl.combat.Aura.isState()" because "this.aura" is null
at fun.blood.Modules.Feacture.impl.Visuals.TargetESP.onRender(TargetESP.java:33)
at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
at com.google.common.eventbus.EventBus.post(EventBus.java:217)
at net.minecraft.client.gui.IngameGui.renderIngameGui(IngameGui.java:183)
at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:738)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:980)
at net.minecraft.client.Minecraft.run(Minecraft.java:571)
at net.minecraft.client.main.Main.main(Main.java:190)
at fun.Modifications.start.main(start.java:33)
because "this.aura" is null
 
я понимаю но как это контрить?
Код:
Expand Collapse Copy
Picked up _JAVA_OPTIONS:
[14:40:08] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker
[14:40:08] [main/INFO]: Using primary tweak class name optifine.OptiFineTweaker
[14:40:08] [main/INFO]: Calling tweak class optifine.OptiFineTweaker
OptiFineTweaker: acceptOptions
OptiFineTweaker: injectIntoClassLoader
OptiFine ClassTransformer
OptiFine ZIP file: C:\game\libraries\optifine\OptiFine\1.16.5_HD_U_G8\OptiFine-1.16.5_HD_U_G8.jar
OptiFineTweaker: getLaunchArguments
OptiFineTweaker: getLaunchTarget
[14:40:08] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:40:08] [main/WARN]: Missing version information!
[14:40:08] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException: null
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:159) [launchwrapper-2.2.jar:2.2]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:30) [launchwrapper-2.2.jar:2.2]
Caused by: java.lang.NoClassDefFoundError: cfw
    at net.optifine.reflect.Reflector.<clinit>(Reflector.java:181) ~[Reflector.class:?]
    at net.minecraft.crash.CrashReport.populateEnvironment(CrashReport.java:88) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.<init>(CrashReport.java:41) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.crash(CrashReport.java:409) ~[CrashReport.class:?]
    at net.minecraft.client.main.Main.main(Main.java:127) ~[Main.class:?]
    ... 6 more
Caused by: java.lang.ClassNotFoundException: cfw
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186) ~[launchwrapper-2.2.jar:2.2]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at net.optifine.reflect.Reflector.<clinit>(Reflector.java:181) ~[Reflector.class:?]
    at net.minecraft.crash.CrashReport.populateEnvironment(CrashReport.java:88) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.<init>(CrashReport.java:41) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.crash(CrashReport.java:409) ~[CrashReport.class:?]
    at net.minecraft.client.main.Main.main(Main.java:127) ~[Main.class:?]
    ... 6 more
Caused by: java.lang.NullPointerException: Cannot read the array length because "transformedClass" is null
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:177) ~[launchwrapper-2.2.jar:2.2]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at net.optifine.reflect.Reflector.<clinit>(Reflector.java:181) ~[Reflector.class:?]
    at net.minecraft.crash.CrashReport.populateEnvironment(CrashReport.java:88) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.<init>(CrashReport.java:41) ~[CrashReport.class:?]
    at net.minecraft.crash.CrashReport.crash(CrashReport.java:409) ~[CrashReport.class:?]
    at net.minecraft.client.main.Main.main(Main.java:127) ~[Main.class:?]
    ... 6 more
блять вот еще и это блять

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.


давай в дс поможешь meredith04196
 
Назад
Сверху Снизу