[TaCZ] Timeless and Classics Zero

[TaCZ] Timeless and Classics Zero

16M Downloads

[Api]1.20.1forge项目导入tacz依赖后无法运行runclient

HoshizoraZC opened this issue · 8 comments

commented

java版本:21(java17试过了也不行)
mdk: forge-1.20.1-47.3.0-mdk

从forge官网下载解压mdk压缩包后,除了设置java版本与导入tacz依赖后没有进行任何其他操作。
可以直接构建但是runclient会报错。

build.gradle配置,无法直接上传我转为txt格式了:
build.gradle.txt
后台报错信息:
后台报错.txt
日志文件:
latest.log

commented

这一段:injection failure: @Inject annotation on onTickServerSide could not find any targets matching 'Lnet/minecraft/world/entity/LivingEntity;m_8119_()V' in net.minecraft.world.entity.LivingEntity. Using refmap tacz.refmap.json [PREINJECT Applicator Phase -> tacz.mixins.json:common.LivingEntityMixin -> Prepare Injections -> -> handler$zza000$onTickServerSide(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on onTickServerSide could not find any targets matching 'Lnet/minecraft/world/entity/LivingEntity;m_8119_()V' in net.minecraft.world.entity.LivingEntity. Using refmap tacz.refmap.json [PREINJECT Applicator Phase -> tacz.mixins.json:common.LivingEntityMixin -> Prepare Injections -> -> handler$zza000$onTickServerSide(Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse]

没有把MixinMapping和refmap/config接入到你的 Gradle 里,运行时 MixinTransformer找不到m_8119这个方法,tacz官方自己有tacz.refmap.json和tacz.mixins.json,你只需要自己声明使用这俩文件就行了,你拉的库里就有。

具体解决办法参靠隔壁附属模组的gradle文件:https://github.com/LesRaisins-Studios/LesRaisins-Tactical-Equipements/tree/1.20.1

。。

不过你要嫌麻烦就按我这个改buildgradle:

1.先加一个buildscript块:
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
mavenCentral()
}
dependencies {
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}

2.plugins块把net.minecraftforge.gradle 版本改成'[6.0.16,6.2)'(6.0这一块有bug)

3.plugin块下面加一个apply plugin: 'org.spongepowered.mixin'(不是plugin块里面,而是下面)

4.多加一个mixin块
mixin {
add sourceSets.main, "tacz.refmap.json"
config "tacz.mixins.json"
}

commented

说白了就是加个mixingradle,附个链接https://github.com/SpongePowered/MixinGradle

commented

看日志是 mixin 冲突了

请问能给出具体的解决办法吗?

有没有项目的源码?

通过网盘分享的文件:forge-1.20.1-47.3.0-mdk.rar 链接: https://pan.baidu.com/s/11vhTfZ6mZkqcUCW842CRlw?pwd=namr 提取码: namr 有的,麻烦大佬帮我看下

parchment的依赖还没配置完全,需要大佬手补一下

commented

看日志是 mixin 冲突了

commented

看日志是 mixin 冲突了

请问能给出具体的解决办法吗?

commented

看日志是 mixin 冲突了

请问能给出具体的解决办法吗?

有没有项目的源码?

commented

看日志是 mixin 冲突了

请问能给出具体的解决办法吗?

有没有项目的源码?

通过网盘分享的文件:forge-1.20.1-47.3.0-mdk.rar
链接: https://pan.baidu.com/s/11vhTfZ6mZkqcUCW842CRlw?pwd=namr 提取码: namr
有的,麻烦大佬帮我看下

commented

看日志是 mixin 冲突了

请问能给出具体的解决办法吗?

有没有项目的源码?

佬,打扰了,请问研究出来问题了吗?