01-30-2020, 12:17 AM
(01-29-2020, 07:51 PM)DennisSoemers Wrote: Could you elaborate which part exactly does not work? So you can still use Ludii.jar as a dependency, write and compile your custom AI, and export it to a JAR? But only then the JAR exported from IntelliJ cannot be read correctly by the Ludii app? Or does it already fail at some earlier stage?
From what I could test, the problem comes either from the manner in which intelliJ IDEA compiles the code or creates the jar (with intellij IDEA the jar are called artifact: there is perhaps something special in their creation of jar).
For example, creating a new project and adding the sources of https://github.com/Ludeme/LudiiExampleAI and adding in library ludii.jar then exporting and finally loading it into ludii does not give the choice of the IA class.
There does not seem to be any problems before being opened by the Ludii app (a class using the library can be launched by an executable jar from intelliJ IDEA).