#Spent 14 hours straight on this error and I'm going insane... no solution...
43 messages ยท Page 1 of 1 (latest)
[22:33:40] [main/INFO]: Loading Minecraft 1.21.4 with Fabric Loader 0.16.12
[22:33:40] [ForkJoinPool-1-worker-9/WARN]: Mod autowalk uses the version 0.5-1.19,1.21.4 which isn't compatible with Loader's extended semantic version format (Invalid prerelease string '1.19,1.21.4'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[22:33:40] [ForkJoinPool-1-worker-6/WARN]: Mod dev_isxander_libsdl4j uses the version 3.1.9.075c033-66 which isn't compatible with Loader's extended semantic version format (Could not parse version number component '075c033'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
?
the problem mod is "amod"
that's just a warning, and has nothing to do with the real error
the issue seems to be that "amod" mixin is trying to inject to something that doesn't exist
[22:33:45] [main/ERROR]: Mixin apply for mod amod failed amod.mixins.json:ExampleMixin from mod amod -> net.minecraft.server.MinecraftServer: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on init could not find any targets matching 'loadWorld' in net/minecraft/server/MinecraftServer. No refMap loaded. [INJECT_PREPARE Applicator Phase -> amod.mixins.json:ExampleMixin from mod amod -> Prepare Injections -> handler$zza000$amod$init(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse -> -> Validate Targets]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on init could not find any targets matching 'loadWorld' in net/minecraft/server/MinecraftServer. No refMap loaded. [INJECT_PREPARE Applicator Phase -> amod.mixins.json:ExampleMixin from mod amod -> Prepare Injections -> handler$zza000$amod$init(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse -> -> Validate Targets]
Spent 14 hours straight on this error and I'm going insane... no solution...
do you need ExampleMixin?
Nope, but even if I delete it I get errors
But id prefer to keep them since it used to work while having them
how did you make the jar file?
By clicking build in gradle
Yepp
Exporting your mod as a JAR: run in a terminal from the same directory as the mod project directory ./gradlew build on GNU/Linux and Mac, or gradlew build on Windows. Alternatively, in IntelliJ IDEA, open the Gradle tab on the right and execute build under tasks. The JARs should appear in ${projectDir}/build/libs. Use the one with the shortest name outside development.
you should use the one in build/libs
without the -sources
[โ] amod-1.0.0-dev
prism shows files names
Ohh okayyy
Ill try when i get home. If it works, u just made my week
hopefully it works ๐๐ฝ
it did!!
now I get another error instead inside my mod tho: xdotool: command not found
this is how it looks like in game
it exists on my system. But i dont think prism launcher detects it...
this is my code: ```java
and this is one of the scripts:
#!/bin/bash
echo "Script started" >> /tmp/debug.log
echo "Environment: $PATH" >> /tmp/debug.log
# GUI 3 is used in mc settings
# Get window dimensions
WIN_DIMENSIONS=$(xwininfo | grep -E 'Width|Height' | awk '{print $2}')
WIDTH=$(echo "$WIN_DIMENSIONS" | sed -n '1p')
HEIGHT=$(echo "$WIN_DIMENSIONS" | sed -n '2p')
# Calculate coordinates
FIRSTSLOT_X=$(echo "$WIDTH / 2.4" | bc)
FIRSTSLOT_Y=$(echo "$HEIGHT / 2" | bc)
HOTBAR_Y=$(echo "$HEIGHT / 1.6" | bc)
ACCEPT_X=$(echo "$WIDTH / 1.85" | bc)
ACCEPT_Y=$(echo "$HEIGHT / 2.4" | bc)
PRICE="3995"
MCDELAY=0.05
MCDELAY_UI=1
xdotool key t
sleep 0.03
xdotool click 3
sleep 0.5
xdotool mousemove $((1194)) $((620))
xdotool click 1
sleep 0.5
xdotool keydown Control_L
xdotool keydown z
sleep 0.45
for row in {0..4}; do
for cell in {0..9}; do
xdotool mousemove $((1065 + 48 * cell)) $((465 + 48 * row))
sleep 0.03
done
done
xdotool keyup Control_L
xdotool keyup z
xdotool mousemove $((1065 + 48 * 6)) $((465 + 48 * 5))
sleep 0.05
xdotool click 1
probably something with your prism dir
like what?
how you specify the path
i'd rather get the game directory from fabric loader and build up the path myself
I tried specifing the path in prism launchers env variables
what do i do?
debug and see