Author: ybeline
Version: BETA v0.6
Date: 22th may 2014
- Automatic Trading Inside Station (ATIS)
This mod gives you the best trade run inside a landing platform to get the best profits.
Keep visiting platforms, and you may find nice deals.
[ external image ]
Download last version (0.6)
Installation note:
Extract file in "...STEAM\SteamApps\common\X Rebirth\extensions".
Nota:
- This mod doesn't create or destroy anything.
- This mod only uses data from the game.
- It supports: Arms Dealers, Drone Dealers, Mining Suppliers, Junk Dealers, Space Farmers, Ship Technicians, Equipment Vendors, Food merchants and Black Marketeers
- You still should back up your savegames.
- Compatibility shouldn't be a problem.
- You obviously have to dock.
- Should you choose not to follow the proposed trade, you'll have to manually disable the guidance (for now).
Please, feel free to test it and share your opinion and critics

BETA v0.6 - 22th may 2014
- Older (but working) code
- Guidance added
- "save" parameter of "content.xml" set to "false"
BETA v0.5 - 8th dec 2013
- Code fully rewritten to allow the implementation of further improvements
- Number of lines of code shrinked by a factor of 7
- Some rare possibilities of wrong display have been fixed
BETA v0.4 - 1st dec 2013
- Some minor bugs fixed.
- Some minor features added.
BETA v0.3 - 30th nov 2013
- Some minor bugs dealt with.
BETA v0.2 - 30th nov 2013
- Added support for every trader NPCs.
ALPHA v0.1 - 30th nov 2013
- REDUCED version of the mod.
- it only works with Black Marketeers for the moment.
Original post
Edit#01
So, after some days of coding, reverse-engineering of X Rebirth modding capacities (and help from other modders), I got a fully functionnal mod, working as intended. It gives you the info of (inside a landing platform): who to buy what from, and who to sell what to, to get the best profits. I'll probably post it as soon as I've cleared some of the code. It's currently not displaying in a very sexy way, because it's currently impossible to use the display tabs.
If you're interested in how the mod works, go here to learn a bit about it.
Original post
Hello,
Some say that interacting with people inside stations is a hassle.
It is also a nice source of income at the beginning of a game.
The next paragraphs will describe the mod that informs you of the right 'trading plan' to follow in order to make maximum profits on one particular station:
who to buy what from, and who to sell what to.
Correct me if I'm wrong.
- Preliminary
- 1) It seems that, for every NPC, the ratio: (NPC buying price) / (NPC selling price) is a constant (~ 90%)
2) Moreover, it seems that, inside one station, NPCs of the same type share the same ratio
3) Just for the record, those prices are not a function of their current storageSo, knowing this, I'll now illustrate how to make money this way, by taking a simple example.
- Example
Inside one on the landing platforms of a station, you find 2 'Arms Dealers': AD_1 and AD_2.
They both sell and buy the same one type of 'Missiles': M_1.
You write down each of their selling prices.
Now, you determine which one is the lowest.
In this example, we take: 'AD_1 selling price' < 'AD_2 selling price'.
We will then buy M_1 from AD_1.
We now need to know if buying from AD_1 and selling to AD_2 will make profits.
What we need, is that: 'AD_1 selling price' < 'AD_2 buying price'.
How can we know the amount of money AD_2 will be willing to give us against some M_1?
To know this, if we do not have M_1 in our inventory, we'll estimate it by the '90% constant' I previously talked about in the preliminary:
'AD_2 buying price' ~ 0.9 * 'AD_2 selling price'
So, profits can only be made:
If 'AD_1 selling price' < 0.9 * 'AD_2 selling price'
Once you've met the appropriate NPCs inside a landing platform of a station, the goal of this mod is to make automatic the need of noting prices and the calculation part.
- Turning this into a mod
So, inside a particular station, when you meet a NPC inventory trader, his prices will be kept by your copilot. Once you've met every NPC in the station, an additionnal option in your 'Main menu >>> Trading' will appear and give you the choice to get a report on profits to be made on this landing platform: who to buy what from and who to sell what to.
The mod will cross-check goods and NPCs so, if multiple trades are profitable, they will be ordered by max profits. The necessary investment will also be displayed, accordingly to your current credits and as a function or the number of units to purchase (you might even not have enough credits to buy a single unit).
Nota:
It might even be simplier and more exact than what I told you about: if the mod can have access to NPCs prices, the '90% rule' is not even useful. But it still seems important that the exploration of the various NPCs of the station remains important for immersion purposes, even if the mod itself doesn't need it.
The only problem is, I currently do not have the knowledge to write such a mod.
- I need your advice
So, before trying to learn and understand the ropes, could someone experienced tell me if it's even possible?
Thank you,
Regards,
ybeline