Skip to content

Use module interface with vanilla BW #71

Description

@adakitesystems

Credit to @EvanED for mentioning the Java Invocation API with which a JVM can be instantiated in C++. This would allow us to use the module interface of BWAPI instead of the client interface with vanilla BW as we do in OpenBW. The client interface in BWAPI 4.2.0 and earlier is mostly inferior to the module interface since the client interface is slower and contains bugs the module interface does not.

I experimented a bit with the API briefly and it is pretty straightfoward. However, I was not able to call a JNI method from the created JVM back to C++. More experimentation and information about the API is needed before fully switching to the module interface.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn idea currently not present in BWAPI4J that enhances the usability.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions