Skip to content

3.1.0

Choose a tag to compare

@rjwut rjwut released this 30 Aug 15:39
· 251 commits to master since this release
  • Artemis 2.4.0 support. This includes: support for the new ships and the new Ximni faction, new jumpmaster faction attribute, elite faction attribute changed to hasspecials, playershields attribute for fighters, support for game master custom buttons, support for ship accent colors and fighter capital ship IDs. All references to "elite" changed to "special" in the code base.
  • VesselData refactor. There is no longer a static instance of VesselData. Instead, you create a Context object and pass it to the required classes. This was done in order to allow automated testing with different vesselData.xml files to exercise various scenarios.
  • Load Artemis resources however you want. Instead of simply giving a path to the Artemis install, you can now construct the Context class passing in an object that implements the PathResolver interface. This gives you much more flexibility when it comes to loading Artemis resource files. IAN comes with two PathResolver implementations out of the box: FilePathResolver (to read from disk) and ClasspathResolver (to read resources packaged inside your JAR).
  • Way easier proxying. ArtemisNetworkInterface now has a proxyTo() method. Simply pass in a recipient ArtemisNetworkInterface object, and any packets which are not caught by your listeners are automatically passed through to the proxied connection.
  • Ship number/index consistency fix. The Artemis protocol isn't 100% consistent about whether Artemis is ship 1 or ship 0. This change makes your life easier by making IAN consistent (Artemis is ship 1) even though the protocol isn't.
  • Determine whether a disconnection was "normal." Some DisconnectEvents are expected to occur when a connection is terminated intentionally. The isNormal() method on DisconnectEvent will now tell you whether this DisconnectEvent is expected or not.
  • README.md updated. It now includes detailed information about how to create clients or server proxies, including updated example source code.
  • Added pom.xml. Don't know why this wasn't in there before! Anyway, this should let you build the JAR from a local copy of the repository with the mvn install command.
  • A bunch of documentation updates. Yay for documentation!
  • More automated test coverage. We are currently at 44.1% coverage.
  • A bunch of internal improvements which you probably won't care about, but which make IAN better.

Here are the things to watch for that may break your existing code upon updating to IAN 3.1.0:

  • VesselData.setArtemisInstallPath() doesn't exist anymore, since we're now using the new Context object with the more powerful PathResolver mechanism. Construct a Context object and pass in an object which implements PathResolver. There are a few constructors and methods which now require you to pass in the Context (most notably, constructors for ThreadedArtemisNetworkInterface).
  • To be consistent with the new terminology used in vesselData.xml, all references to the term "elite" in the code have been changed to "special." Any references you may have in your code will need to be changed accordingly.
  • Make sure that any code that identifies a ship by number/index is one-based and not zero-based.