Changes for page Breaking Changes
Last modified by Michael Baumgardt on 2026/04/17 12:03
From version 104.6
edited by Ketraar
on 2023/08/15 12:13
on 2023/08/15 12:13
Change comment:
There is no comment for this version
To version 104.1
edited by Volodymyr Boichuk
on 2023/03/16 17:21
on 2023/03/16 17:21
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 - X4 Foundations Wiki.Modding Support.WebHome1 +Modding Support - Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. Ketraar1 +xwiki:XWiki.Volodymyr - Content
-
... ... @@ -4,6 +4,14 @@ 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 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 +{{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. 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). 13 +{{/note}} 14 + 7 7 {{warning title="UI modding considered unstable until further notice..."}} 8 8 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. 9 9 {{/warning}} ... ... @@ -29,9 +29,10 @@ 29 29 )))|((( 30 30 Updated weights for ship groups in shipgroups.xml libraries of base game and all DLCs. 31 31 ))) 32 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" title="Background colour : "%)(% class="highlight-grey"colspan="3" data-highlight-colour="grey"title="Background colour :"%)40 +|(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %) 33 33 ((( 34 -//Previously some entries were lacking "weight" parameter, causing it to default to "1", which prevent adding new ships to the group with appropriate/configurable granularity.// 42 +//Previously some entries were lacking "weight" parameter, causing it to default to "1", which prevent adding new ships to the group with appropriate/configurable granularity. 43 +// 35 35 36 36 //All groups should now have "weight" parameter added and old "weights" were updated to not have single-digit numbers.// 37 37 ))) ... ... @@ -45,7 +45,7 @@ 45 45 ((( 46 46 Changed conditions for **<event_player_travelmode_started> <event_player_travelmode_stopped> <event_player_travelmode_charge_started> <event_player_travelmode_charge_aborted>** to be raised. 47 47 ))) 48 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" title="Background colour : "%)(% class="highlight-grey"colspan="3" data-highlight-colour="grey"title="Background colour :"%)57 +|(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %) 49 49 ((( 50 50 //The <event_player_travelmode_started>, <event_player_travelmode_stopped>, <event_player_travelmode_charge_started> and <event_player_travelmode_charge_aborted> events will no longer be raised if the player is a passenger on board a ship which enters or leaves travel mode. Previously these events would be raised whether the player was the pilot or a passenger. // 51 51 ... ... @@ -61,7 +61,7 @@ 61 61 ((( 62 62 Changed result of **<find_object_surface>** action in the case of a failure 63 63 ))) 64 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" title="Background colour : "%)(% class="highlight-grey"colspan="3" data-highlight-colour="grey"title="Background colour :"%)73 +|(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %) 65 65 ((( 66 66 //The 'posname' and 'rotname' result attributes of <find_object_surface> will now return null in the case of no valid surface position being found.// 67 67 ... ... @@ -79,7 +79,7 @@ 79 79 ((( 80 80 Behaviour change for **<match_dock>** script component filter 81 81 ))) 82 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" title="Background colour : "%)(% class="highlight-grey"colspan="3" data-highlight-colour="grey"title="Background colour :"%)91 +|(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %) 83 83 ((( 84 84 //<match_dock> nodes can now be used on container and walkablemodule classes without wrapping them in <match_content> nodes. 85 85 This has introduced a new potential pitfall: If finding or counting contained components be wary that there may be multiple positive results, even if there is only one dockingbay. e.g. matching contents for a station will include the dockingbay but also its containing walkable module as that also contains the dockingbay. To only account for docking bays, also filter by dockingbay class.// ... ... @@ -94,7 +94,7 @@ 94 94 ((( 95 95 Changed result attribute location for **<get_attackstrength>** 96 96 ))) 97 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" title="Background colour : "%)(% class="highlight-grey"colspan="3" data-highlight-colour="grey"title="Background colour :"%)106 +|(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" title="Background colour : " colspan="3" data-highlight-colour="grey" %) 98 98 ((( 99 99 //The 'result' attribute of get_attackstrength has been moved into the new <result> subnode and renamed to 'total'.// 100 100 ))) ... ... @@ -105,7 +105,7 @@ 105 105 )))|((( 106 106 Surface element **connections** are incompatible by default unless tagged as "**standard**", and also "**combat**" for non-missile, non-mining weapons 107 107 ))) 108 -|(% class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%"%)(%class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%" %)117 +|(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %)(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %) 109 109 ((( 110 110 //Connection tags used to specify compatibilities in component templates between a ship or station module and engines or shields now additionally require the use of the "standard" tag matching weapon or turret logic. For weapons that are neither Missile Launcher nor Mining Laser, the tag "combat" is also required. 111 111 Exception: special equipment that is deliberately not compatible with the majority of slots may use another tag instead of "standard", e.g. "highpower" for certain Terran weapons.// ... ... @@ -120,7 +120,7 @@ 120 120 ((( 121 121 Changed behaviour of attribute **sortbygatedistanceto** when finding objects, discarding unreachable objects 122 122 ))) 123 -|(% class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%"%)(%class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%" %)132 +|(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %)(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %) 124 124 ((( 125 125 //When finding components with attribute "sortbygatedistanceto", e.g. in <find_object>, any objects with a negative gatedistance (i.e. unreachable objects) are automatically excluded from the result.// 126 126 ))) ... ... @@ -131,7 +131,7 @@ 131 131 )))|((( 132 132 **<event_player_owned_killed_object>** and **<event_player_owned_destroyed>** are now triggered before the corresponding **<event_object_destroyed>**, instead of afterwards. 133 133 ))) 134 -|(% class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%"%)(%class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%" %)143 +|(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %)(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %) 135 135 ((( 136 136 //The order of events was adjusted, allowing handlers of <event_player_owned_killed_object> and <event_player_owned_destroyed> to access commander/subordinate relationship of the destroyed object.// 137 137 ))) ... ... @@ -142,7 +142,7 @@ 142 142 )))|((( 143 143 Changed behaviour of **<angles>** in cutscenes 144 144 ))) 145 -|(% class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%"%)(%class="highlight-#f4f5f7" colspan="3" data-highlight-colour="#f4f5f7" title="Background color : Light grey 100%" %)154 +|(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %)(% class="highlight-#f4f5f7" title="Background color : Light grey 100%" colspan="3" data-highlight-colour="#f4f5f7" %) 146 146 ((( 147 147 //The yaw and pitch nodes in <angles> are now correctly interpreted as values in degrees.// 148 148 ))) ... ... @@ -173,11 +173,11 @@ 173 173 4.10 Beta 7 174 174 )))|(% colspan="1" %)(% colspan="1" %) 175 175 ((( 176 -**FFI**: (% style="color: #000000" %)SetMapRenderCargoContents(%%)(), (% style="color:#000000" %)SetMapRenderWorkForceInfo(), SetMapRenderCrewInfo() and SetMapRenderDockedShipInfos()(%%) deprecated185 +**FFI**: (% style="color: rgb(0,0,0);" %)SetMapRenderCargoContents(%%)(), (% style="color: rgb(0,0,0);" %)SetMapRenderWorkForceInfo(), (% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)SetMapRenderCrewInfo() and (% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)SetMapRenderDockedShipInfos()(%%) deprecated 177 177 ))) 178 178 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 179 179 ((( 180 -//The functionality represented by (% style="color: #000000" %)SetMapRenderCargoContents(%%)(), (% style="color:#000000" %)SetMapRenderWorkForceInfo(), SetMapRenderCrewInfo() and SetMapRenderDockedShipInfos()(%%) has been removed and the function was therefore stubbed.//189 +//The functionality represented by (% style="color: rgb(0,0,0);" %)SetMapRenderCargoContents(%%)(), (% style="color: rgb(0,0,0);" %)SetMapRenderWorkForceInfo(), SetMapRenderCrewInfo() and SetMapRenderDockedShipInfos()(%%) has been removed and the function was therefore stubbed.// 181 181 ))) 182 182 |(% colspan="1" %)(% colspan="1" %) 183 183 ((( ... ... @@ -226,7 +226,7 @@ 226 226 )))|((( 227 227 4.10 Beta 2 228 228 )))|((( 229 -**FFI**: (% style="color: #000000" %)FilterComponentForMapMode(%%)() and (% style="color:#000000" %)SetMapObjectFilter() changed238 +**FFI**: (% style="color: rgb(0,0,0);" %)FilterComponentForMapMode(%%)() and (% style="color: rgb(0,0,0);" %)SetMapObjectFilter() changed 230 230 ))) 231 231 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 232 232 ((( ... ... @@ -237,7 +237,7 @@ 237 237 )))|((( 238 238 4.10 Beta 1 239 239 )))|((( 240 -People related attributes of mission** <delivery> **node moved249 +People related attributes of mission** <delivery> **node moved 241 241 ))) 242 242 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 243 243 ((( ... ... @@ -285,7 +285,8 @@ 285 285 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 286 286 ((( 287 287 //Before 4.00 Beta 10 it was ensured that there is no direct transition between the 'cockpit ui mode' of one ship to another. Instead, it was always ensured that the UI first transitions into the firstperson mode and then back into the cockpit mode (controlling then the other ship). 288 -In order to support the new emergency eject feature which was added in 4.00 Beta 7, this assurance was dropped. As of 4.00 Beta 10 it is now possible that the ship the player controls can swap without the gameplanchange-event being risen which one could rely upon in previous versions. If your addon relied on the fact that the ship would not change without first going into first person mode, you will have to adjust your addon accordingly.// 297 +In order to support the new emergency eject feature which was added in 4.00 Beta 7, this assurance was dropped. As of 4.00 Beta 10 it is now possible that the ship the player controls can swap without the gameplanchange-event being risen which one could rely upon in previous versions. If your addon relied on the fact that the ship would not change without first going into first person mode, you will have to adjust your addon accordingly. 298 +// 289 289 ))) 290 290 |((( 291 291 Scripts ... ... @@ -315,7 +315,8 @@ 315 315 //In order to keep consistency with regards to the new behvior 'hostile' relation state and the older (deprecated) UI functions, the behavior of the deprecated GetFactionRelationStatus() function was changed according to the behavior of the GetRelationStatus()/GetRelationStatus2() functions which was done in the previous beta. 316 316 Factions with a relation rating between -20 and -10 will now report a relation status of 'neutral' (aka: 1) instead of 'hostile'/'enemy' (aka: 0).// 317 317 318 -//If you rely on a handling where these factions are treated like enemies, please use the new GetFactionRelationStatus2() function instead.// 328 +//If you rely on a handling where these factions are treated like enemies, please use the new GetFactionRelationStatus2() function instead. 329 +// 319 319 ))) 320 320 |(% colspan="1" %)(% colspan="1" %) 321 321 ((( ... ... @@ -364,11 +364,11 @@ 364 364 )))|((( 365 365 3.30 Beta 3 366 366 )))|((( 367 -**FFI: **Removed** (% style="color: #000000" %)GetMissionLimit() (%%)**(% style="color:#000000" %)and** IsMissionLimit**(%%)**Enabled()**378 +**FFI: **Removed** (% style="color: rgb(0,0,0);" %)GetMissionLimit() (%%)**(% style="color: rgb(0,0,0);" %)and** **(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)**IsMissionLimit**(%%)**Enabled()** 368 368 ))) 369 369 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 370 370 ((( 371 -//These mission limit-related functions (added in 3.30 Beta 1 and 2) are replaced with FFI (% style="color: #000000" %)IsMissionLimit(%%)Reach(% style="color:#000000" %)ed()//382 +//These mission limit-related functions (added in 3.30 Beta 1 and 2) are replaced with FFI (% style="color: rgb(0,0,0);" %)IsMissionLimit(%%)Reach(% style="color: rgb(0,0,0);" %)ed()// 372 372 ))) 373 373 |(% colspan="3" %)(% colspan="3" %) 374 374 ((( ... ... @@ -474,7 +474,7 @@ 474 474 ))) 475 475 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 476 476 ((( 477 -//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.) 488 +//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.)\\ 478 478 479 479 //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).// 480 480 ))) ... ... @@ -812,7 +812,8 @@ 812 812 //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. 813 813 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.// 814 814 815 -//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.// 826 +//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. 827 +// 816 816 ))) 817 817 |(% colspan="1" %)(% colspan="1" %) 818 818 ((( ... ... @@ -961,7 +961,7 @@ 961 961 )))|((( 962 962 2.00 Beta 1 963 963 )))|((( 964 -(% style="color: #000000" %)**Lua:CalculateTotalHullFraction() **(%%)was removed.(% style="color:#000000" %)976 +(% 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);" %) 965 965 ))) 966 966 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 967 967 ((( ... ... @@ -972,7 +972,7 @@ 972 972 )))|((( 973 973 2.00 Beta 1 974 974 )))|((( 975 -**FFI: (% style="color: #000000" %)RequestDockAtReason()/UndockPlayerShip()(%%) **changed their return values.987 +**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. 976 976 ))) 977 977 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 978 978 ((( ... ... @@ -1031,7 +1031,8 @@ 1031 1031 ))) 1032 1032 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 1033 1033 ((( 1034 -//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.// 1046 +//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. 1047 +// 1035 1035 1036 1036 //The new function declaration is: void SetGuidance(UniverseID componentid, UIPosRot offset)// 1037 1037 ))) ... ... @@ -1044,7 +1044,7 @@ 1044 1044 ))) 1045 1045 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 1046 1046 ((( 1047 -(% style="color: #000000" %)//CancelConstruction() now returns if the cancellation was successful. //1060 +(% style="color: rgb(0,0,0);" %)//CancelConstruction() now returns if the cancellation was successful. // 1048 1048 ))) 1049 1049 |(% colspan="3" %)(% colspan="3" %) 1050 1050 ((( ... ... @@ -1074,5 +1074,5 @@ 1074 1074 ))) 1075 1075 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 1076 1076 ((( 1077 -//The AA setting was changed to check the new setting with the user. In order to restore the old setting (% style="color: #000000" %)GetAAOption() gets the option to retrieve the config settings.//1090 +//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.// 1078 1078 )))