AIAClient icon indicating copy to clipboard operation
AIAClient copied to clipboard

Can´t run server file (ACServer.jar) on Linux

Open DerClown03 opened this issue 2 years ago • 5 comments

I am always getting following errors:

[INFO] Starting AI-AC Server... o.n.l.f.Nd4jBackend - Loaded [CpuBackend] backend Exception in thread "main" java.lang.ExceptionInInitializerError at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.(NativeOpExecutioner.java:79) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) at java.base/java.lang.Class.newInstance(Class.java:645) at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5129) at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5044) at org.nd4j.linalg.factory.Nd4j.(Nd4j.java:269) at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetworkHelper(ModelSerializer.java:282) at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:237) at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:221) at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:207) at cf.huzpsb.machinelearning.AIServer.init(AIServer.java:222) at cf.huzpsb.machinelearning.AIServer.main(AIServer.java:42) Caused by: java.lang.RuntimeException: ND4J is probably missing dependencies. For more information, please refer to: https://deeplearning4j.konduit.ai/nd4j/backend at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:116) at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:37) ... 17 more Caused by: java.lang.UnsatisfiedLinkError: no jniopenblas_nolapack in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818) at java.base/java.lang.System.loadLibrary(System.java:1989) at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1800) at org.bytedeco.javacpp.Loader.load(Loader.java:1402) at org.bytedeco.javacpp.Loader.load(Loader.java:1214) at org.bytedeco.javacpp.Loader.load(Loader.java:1190) at org.bytedeco.openblas.global.openblas_nolapack.(openblas_nolapack.java:12) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at org.bytedeco.javacpp.Loader.load(Loader.java:1269) at org.bytedeco.javacpp.Loader.load(Loader.java:1214) at org.bytedeco.javacpp.Loader.load(Loader.java:1190) at org.nd4j.linalg.cpu.nativecpu.bindings.Nd4jCpu.(Nd4jCpu.java:14) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:467) at org.nd4j.common.config.ND4JClassLoading.loadClassByName(ND4JClassLoading.java:62) at org.nd4j.common.config.ND4JClassLoading.loadClassByName(ND4JClassLoading.java:56) at org.nd4j.nativeblas.NativeOpsHolder.(NativeOpsHolder.java:88) ... 18 more Caused by: java.lang.UnsatisfiedLinkError: Could not find jniopenblas_nolapack in class, module, and library paths. at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1767) ... 33 more

This Anti Cheat seems really awesome! Even if you think that your English isn´t that good please just try it, we are thankful for any somewhat readable text that helps us with your project. :) Thanks!

DerClown03 avatar Jun 28 '22 19:06 DerClown03

I am using Ubuntu 20.04.4 LTS and Java 17 openJDK Oracle.

DerClown03 avatar Jun 28 '22 20:06 DerClown03

I am looking into it,thank you for your interest : )

huzpsb avatar Jun 29 '22 04:06 huzpsb

I am using Ubuntu 20.04.4 LTS and Java 17 openJDK Oracle.

https://www.mediafire.com/file/rxsti92ypkc532l/AIAC兼容性构建.jar/file

The problem should be caused by a missing dependency.While it can be solved by not shrinking at all,I am still finding another way to solve it while not having the jar so tremendous. Up there is a link where you can find the unshrinked jar.Just,you can use it temporaryly before I figure out the way(or give up).

huzpsb avatar Jun 29 '22 05:06 huzpsb

Thanks for this quick solution. I got the file running now, created a Minecraft server with the plugin and made an account with the set command. I dont know if I did something wrong or if the AI needs to be trained further but I didnt get flagged for hacking with KillAura. What can I do to make it work properly?

DerClown03 avatar Jun 29 '22 15:06 DerClown03

Thanks for this quick solution. I got the file running now, created a Minecraft server with the plugin and made an account with the set command. I dont know if I did something wrong or if the AI needs to be trained further but I didnt get flagged for hacking with KillAura. What can I do to make it work properly?

This project is WIP and POC.And yes,it does need A LOT OF further work.To submit a false-negative,please kindly switch on debug mode and type /type <Tag,i.e. Killaura-liquidbounce>,and hit entities that have the same size of a player for a while. Then you can send the generated data folder to me,or alternatively you can train a dl4j model by referring to its official doc on your own.The updaters in the pre-trained model are saved,so you can further train it. after getting it loaded

huzpsb avatar Jun 29 '22 23:06 huzpsb