Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Releases: gered/BWMirror-Generator

BWMirror 2.7.1

20 Apr 03:07
Compare
Choose a tag to compare
  • Fix some lingering issues with JNI code mis-casting pointers to long instead of jlong when passing back to Java code. This resolves a number of issues with constant/type classes that are initially cached by BWMirror in std::maps being returned to Java code which don't compare for equality successfully in Java code even though they are actually identical to each other.
  • Add missing BWAPI classes to generator's internal list of constant type classes so JNI code returning them treats them properly and returns a correct value (e.g. fixes UnitSizeType's being null all the time).
  • Workaround for a bug in BWAPI's Unit::getUnitsInWeaponRange method which accepts a filter predicate but does not check if the filter passed in was null before trying to use it. Since BWMirror does not support these predicate filters (yet), we now just pass in a dummy filter that ensures nothing is filtered out from the returned list.

BWMirror 2.7

14 Apr 22:57
Compare
Choose a tag to compare
  • Add equals() and hashCode() implementations for:
    • bwta.BaseLocation
    • bwapi.Bullet
    • bwapi.Force
    • bwapi.Player
    • bwapi.Region
    • bwapi.Unit
  • Mirror.startGame now implemented in mostly Java code and responds appropriately if running in a separate thread that is interrupt with Thread.interrupt(), etc. Additionally, this method now takes a boolean parameter which controls whether the game loop runs infinitely and keeps waiting for new matches to begin when previous ones end. Pass false to keep the old behaviour and loop infinitely, or pass true to cause startGame to return and disconnect from Broodwar as soon as a match ends.
  • Improved method of checking for a 32-bit JVM on startup which shouldn't produce any (?) incorrect results even on some less common setups.
  • Fix for on-startup extraction of native libraries / BWTA data for certain scenarios that were pretty much only limited to during development/testing when running from an IDE or some kind of build tool.
  • Some minor tweaks to console output generated by BWMirror to make it easier to distinguish from BWAPI's own console output.

BWMirror 2.6

12 Apr 16:35
Compare
Choose a tag to compare

No real major changes from the developer-side of things. Project cleanup and documentation. The only functionality changes are related to runtime extraction of JNI DLLs and BWTA map data files which should now be a bit more robust.