Version 6.20, English
Vanilla install, no mods or scripts
Selected Game Start has no effect
DxDiag (https://drive.google.com/file/d/1Pyt6Hx ... sp=sharing)
Vulkaninfo (https://drive.google.com/file/d/1oaJmwD ... drive_link)
-Problem Description-
Trader's assigned to stations ignore all discounts/commissions (regardless of type and amount), and bonuses from faction relations when determining whether or not a trade is acceptable for the parent station's set price thresholds.
This leads to a lot of ships stuck in "Cannot find trade" status even though there appears to be trades available when viewing the map.
-Testing Setup-
Test Station (WBJ-759) in Tharka's Ravine XVI with 1 trader assigned to it
Trading station has trade sector restrictions to only allow trading in Heart of Acrimony II, Tharka's Ravine XVI and Tharka's Ravine XXIV
KLZ-781 (Microchips) in Tharka's Ravine XXIV will be used to test buying something from an NPC factory, specifically Microchips
Microchips have an average price of 948 Cr
Through testing, I believe I have the final displayed price calculation locked down to this formula
Final Price = (Average Price) * (((1+(SupplyModifer/100))+(DiscountOrCommission/100))*(1+(RelationBonus/100)))
DiscountOrCommission appears to be an integer value and RelationBonus appears to be a float that is different for each particular trade good.
SupplyModifier is the change in price due to available stock.
-Test Results-
Purchasing Microchips with a hacked discount:
Using this Save File (https://drive.google.com/file/d/1XwWqYu ... drive_link) you can hack the station to introduce a 3% discount. However, the trader attached to WBJ-759 will still only purchase from KLZ-781 when the set price point for Microchips assumes a 0 for DiscountOrCommission. The station is displaying 790 but the trader will only "find" the trade if the price is 820 as that was the price threshold without the discount applied.
Purchasing Microchips with a relationship discount:
Using this Save File (https://drive.google.com/file/d/1rmNhSc ... sp=sharing) you can see that we have a 2% Relationship discount (which appears to actually be 2.25% for Microchips). However, the trader attached to WBJ-759 will still only purchase from KLZ-781 when the set price point for Microchips assumes a 0 for RelationshipBonus. The station is displaying 825.27 but the trader will only "find" the trade if the price is 845 or higher.
Using our formula, we obtain a SupplyModifier of -10.9424% and plugging this back in with RelationBonus set to 0 gives us a final price of 844.26 which is why 845 is the lowest acceptable price threshold.
Selling goods displays the same problem where a set sell threshold will only account for a purchasing station's Supply Modifier when determining whether or not to initiate a trade.
-Additional Information-
Neither Pilot nor Manager skill has any effect on this behavior
The credits credited/debited from the station account is properly calculated using the displayed price accounting for all modifiers
[#1516] Station Traders only consider Supply when determining trade acceptability given parent's price thresholds
Ask here if you experience technical problems with X4: Foundations.
Moderator: Moderators for English X Forum
1 post
• Page 1 of 1
-
- Posts: 32
- Joined: Tue, 27. Nov 18, 04:34
1 post
• Page 1 of 1
Return to “X4: Foundations - Technical Support”
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting