Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: give some details about the removal of the infopoint for modders not being familiar with XR

...

TypeVersionSummary
UI extensions2.0 Beta 1FFI: GetUpgradeSlotCurrentComponent()/GetUpgradeSlotGroup() works on non-operationals
Before 2.0 Beta 1 using GetUpgradeSlotCurrentComponent() or GetUpgradeSlotGroup() only performed on operational objects (i.e. not wrecked objects or objects under construction). Since this is inconsistent with the rest of the UI functions, this was considered a bug and fixed in 2.0 Beta 1. If you require the old behavior, use the FFI function: IsComponentOperational() to check the passed object's state before making the call.
UI extensions2.0 Beta 1FFI: SetFormationShape() no longer indicates an error upon certain error cases

Before 2.0 Beta 1 a call to SetFormationShape() indicated an error state to the caller in certain cases where setting a formation shape (potentially) failed. Due to a design flaw in the handling of formations, this however doesn't do any good, since the function by itself doesn't really set the formation shape in all cases. On top of that the call can fail at random. Hence, at the moment an indication of an error case that setting a formation potentially fails is no good to the caller and he has no means to distinguish that case from a real error case.
Therefore, in 2.0 Beta 1 we drop the error indication in case of an attempt to set the formation fails. We are currently working on a better solution to the underlying problem and hope to have it ready as part of a following beta.

Scripts2.0 Beta 1<create_formation/> now requires the attributes: 'leader' and 'follower'. Attribute 'object' is now deprecated.
This now enforces a leader and at least one follower in order to create or change a formation.  Former implementation made it possible to create formations without any followers which led to issues.
Scripts2.0 Beta 1<event_player_changed_target/> now fires and returns null if the player deselects a target.
For prior behavior, check for event.param being non-null.
AI Scripts2.0 Beta 1

Attribute changes to <shoot/> and <shoot_at/>

Changed: Attribute "primary" is now optional and defines whether weapons from the ship's active primary weapon group will be fired. Defaults to true.
New attribute: "secondary" is an optional attribute that defines whether weapons from the ship's active secondary weapon group will be fired. Defaults to true.
New attribute: "missiles" is an optional attribute that defines whether only missile launchers will be used. If false, only guns will be fired. Defaults to false.

Corrects now-obsolete assumption that primary weapon groups only contain guns and secondary weapon groups only contain missile launchers.

All1.50 Beta 2Corrected meaning of "Shipyard" throughout Lua/MD/AI scripts, so that Wharfs are not Shipyards (unlike in XR).

Shipyards (formerly also known as Capital Shipyards) can build capital ships, while Wharfs only build non-capital ships. To check whether a station is a Shipyard or a Wharf, check whether the station "can build ships".

Lua: Adjusted GetComponentData() and HasShipyard(), added HasWharf()
Lua / GetComponentData() properties: Removed "iscapitalshipyard", fixed "isshipyard", added "canbuildships", "iswharf", "isequipmentdock"
Scripts: Fixed property .isshipyard, added .iswharf (.canbuildships existed already)

UI extensions1.50 Beta 1FFI: Removed SetGuidance() argument useinfopoint.
The deprecated third argument was removed.

In X Rebirth "info points" existed (which were mainly used as interaction points to scan stations/access information about modules). These were removed in X4 but this left-over property here was missed to be removed in-time for release. It was therefore removed now in order to move towards a stable/clean UI API.

The new function declaration is: void SetGuidance(UniverseID componentid, UIPosRot offset)

UI extensions1.32Lua: Removed GetComponentData() property "nextdestname".
Instead of "nextdestname", use the GetComponentData() properties "destination" or "destinationsector" to retrieve a destination component, then retrieve its "name" property.