You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
New Features and Major Changes
SystemManager was refactored and is now called World. This new class includes a variety of useful ways to query for objects, including accepting an arbitrary predicate. A new interface called WorldListener allows you to be notified when objects are created or deleted or when players spawn (meaning the player's the ship index is known).
Vessel internals and system damage has been refactored so that data is stored in the same structure and can be updated in a consistent fashion. The new Grid class provides a common interface for this data. DefaultContext can read and write .snt files using Grids. DAMCON team status is now represented by the stand-alone class DamconTeam. EngGridUpdatePacket now contains a List of GridNodes and a List of DamconTeams. Vessel.getInternalDataFile() is now called getSntFile(), getInternals() is now getGrid(), and preloadInternals() is now preloadGrids().
ArtemisNetworkInterface now supports auto-heartbeat management. By default, heartbeat packets will be automatically sent so that code that consumes IAN need not send heartbeats itself. @Listeners can now listen for two new ConnectionEvent subclasses related to heartbeats: HeartbeatLostEvent and HeartbeatRegainedEvent. As part of this update, HeartbeatPacket is now an abstract superclass of ServerHeartbeatPacket and ClientHeartbeatPacket.
Determining IFF between two objects is now determined by comparing their side properties, then falls back to using Faction attributes. This has caused changes to CommsRecipientType and CommsOutgoingPacket.
VesselData now has getFactions() and getVessels() to get Lists of all Factions and Vessels, respectively.
Model now supports transformation of any arbitrary point cloud, and Grid can export a point cloud of its nodes. This allows system grids to be more easily overlaid on a ship model render, as is done in the stock engineering console.
All object types now have a unique class that represents them. ArtemisGenericObject no longer exists, having been broken into ArtemisAsteroid, ArtemisBlackHole, and ArtemisMine classes.
All ArtemisObjects now have getScanLevel() and getMaxScans() methods. Calling getMaxScans() on non-scannable objects returns 0.
ArtemisObjects now handle Tags with the getTags(), addTag(), and isTagged() methods.
ArtemisObjects now report side visibility via the getVisibility() method.
BiomechRagePacket is supported, allowing the client to detect when the biomech tribe's stance toward the player changes.
TensionPacket is supported, which is used by the stock client to control music playback.
ArtemisOrientable now exposes the shieldsFrontMax, shieldsRearMax, and side properties.
ArtemisBase now reports pitch, roll, heading, and side.
ArtemisCreature now reports scans.
ArtemisNpc.isEnemy() has been removed, as it has become clear that this property in the protocol is not what it was originally believed to be. To determine whether a ship is an enemy vessel, you should compare its side property with the player's.
ArtemisNpc now has an isNpcTagged() method.
The new SetupManager class can be used by custom servers to track connected clients and their ship and console assignments.
Console can now report a ClaimType enum value that represents any limitations on the clients that claim it. Possible values are ONE_PER_SHIP (pertains to HELM, WEAPONS, and ENGINEERING), ONE_PER_GAME (pertains to GAME_MASTER), and NO_LIMIT (pertains to all other consoles).
TagPacket now reports the tag with a separate Tag class.
OrdnanceType.HOMING has been changed to OrdnanceType.TORPEDO to match the change to the in-game nomenclature.
To reflect its wider use cases, all references to "vertices" have been changed to "points."
Minor Updates and Internal Changes
EngGridUpdatePacket.isRequested() is now more accurately titled EngGridUpdatePackage.isFullUpdate().
ArtemisNetworkInterface.send() is now overloaded to allow sending a Collection of packets.
Events can now be manually dispatched to listeners via the ArtemisNetworkInterface.dispatch() method.
ArtemisObject now has a getNameString() convenience method.
ArtemisObject.distanceIgnoreY() allows you to get the distance between two objects on the X-Z plane. (ArtemisObject.distance() reports actual distance in 3D space.) Both will now throw a more specific IllegalStateException rather than a RuntimeException if the distance cannot be computed because one or both objects have no position.
Unknown properties can be retrieved and set by byte and bit number via ArtemisObject.getUnknownProp() and ArtemisObject.setUnknownProp().
BaseArtemisShielded.extractCallsign() will intelligently determine a contact's short name if it has one.
BaseArtemisShielded.getVessel() is now null-safe.
BaseArtemisShip now has a convenience constructor which accepts an ID and a Vessel and populates all relevant properties.
ArtemisOrientable now extends ArtemisObject, and ArtemisShielded now extends ArtemisOrientable.
Ship now has a clone constructor.
PausePacket.isPaused() now returns a boolean instead of a BoolState, as the packet does not support BoolState.UNKNOWN.
PacketReader has improved error handling that will provide more information in the event of a parsing error. Packet parsing is more resilient: as long as IAN is confident that the packet size is correct, any subsequent parsing errors will be non-fatal. ArtemisPacketException now has a fatal property so that you can tell whether the error caused the interface to shut down, and will dump the packet with a stack trace print.
BoolState now has a toValue() method, which provides an equivalent to the Java ternary operator, selecting a value based on whether the BoolState is TRUE, FALSE, or UNKNOWN.
Poly now implements Iterable<String>.
You can now retrieve the scaling factor specified by RenderParams with the scale() method.
AnomalyType.toString() now returns a human-oriented label.
ServerDiscoveryResponder now uses the username as the name of the server instead of the host name. This was done to be consistent with Artemis.
Minor label changes to Ship System for consistency.
Added toString() implementations to various objects to provide more useful information while debugging.
Util.joinSpaceDelimited() now accepts Objects, not just Strings.
Added distribution management information for GitHub Packages.
Documentation improvements.
Bug Fixes
ArtemisBase now correctly reports max shields. (Previously, the max shields value was erroneously reported as rear shields.)
Fixed a bug where undocking was not always properly reported by ArtemisPlayer.getDockingBase().
BeamFiredPacket was reporting the incorrect TargetingMode. This has been fixed.
Vessel torpedo tubes were incorrectly created as instances of BeamPort. They are now VesselPoint instances.
Fixed a minor issue where unknown object packet fields were inconsistently named.