#Crash when mod is exported

32 messages · Page 1 of 1 (latest)

lofty swift
#

also im wondering how i can completly redo the main menu

upbeat sparrow
#

When does the error happen?

#

It's telling you that this.client is null in some screen class btw

lofty swift
upbeat sparrow
#

Do you perhaps have another mod loaded?

lofty swift
upbeat sparrow
#

Also you'ld probably get more help if you actually linked the sources of your mod

#

How's anyone supposed to guess what the issue is from that brief error message. What about the game log/ crash report etc.

upbeat sparrow
#

Is your mod on GitHub?

#

By the way, are you making a cheat client?

lofty swift
lofty swift
#

@upbeat sparrow u there?

upbeat sparrow
#

Yea but you didn't respond to most of what I wrote

lofty swift
upbeat sparrow
#

What about the crash report or logs?

lofty swift
# upbeat sparrow What about the crash report or logs?
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:239)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
#
Thread: Render thread
Stacktrace:
    at net.minecraft.class_437.method_56131(class_437.java:173)
    at net.minecraft.class_437.method_41843(class_437.java:324)
    at net.minecraft.class_437.method_48640(class_437.java:419)
    at net.minecraft.class_437.method_25410(class_437.java:426)
    at net.minecraft.class_310.method_15993(class_310.java:1408)
    at net.minecraft.class_310.<init>(class_310.java:668)
upbeat sparrow
#

Ah, well. In that case it's probably one of your mixins at fault

lofty swift
#

all i changed since that is the path to my accesswidener that i forgot to put in

#
Description: Initializing game

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_310.method_48186()" because "this.field_22787" is null
    at net.minecraft.class_437.method_56131(class_437.java:173)
    at net.minecraft.class_437.method_41843(class_437.java:324)
    at net.minecraft.class_437.method_48640(class_437.java:419)
    at net.minecraft.class_437.method_25410(class_437.java:426)
    at net.minecraft.class_310.method_15993(class_310.java:1408)
    at net.minecraft.class_310.<init>(class_310.java:668)
    at net.minecraft.client.main.Main.main(Main.java:239)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
#

also this

upbeat sparrow
#

Well, it's certainly a weird issue, but idk what causes it. Look at the main menu or loaging screen mixin it you have one. Maybe it's an issue with initialization order

lofty swift
upbeat sparrow
#

I guess it could but that's unlikely

lofty swift
#

ye i did forget to list one but it wasnt that

mortal portal
#

Based on the class/function names, you are using an instance of the Screen class before the MinecraftClient is ready. Since you wish to provide nothing more, this is as far as I will help you too.

lofty swift
#

sorry im late i was watching the olympics opening

mortal portal
#

Unless you provide code, there is no way to tell, except just use a debugger 🤷‍♂️