Arena icon indicating copy to clipboard operation
Arena copied to clipboard

Update to 1.20.4

Open zax71 opened this issue 1 year ago • 5 comments

zax71 avatar Apr 12 '24 13:04 zax71

@zax71 do you have a compiled version

thewanderingtraderm avatar Apr 14 '24 21:04 thewanderingtraderm

Just download it and run ./gradlew build or press the hammer icon in IntelliJ

zax71 avatar Apr 14 '24 21:04 zax71

@zax71 it come up with this error: FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':shadowJar'.

Could not resolve all dependencies for configuration ':runtimeClasspath'. Could not resolve net.minestom:minestom-snapshots:7daf8d69b7. Required by: project : > No matching variant of net.minestom:minestom-snapshots:7daf8d69b7 was found. The consumer was configured to find a library for use during runtime, compatible with Java 17, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but: - Variant 'apiElements' declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component for use during compile-time, compatible with Java 21 and the consumer needed a component for use during runtime, compatible with Java 17 - Other compatible attribute: - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs) - Variant 'javadocElements' declares a component for use during runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs) - Doesn't say anything about its target Java version (required compatibility with Java 17) - Variant 'runtimeElements' declares a library for use during runtime, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component, compatible with Java 21 and the consumer needed a component, compatible with Java 17 - Other compatible attribute: - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs) - Variant 'sourcesElements' declares a component for use during runtime, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs) - Doesn't say anything about its target Java version (required compatibility with Java 17)

  • Try:

Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm. No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.

BUILD FAILED in 7s

thewanderingtraderm avatar Apr 14 '24 21:04 thewanderingtraderm

Oh, the Minestom version is wrong. Try reverting https://github.com/Minestom/Arena/pull/60/commits/724795d1012f0b87944a745cd3b90767e01f3d4f

zax71 avatar Apr 14 '24 21:04 zax71

@zax71 now it comes up with this error

Task :compileJava C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java:608: error: no suitable constructor found for ParticlePacket(Particle,double,double,double,float,float,float,float,int) instance.sendGroupedPacket(new ParticlePacket(Particle.FIREWORK, pos.x(), pos.y(), pos.z(), ^ constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable (actual and formal argument lists differ in length) constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable (actual and formal argument lists differ in length) C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java:644: error: no suitable constructor found for ParticlePacket(Particle,double,double,double,float,float,float,float,int) instance.sendGroupedPacket(new ParticlePacket(Particle.EXPLOSION, pos.x(), pos.y(), pos.z(), ^ constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable (actual and formal argument lists differ in length) constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable (actual and formal argument lists differ in length) C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\EvokerMob.java:53: error: no suitable constructor found for ParticlePacket(Particle,boolean,double,double,double,float,float,float,float,int) instance.sendGroupedPacket(new ParticlePacket(Particle.POOF, true, pos.x(), pos.y(), pos.z(), ^ constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable (actual and formal argument lists differ in length) constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable (actual and formal argument lists differ in length) Note: C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 3 errors

Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 11s 1 actionable task: 1 executed

thewanderingtraderm avatar Apr 14 '24 21:04 thewanderingtraderm