Changes for page Breaking Changes
Last modified by Michael Baumgardt on 2026/04/17 12:03
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. matthias1 +xwiki:XWiki.stefan - Content
-
... ... @@ -32,57 +32,15 @@ 32 32 ((( 33 33 == 4.00 == 34 34 ))) 35 -|((( 36 -Scripts 37 -)))|((( 38 -4.00 Beta 7 39 -)))|((( 40 -Parameters of **<event_terraforming_project_succeeded>** and **<event_terraforming_project_failed>** changed 41 -)))|((( 42 - 43 -))) 44 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 45 -((( 46 -//Old params: param = project ID, param2 = were there positive side-effects?, param3 = were there negative side-effects? 47 -New params: param = project ID, param2 = [were there positive side-effects?, were there negative side-effects?], param3 = payout in Credits 48 -Note: param3 only exists in <event_terraforming_project_succeeded> and not in <event_terraforming_project_failed>, but both now have the booleans in a list for consistency// 49 -)))|(% class="highlight-grey" data-highlight-colour="grey" %)(% class="highlight-grey" data-highlight-colour="grey" %) 50 -((( 51 - 52 -))) 53 53 |(% colspan="1" %)(% colspan="1" %) 54 54 ((( 55 55 UI core 56 56 )))|(% colspan="1" %)(% colspan="1" %) 57 57 ((( 58 -4.00 Beta 6 59 -)))|(% colspan="1" %)(% colspan="1" %) 60 -((( 61 -**FFI:** GetFactionRelationStatus() handling for faction relation range [-20,-10] changed 62 -)))|(% colspan="1" %)(% colspan="1" %) 63 -((( 64 - 65 -))) 66 -|(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 67 -((( 68 -//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. 69 -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).// 70 - 71 -//If you rely on a handling where these factions are treated like enemies, please use the new GetFactionRelationStatus2() function instead. 72 -// 73 -)))|(% colspan="1" %)(% colspan="1" %) 74 -((( 75 - 76 -))) 77 -|(% colspan="1" %)(% colspan="1" %) 78 -((( 79 -UI core 80 -)))|(% colspan="1" %)(% colspan="1" %) 81 -((( 82 82 4.00 Beta 5 83 83 )))|(% colspan="1" %)(% colspan="1" %) 84 84 ((( 85 -**FFI:** GetRelationStatus()/GetRelationStatus2() handling for objects in relation range [-25,-10] changed 43 +**FFI:** GetRelationStatus()/GetRelationStatus2() handling for objects in ranges relation range [-25,-10] changed 86 86 )))|(% colspan="1" %)(% colspan="1" %) 87 87 ((( 88 88 ... ... @@ -89,9 +89,9 @@ 89 89 ))) 90 90 |(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %)(% class="highlight-grey" colspan="3" data-highlight-colour="grey" %) 91 91 ((( 92 -//4.00 Beta 5// //introduces a new ' hostile' relation status and thegamenow distinguishes between hostile and enemyrelation states. Objectsnot yet 'hostile'withthe player are now visualized differentlyandtherefore distinguishablefrom realhostileones.Because of that, several related changesweremade forthese objects to bringthem morein linewith how 'neutral' objectsbehave (f.e.no automaticattackingof these objects by theplayer property anymore,notargetselectionwhentargeting the closest enemy, etc.).To reflectthis, theseobjects arenowreturning1(neutral)astherelationstatus by theGetRelationStatus()/GetRelationStatus2() functions.//93 - 94 - //If you rely on a handling where they are treated like enemies, please use the new GetRelationStatus3() //function which returns the new range for these objects: 1 (meaning 'enemy'(aka: not yethostile) here with following relations having been shifted up).50 +//4.00 Beta 5// //introduces a new 'adversary' relation state. Previously objects within that relation range were categorized as 'enemy' and GetRelationStatus()/GetRelationStatus2() therefore returned 0 (enemy) for these objects. 51 +Since these 'adversary' objects are now visualized and therefore distinguishable from enemies, several related changes were made for these objects to bring them more in line with how 'neutral' objects are handled (f.e. no automatic attacking of these objects by the player property anymore, no target selection when targeting the closest enemy, etc.). To reflect this, these objects are now returning 1 (neutral) as the relation status by the GetRelationStatus()/GetRelationStatus2() functions. 52 +If you rely on a handling where they are treated like enemies, please use the new GetRelationStatus3() //FFI function which returns the new range for these objects: 1 (meaning 'adversary' here with following relations having been shifted up). 95 95 )))|(% colspan="1" %)(% colspan="1" %) 96 96 ((( 97 97
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -10 19092991 +100860974 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://www.egosoft.com:8444/confluence/wiki/spaces/X4WIKI/pages/10 1909299/Breaking Changes1 +https://www.egosoft.com:8444/confluence/wiki/spaces/X4WIKI/pages/100860974/Breaking Changes