#Spent 14 hours straight on this error and I'm going insane... no solution...

43 messages ยท Page 1 of 1 (latest)

lean sierra
karmic charm
#

[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

spice harbor
#

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]
lean sierra
#

Spent 14 hours straight on this error and I'm going insane... no solution...

stiff glen
#

do you need ExampleMixin?

lean sierra
#

But id prefer to keep them since it used to work while having them

shell coral
#

how did you make the jar file?

lean sierra
shell coral
#

that's incorrect

#

wait gradle as in the gradle panel?

lean sierra
shell coral
#

oh nvm i see the issue

#

you have a -dev jar

#

!!export

zinc foxBOT
#

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.

shell coral
#

you should use the one in build/libs

#

without the -sources

#

[โœ”] amod-1.0.0-dev

#

prism shows files names

lean sierra
#

Ill try when i get home. If it works, u just made my week

shell coral
#

hopefully it works ๐Ÿ‘๐Ÿฝ

lean sierra
#

now I get another error instead inside my mod tho: xdotool: command not found

#

this is how it looks like in game

shell coral
#

that looks beyond the mixin

#

does xdtools exist?

lean sierra
#

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
shell coral
#

probably something with your prism dir

lean sierra
shell coral
#

how you specify the path

#

i'd rather get the game directory from fabric loader and build up the path myself

lean sierra
#

what do i do?

shell coral
#

debug and see