Changes for page Breaking Changes
Last modified by Michael Baumgardt on 2026/04/17 12:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,21 +1,23 @@ 1 1 = Introduction = 2 2 3 -Our goal is to keep breaking changes between any given version of X4 to an absolute minimum. In some cases, however, we have had to change things which break scripts/mods written for older versions. 3 +Our goal is to keep breaking changes between any given version of X4 to an absolute minimum. In some cases, however, we have had to change things which break scripts/mods which were written for older versions. 4 4 The following table provides an overview about all breaking changes. This should help you to make any necessary changes to restore compatibility of older mods with new versions of X4. 5 -Feel free to drop a note if a certain breaking change is breaking your mod and you have difficulties finding a way to work around the issue. 6 6 7 7 {{note}} 8 -The list of breaking changes does **NOT** cover changes in the provided/shipped scripts (for instance UI scripts like the ones located under ui/addons/XXX or ui/core/Lua). These scripts can change anytime without explicit notice. If you hook into one of these scripts or provide replacements for these, please check the script for possible breaking changes yourself.7 +The list of breaking changes does **NOT** cover changes in the provided/shipped Lua scripts (for instance the ones located under ui/addons/XXX or ui/core/Lua. These scripts can change anytime without explicit notice. If you hook into one of these scripts or provide replacements for these, please check the script for possible breaking changes yourself. 9 9 10 -Further note that the list provides information about breaking changes which are in the pipeline of being released. This is meant merely as an informational heads up. Neither do mistake this as an announcement of that version becoming available soon nor take it for granted that such a change will go live. Any information provided for not yet released versions can change (and even be removed) prior to such version having seen the light of day. 11 - 12 -As a final note, please be aware that issues introduced during the beta phase might not be explicitly mentioned in the list below, if things would only be broken in-between two beta versions. While we still aim to document any (potential) breaking change here, there might be circumstances for which we divert from that procedure (especially in case of only minor issues which are considered merely bugfixes rather than an intended behavior change). 9 +Further note that the list provides information about breaking changes which are in the pipeline of being released. This is meant merely as an informational heads up. Neither do mistake this as an announcement of that version becoming available soon nor take it as a fact that such a change will go live. Any information provided for not yet released versions can change (and even be removed) prior to such version having seen the light of day. 13 13 {{/note}} 14 14 15 -{{warning title="UI modding considered unstable until further notice..."}}12 +{{warning title="UI modding considered unstable"}} 16 16 Please note that UI modding must be considered **unstable** in the current version. While we are working hard to get the UI modding integration into a stable state, we might have to introduce larger backwards incompatibilities in the following patches. This means that you might have to modify any mod using UI modding capabilities to a larger extend to keep it compatible with certain patches. Still, we are doing our best not to unnecessarily break things for modders and certainly will announce such changes on this page here. 17 17 {{/warning}} 18 18 16 + 17 + 18 +Please note that issues introduced during the beta phase might not be explicitly mentioned as a breaking change, if things would only be broken in-between two beta versions. While we still aim to document any (potential) breaking change here, there might be circumstances for which we divert from that procedure (especially in case of minor issues which is considered merely a bugfix than an intended behavior change). 19 +Feel free to drop a note if a certain breaking change is breaking your mod and you have difficulties finding a way to work around the issue. 20 + 19 19 = Breaking Changes = 20 20 21 21 |=((( ... ... @@ -25,440 +25,23 @@ 25 25 )))|=((( 26 26 Summary 27 27 ))) 28 -|(% colspan="3" %)(% colspan="3" %) 29 -((( 30 -== 3.00 == 31 -))) 32 -|(% colspan="1" %)(% colspan="1" %) 33 -((( 34 -Global 35 -)))|(% colspan="1" %)(% colspan="1" %) 36 -((( 37 -3.0 Beta 5 38 -)))|(% colspan="1" %)(% colspan="1" %) 39 -((( 40 -Renamed all files in the **md**, ui, and **cutscenes** folders to lower-case 41 -))) 42 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 43 -((( 44 -//All MD, UI, and cutscene files have been renamed as lower-case. For most users this should have no effect since files packed in catalogs are essentially case-insensitive. However, this change can affect users on Linux systems when running a mod that contains single files instead of a catalog, and/or when playing with unpacked base game files//. If your mod has XML patch files that are not packed in a catalog, the filenames must be lower-case to match the filenames in the base game. (For info on using mod catalogs, see the Readme of the X Catalog Tool.)\\ 45 - 46 -//Note that this change has no effect on the actual content of scripts or cutscenes. The MD script/cutscene names are stored in the files, regardless of the filenames, so that references to them remain unchanged (e.g., "md.Setup.Start" references a cue in setup.xml).// 47 -))) 48 -|(% colspan="1" %)(% colspan="1" %) 49 -((( 50 -Scripts 51 -)))|(% colspan="1" %)(% colspan="1" %) 52 -((( 53 -3.0 Beta 5 54 -)))|(% colspan="1" %)(% colspan="1" %) 55 -((( 56 -Adjustments of some MD library cues in the base game to change their usage from **<include_actions>** to <run_actions> 57 -))) 58 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 59 -((( 60 -//Some MD library cues in the base game that were previously used with <include_actions> have been adjusted, so they must now be used with the new MD action <run_actions> instead. Mods that use such a library with <include_actions> will have to switch to <run_actions> as well. A list of affected libraries is not provided here. Note: Additional library cues may be adjusted in future builds without further warning.// 61 -))) 62 -|(% colspan="1" %)(% colspan="1" %) 63 -((( 64 -Scripts 65 -)))|(% colspan="1" %)(% colspan="1" %) 66 -((( 67 -3.0 Beta 5 68 -)))|(% colspan="1" %)(% colspan="1" %) 69 -((( 70 -Changes to $dockingbay.**todockpos** and $dockingbay.**launchpos** 71 -))) 72 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 73 -((( 74 -//Before the change, positions are relative to $dockingbay.parent. 75 -After the change, positions are relative to $dockingbay as specified in the documentation.// 76 -))) 77 -|(% colspan="1" %)(% colspan="1" %) 78 -((( 79 -Global 80 -)))|(% colspan="1" %)(% colspan="1" %) 81 -((( 82 -3.0 Beta 2 83 -)))|(% colspan="1" %)(% colspan="1" %) 84 -((( 85 -Support for entity flag "**skillsvisible**" dropped 86 -))) 87 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 88 -((( 89 -//Entity skills are always visible; that flag was a leftover from XR. We removed support for the script property .skillsvisible, the attribute "skillsvisible" of <set_entity_traits> and <set_npc_template_traits>, and the parameter "skillsvisible" of Lua function GetComponentData().// 90 -))) 91 91 |((( 92 -Scripts 93 -)))|((( 94 -3.0 Beta 2 95 -)))|((( 96 -Changes to **<event_object_changed_owner>** and added **<event_object_changed_true_owner>**. 97 -))) 98 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 99 -((( 100 -//Before 3.0 Beta 2 there was just a single <event_object//_changed_owner> condition. This condition was triggered in multiple cases when an owner change occurred. However, the exact cases were inconsistent and also the event could have been triggered w/o an effective owner change having been applied. 101 -3.0 Beta 2 fixes these inconsistencies and ensures that the event is only fired, if the "effective" component owner of the object changed. To handle cases where the script actually needs to be informed if the "true" owner of a component was changed (i.e. not taking the cover faction into account) a new <event_object_changed_true_owner> was introduced. 102 -If in your scripts you make use of the <event_object_changed_owner> condition you need to verify that you indeed want to work with the "effective" component owner or whether your script code actually should work with the true owner of an object and update your code accordingly. 103 -On top of that the 3rd parameter of <event_object_changed_owner> (trueprevious) was dropped as the event is no longer triggered upon a change of the true owner alone (i.e. only if the change of the true owner has also an effect on the "effective" component owner). 104 -))) 105 -|(% colspan="1" %)(% colspan="1" %) 106 -((( 107 -Global 108 -)))|(% colspan="1" %)(% colspan="1" %) 109 -((( 110 -3.0 Beta 1 111 -)))|(% colspan="1" %)(% colspan="1" %) 112 -((( 113 -**MissionBoard** support dropped 114 -))) 115 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 116 -((( 117 -//MissionBoards was a dummy asset type which was only used during early development and never meant to be shipped in the released version. If any mod tried to make use of this asset type, undefined behaviour would occur. Therefore we cleaned things up in 3.0 Beta 1 including deprecating/removing any related UI/script function.// 118 -))) 119 -|((( 120 -Job/God 121 -)))|((( 122 -3.0 Beta 1 123 -)))|((( 124 -By default, **job/god entries** now only spawn objects in space added by the extension in which they are defined 125 -))) 126 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 127 -((( 128 -//To better support extensions which add to the base game map, a job/god entry now defaults to only spawning objects in areas of the map that are added by the extension in which that entry is defined. You can override this behaviour by adding a matchextension="false" attribute to the job/god entry definition. This allows the entry to spawn objects anywhere that matches the entry's other criteria.// 129 -))) 130 -|(% colspan="1" %)(% colspan="1" %) 131 -((( 132 -Scripts 133 -)))|(% colspan="1" %)(% colspan="1" %) 134 -((( 135 -3.0 Beta 1 136 -)))|(% colspan="1" %)(% colspan="1" %) 137 -((( 138 -Script action **<add_actor_to_room/> **attribute **'room'** renamed to **'object'** 139 -))) 140 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 141 -((( 142 -//Due to engine changes, script action <add_actor_to_room/> has had the attribute 'room' changed to 'object', which is more accurate. Most likely requires a 'position' if a slot is not provided.// 143 -))) 144 -|(% colspan="1" %)(% colspan="1" %) 145 -((( 146 -Scripts 147 -)))|(% colspan="1" %)(% colspan="1" %) 148 -((( 149 -3.0 Beta 1 150 -)))|(% colspan="1" %)(% colspan="1" %) 151 -((( 152 -Script action **<set_doors_locked/>** attribute **'group'** changed 153 -))) 154 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 155 -((( 156 -//The 'group' attribute of <set_doors_locked/> can no longer be a list. It must be a single tag value. Previously, a list containing one tag was accepted, which was redundant.// 157 -))) 158 -|(% colspan="1" %)(% colspan="1" %) 159 -((( 160 -Scripts 161 -)))|(% colspan="1" %)(% colspan="1" %) 162 -((( 163 -3.0 Beta 1 164 -)))|(% colspan="1" %)(% colspan="1" %) 165 -((( 166 -Script conditions **<event_hack_*/>** and **<event_controlpanel_hack_*/>** removed 167 -))) 168 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 169 -((( 170 -//These events were never triggered, with the exception of <event_hack_started/> on the player entity for instant control panel hacks. Use <event_player_hacked_object> instead.// 171 -))) 172 -|(% colspan="1" %)(% colspan="1" %) 173 -((( 174 -Scripts 175 -)))|(% colspan="1" %)(% colspan="1" %) 176 -((( 177 -3.0 Beta 1 178 -)))|(% colspan="1" %)(% colspan="1" %) 179 -((( 180 -Script actions **<set_hack_target/>** and **<abort_hack/>** removed 181 -))) 182 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 183 -((( 184 -//These actions had no effect and were removed.// 185 -))) 186 -|(% colspan="1" %)(% colspan="1" %) 187 -((( 188 -Scripts 189 -)))|(% colspan="1" %)(% colspan="1" %) 190 -((( 191 -3.0 Beta 1 192 -)))|(% colspan="1" %)(% colspan="1" %) 193 -((( 194 -**<setup_conversation_minigame/>** script action removed 195 -))) 196 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 197 -((( 198 -//The script action was a leftover from the XR era and was never supported in X4 and couldn't be used in a meaningful way. It was therefore decided to better drop it altogether as it's not expected having been used by any mods.// 199 -))) 200 -|(% colspan="1" %)(% colspan="1" %) 201 -((( 202 -Scripts 203 -)))|(% colspan="1" %)(% colspan="1" %) 204 -((( 205 -3.0 Beta 1 206 -)))|(% colspan="1" %)(% colspan="1" %) 207 -((( 208 -<add_player_choice_*> **confidence** attribute removed 209 -))) 210 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 211 -((( 212 -//The default confidence of player options is another leftover from the XR era and had no effect in X4.// 213 -))) 214 -|(% colspan="1" %)(% colspan="1" %) 215 -((( 216 -Scripts 217 -)))|(% colspan="1" %)(% colspan="1" %) 218 -((( 219 -3.0 Beta 1 220 -)))|(% colspan="1" %)(% colspan="1" %) 221 -((( 222 -**<hack_via_control_panel/>** script action removed 223 -))) 224 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 225 -((( 226 -//Unused script action <hack_via_control_panel/> was removed.// 227 -))) 228 -|(% colspan="1" %)(% colspan="1" %) 229 -((( 230 -UI core 231 -)))|(% colspan="1" %)(% colspan="1" %) 232 -((( 233 -3.0 Beta 1 234 -)))|(% colspan="1" %)(% colspan="1" %) 235 -((( 236 -**Lua: **GetMiniGameCursorPosition() removed 237 -))) 238 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 239 -((( 240 -//GetMiniGameCursorPosition() was a left over from the XR era and never supposed to be shipped with X4. The function practically always returned 0 and hence we don't expect the removal of this obsolete function causing any actual mod to break.// 241 -))) 242 -|((( 243 -UI core 244 -)))|((( 245 -3.0 Beta 1 246 -)))|((( 247 -**FFI: **GetLocalizedInteractiveNotificationKey can return icon placeholders 248 -))) 249 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 250 -((( 251 -//In 3.0 Beta 1 we added support to display icons for keyboard bindings, if an icon is available for the specified keys. This results in GetLocalizedInteractiveNotificationKey() potentially returning a different text now if such an icon is assigned to the mapped key/button.// 252 -))) 253 -|(% colspan="1" %)(% colspan="1" %) 254 -((( 255 255 UI extensions 256 -)))|(% colspan="1" %)(% colspan="1" %) 257 -((( 258 -3.0 Beta 1 259 -)))|(% colspan="1" %)(% colspan="1" %) 260 -((( 261 -**FFI: **UIWeaponMod returned by GetInstalledWeaponMod() now includes property SurfaceElementFactor 262 -))) 263 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 264 -((( 265 -//In 3.0 Beta 1 we added support for a new weapon mod property "SurfaceElementFactor" to allow weapons to deal increased damage to surface elements such as Shield Generators, Turrets or Engines.// 266 -))) 267 -|(% colspan="1" %)(% colspan="1" %) 268 -((( 269 -Scripts 270 -)))|(% colspan="1" %)(% colspan="1" %) 271 -((( 272 -3.0 Beta 1 273 -)))|(% colspan="1" %)(% colspan="1" %) 274 -((( 275 -**$ware.illegal** updated 276 -))) 277 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 278 -((( 279 -//$ware.illegal used to return true if the specified ware has the 'illegal' tag which is no longer used.// 280 -//It now returns true if $ware is illegal to any faction in the game.// 281 -))) 282 -|(% colspan="1" %)(% colspan="1" %) 283 -((( 284 -Scripts 285 -)))|(% colspan="1" %)(% colspan="1" %) 286 -((( 287 -3.0 Beta 1 288 -)))|(% colspan="1" %)(% colspan="1" %) 289 -((( 290 -MD script **RML_Flight_Along_Path** removed 291 -))) 292 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 293 -((( 294 -//The MD script RML_Flight_Along_Path was not referened and was removed.// 295 -))) 296 -|(% colspan="1" %)(% colspan="1" %) 297 -((( 298 -Scripts 299 -)))|(% colspan="1" %)(% colspan="1" %) 300 -((( 301 -3.0 Beta 1 302 -)))|(% colspan="1" %)(% colspan="1" %) 303 -((( 304 -parameters of **<event_venture_mission_completed/>** changed 305 -))) 306 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 307 -((( 308 -//old params: param = venture details, param2 = ships involved, param3 = duration// 309 -//new params: param = venture detail list: [mission name, mission type], param2 = list of ships involved, param3 = duration// 310 -))) 311 -|((( 312 -Scripts 313 313 )))|((( 314 - 3.0 Beta 133 +2.0 Beta 1 315 315 )))|((( 316 -**<set_object_wing_name/>** removed, 317 -**<set_object_fleet_name/>** added 35 +GetUpgradeSlotCurrentComponent()/GetUpgradeSlotGroup() works on non-operationals 318 318 ))) 319 319 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 320 320 ((( 321 -//The common action <set_object_wing_name/> has been replaced with <set_object_fleet_name/>// 322 -))) 323 -|((( 324 -Scripts 325 -)))|((( 326 -3.0 Beta 1 327 -)))|((( 328 -**$controllable.wing.*** removed, 329 -**$controllable.fleet.*** added 330 -))) 331 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 332 -((( 333 -$controllable.wing.name, $controllable.wing.iscommander, and $controllable.wing.commander have been replaced with $controllable.fleet.name, $controllable.fleet.iscommander, and $controllable.fleet.commander 334 -))) 335 -|(% colspan="3" %)(% colspan="3" %) 336 -((( 337 -== 2.60 == 338 -))) 339 -|((( 340 -Scripts 341 -)))|((( 342 -2.60 Beta 1 343 -)))|((( 344 -'**checkoperational**' filter behaviour changed 345 -))) 346 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 347 -((( 348 -//Actions and conditions which use the 'checkoperational' filter now behave differently. Instead of changing how 'class' and 'exactclass' behave, checkoperational == true adds an additional filter for the components being of state operational, equivalent to state="componentstate.operational". This is implicitly enabled in action elements (e.g. <find_.../>) or condition elements (e.g. <count_...>), meaning that find_ship will only find operational ships. Using such actions/conditions with checkoperational="false" will include non-operational components such as wrecked and constructions. Existing uses may find that results now exclude non-operational components.// 349 - 350 -//Sub nodes such as match_child will have checkoperational default to false. Existing uses may find that results now include non-operational components.// 351 -))) 352 -|((( 353 -Scripts 354 -)))|((( 355 -2.60 Beta 1 356 -)))|((( 357 -$container.**supplyresources** behavior changed 358 -))) 359 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 360 -((( 361 -//The script keyword $container.supplyresources now includes reserved wares.// 362 -))) 363 -|(% colspan="3" %)(% colspan="3" %) 364 -((( 365 -== 2.20 == 366 -))) 367 -|(% colspan="1" %)(% colspan="1" %) 368 -((( 369 -UI core 370 -)))|(% colspan="1" %)(% colspan="1" %) 371 -((( 372 -2.20 Beta 3/4 373 -)))|(% colspan="1" %)(% colspan="1" %) 374 -((( 375 -**Lua: GetControllerInfo()** returned mouseSteering/mouseCursor values are undefined. 376 -))) 377 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 378 -((( 379 -//2.20 Beta 3 introduced the new direct mouse steering mode. The mode was however not integrated as a first level mode and hence GetControllerInfo() returned the "gamepad" mode while direct mouse steering was active. 380 -In 2.20 Beta 4 we improved the situation slightly so that a call to GetControllerInfo() will return either "mouseCursor" or "mouseSteering" in any of the 3 mouse modes.// 381 - 382 -//It's a pending change to ensure that the returned mode is more reasonable in an upcoming patch. So be aware that another breaking change might be introduced at some point. 383 -// 384 -))) 385 -|(% colspan="1" %)(% colspan="1" %) 386 -((( 387 -Scripts 388 -)))|(% colspan="1" %)(% colspan="1" %) 389 -((( 390 -2.20 Beta 3 391 -)))|(% colspan="1" %)(% colspan="1" %) 392 -((( 393 -Attribute for build related conditions e.g. **<event_build_finished/>** renamed from 'buildmodule' to 'buildprocessor' 394 -))) 395 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 396 -((( 397 -//The underlying behaviour remains the same in that it involves the buildprocessor, not the buildmodule. The attribute name has simply been corrected.// 398 -))) 399 -|(% colspan="3" %)(% colspan="3" %) 400 -((( 401 -== 2.00 == 402 -))) 403 -|(% colspan="1" %)(% colspan="1" %) 404 -((( 405 -Scripts 406 -)))|(% colspan="1" %)(% colspan="1" %) 407 -((( 408 -2.00 Beta 1 409 -)))|(% colspan="1" %)(% colspan="1" %) 410 -((( 411 -**<event_build_finished/> **param2 now returns null instead of a construction sequence 412 -))) 413 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 414 -((( 415 -//The construction sequence which was finished should now be accessed via the buildtask provided via param3.// 416 -))) 417 -|(% colspan="1" %)(% colspan="1" %) 418 -((( 419 -Scripts 420 -)))|(% colspan="1" %)(% colspan="1" %) 421 -((( 422 -2.00 Beta 1 423 -)))|(% colspan="1" %)(% colspan="1" %) 424 -((( 425 -**param.boarding.{...}** strength parameters removed 426 -))) 427 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 428 -((( 429 -//The 'recruitstrength', 'veteranstrength' and 'elitestrength' script parameters were no longer required for balancing the boarding gameplay, and were removed.// 430 -))) 431 -|(% colspan="1" %)(% colspan="1" %) 432 -((( 433 -Scripts 434 -)))|(% colspan="1" %)(% colspan="1" %) 435 -((( 436 -2.00 Beta 1 437 -)))|(% colspan="1" %)(% colspan="1" %) 438 -((( 439 -**$defensible.boardee/$defensible.boarder** and **<set_object_boarder/>/<remove_object_boarder/>** removed 440 -))) 441 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 442 -((( 443 -//Due to changes to boarding in X4, the boarding connections accessed by these script properties and actions became redundent and thus, removed. Any connections set by these actions in a savegame will not survive loading.// 444 -))) 445 -|((( 446 -UI extensions 447 -)))|((( 448 -2.00 Beta 1 449 -)))|((( 450 -**FFI: GetUpgradeSlotCurrentComponent()/GetUpgradeSlotGroup()** works on non-operationals 451 -))) 452 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 453 -((( 454 454 //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.// 455 455 ))) 456 456 |((( 457 457 UI extensions 458 458 )))|((( 459 -2.0 0Beta 144 +2.0 Beta 1 460 460 )))|((( 461 - **FFI:SetFormationShape()**no longer indicates an error upon certain error cases46 +SetFormationShape() no longer indicates an error upon certain error cases 462 462 ))) 463 463 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 464 464 ((( ... ... @@ -465,183 +465,3 @@ 465 465 //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.// 466 466 //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.// 467 467 ))) 468 -|((( 469 -Scripts 470 -)))|((( 471 -2.00 Beta 1 472 -)))|((( 473 -**<create_formation/>** now requires the attributes: 'leader' and 'follower'. Attribute 'object' is now deprecated. 474 -))) 475 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 476 -((( 477 -//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.// 478 -))) 479 -|((( 480 -Scripts 481 -)))|((( 482 -2.00 Beta 1 483 -)))|((( 484 -**<event_player_changed_target/>** now fires and returns null if the player deselects a target. 485 -))) 486 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 487 -((( 488 -//For prior behavior, check for event.param being non-null.// 489 -))) 490 -|((( 491 -AI Scripts 492 -)))|((( 493 -2.00 Beta 1 494 -)))|((( 495 -**<shoot/>/<shoot_at/>** attribute changes. 496 -))) 497 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 498 -((( 499 -//Changed: Attribute "primary" is now optional and defines whether weapons from the ship's active primary weapon group will be fired. Defaults to true.// 500 -//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.// 501 -//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.// 502 - 503 -//Corrects now-obsolete assumption that primary weapon groups only contain guns and secondary weapon groups only contain missile launchers.// 504 -))) 505 -|((( 506 -UI extensions 507 -)))|((( 508 -2.00 Beta 1 509 -)))|((( 510 -**FFI: GetBuildTask()/GetNumBuildTasks()** got a new "buildmoduleid" parameter.(% class="confluenceTd" %) 511 -))) 512 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 513 -((( 514 -//Added possibility to query build tasks of a certain buildmodule.// 515 -))) 516 -|((( 517 -UI extensions 518 -)))|((( 519 -2.00 Beta 1 520 -)))|((( 521 -**Lua:** **GetLibraryEntry()** retrieved a new "buildresources" field. 522 -))) 523 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 524 -((( 525 -//Added list of resources a buildmodule needs to build.// 526 -))) 527 -|((( 528 -UI extensions 529 -)))|((( 530 -2.00 Beta 1 531 -)))|((( 532 -(% style="color: rgb(0,0,0);" %)**Lua:**(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)** CalculateTotalHullFraction()**(% style="color: rgb(0,0,0);" %)** **(%%)was removed.(% style="color: rgb(0,0,0);" %) 533 -))) 534 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 535 -((( 536 -//Unused, derelict function from XR - use GetComponentData(..., "hullpercent") instead.// 537 -))) 538 -|((( 539 -UI extensions 540 -)))|((( 541 -2.00 Beta 1 542 -)))|((( 543 -**FFI: (% style="color: rgb(0,0,0);" %)RequestDockAtReason()/(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0); color: rgb(0, 0, 0); color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)UndockPlayerShip()(%%) **changed their return values.(% style="color: rgb(0,0,0);" class="confluenceTd" %) 544 -))) 545 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 546 -((( 547 -//Changed return value type to const char* to better identify failure reasons in Lua script.// 548 -))) 549 -|(% colspan="3" %)(% colspan="3" %) 550 -((( 551 -== 1.50 == 552 -))) 553 -|((( 554 -UI extensions 555 -)))|((( 556 -1.50 Beta 3 557 -)))|((( 558 -**Lua: GetComponentData() **changed behavior of "docksizes" propertly.(% class="confluenceTd" %) 559 -))) 560 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 561 -((( 562 -//The "docksizes" property no longer includes internal ship storage docks.// 563 -))) 564 -|((( 565 -All 566 -)))|((( 567 -1.50 Beta 2 568 -)))|((( 569 -**Meaning of "Shipyard"** was corrected throughout Lua/MD/AI scripts, so that Wharfs are not Shipyards (unlike in XR). 570 -))) 571 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 572 -((( 573 -//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".// 574 - 575 -//Lua: Adjusted GetComponentData() and HasShipyard(), added HasWharf()// 576 -//Lua / GetComponentData() properties: Removed "iscapitalshipyard", fixed "isshipyard", added "canbuildships", "iswharf", "isequipmentdock"// 577 -//Scripts: Fixed property .isshipyard, added .iswharf (.canbuildships existed already)// 578 -))) 579 -|((( 580 -UI extensions 581 -)))|((( 582 -1.50 Beta 2 583 -)))|((( 584 -**FFI: UpgradeGroupInfo **datatype was changed.(% class="confluenceTd" %) 585 -))) 586 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 587 -((( 588 -//Added new "operational" field to retrieve information about number of operational upgrades in a group.// 589 -))) 590 -|(% colspan="1" %)(% colspan="1" %) 591 -((( 592 -UI extensions 593 -)))|(% colspan="1" %)(% colspan="1" %) 594 -((( 595 -1.50 Beta 1 596 -)))|(% colspan="1" %)(% colspan="1" %) 597 -((( 598 -**FFI: SetGuidance()** removed useinfopoint argument. 599 -))) 600 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 601 -((( 602 -//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. 603 -// 604 - 605 -//The new function declaration is: void SetGuidance(UniverseID componentid, UIPosRot offset)// 606 -))) 607 -|((( 608 -UI extensions 609 -)))|((( 610 -1.50 Beta 1 611 -)))|((( 612 -**FFI: CancelConstruction() **changed its return value.(% class="confluenceTd" %) 613 -))) 614 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 615 -((( 616 -(% style="color: rgb(0,0,0);" %)//CancelConstruction() now returns if the cancellation was successful. // 617 -))) 618 -|(% colspan="3" %)(% colspan="3" %) 619 -((( 620 -== 1.32 == 621 -))) 622 -|((( 623 -UI extensions 624 -)))|((( 625 -1.32 626 -)))|((( 627 -**Lua: GetComponentData() **removed the "nextdestname" property. 628 -))) 629 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 630 -((( 631 -//Instead of "nextdestname", use the properties "destination" or "destinationsector" to retrieve a destination component, then retrieve its "name" property.// 632 -))) 633 -|(% colspan="3" %)(% colspan="3" %) 634 -((( 635 -== 1.20 == 636 -))) 637 -|((( 638 -UI extensions 639 -)))|((( 640 -1.20 641 -)))|((( 642 -**FFI: GetAAOption()** got a new "useconfig" parameter.(% class="confluenceTd" %) 643 -))) 644 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 645 -((( 646 -//The AA setting was changed to check the new setting with the user. In order to restore the old setting (% style="color: rgb(0,0,0);" %)GetAAOption() gets the option to retrieve the config settings.// 647 -)))
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -8 98251041 +78577866 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://www.egosoft.com:8444/confluence/wiki/spaces/X4WIKI/pages/8 9825104/Breaking Changes1 +https://www.egosoft.com:8444/confluence/wiki/spaces/X4WIKI/pages/78577866/Breaking Changes