linkie / linkie-web

The source code of the backend server and frontend webpage of Linkie Web
https://linkie-web.vercel.app
39 stars 10 forks source link

Suggestion: input box for deobfuscating from one mapping to another #16

Closed mrbuilder1961 closed 3 months ago

mrbuilder1961 commented 8 months ago

for example, if it's set to translate Yarn 1.20.4 to Mojang (Intermediary) and I input:

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_2561.getString()" because the return value of "net.minecraft.class_2568.method_10891(net.minecraft.class_2568$class_5247)" is null

it would output:

java.lang.NullPointerException: Cannot invoke "net.minecraft.text.Text.getString()" because the return value of "net.minecraft.text.HoverEvent.getValue(net.minecraft.HoverEvent$Action)" is null

it's very helpful for, as used in the example, logs. it would be cool!

mrbuilder1961 commented 3 months ago

implemented in the stacktrace section!! this is super awesome, tysm! im going to close the issue with this, but just so you know a weird bug i just experienced:

when i pasted this log for 1.20.2 and selected Mojang (via Intermediary)

at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$0(EntrypointUtils.java:51)
    at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:49)
    at net.fabricmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:35)
    at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
    at fudge.notenoughcrashes.fabric.mixinhandlers.ModLoaders.fabricEntrypoints(ModLoaders.java:9)
    at net.minecraft.class_310.redirect$caa000$catchFabricInit(class_310.java:12954)
    at net.minecraft.class_310.<init>(class_310.java:459)
    at net.minecraft.client.main.Main.method_44604(Main.java:205)
    at net.minecraft.client.main.Main.main(Main.java:51)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)

it translates class_310 to PrimaryLevelData0, but if i paste it again and select Yarn it correctly translates it to MinecraftClient. it just forgot to include the last zero and translated class_31 instead, adding the zero to the end of the translated class name.

hopefully this helps, thanks again for the awesome tool