Discovery Gaming Community
Trade routes search is enhanced. Darkstat becomes live web backend - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Discovery General (https://discoverygc.com/forums/forumdisplay.php?fid=3)
+--- Forum: News and Announcements (https://discoverygc.com/forums/forumdisplay.php?fid=13)
+--- Thread: Trade routes search is enhanced. Darkstat becomes live web backend (/showthread.php?tid=207734)



Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 04-28-2025



(sun) Darkstat accomplishes its effort in migrating to become Live Web Backend behind cloudflare CDN for caching
instead of being only Static Site Generator deployed to Github Pages.
That's kind major move since initial design of the app is having significant changes to meet new challenges necessary for Freelancer Discovery.
At the same time it remains usable as Static Site Generator for not Discovery freelancer mods. That helps to make more live updating to data, instead of facing github pages limits to how much often the site can be updated.

PoBs, PoB goods, Best Trades, Trade From, Trade To, Ore Routes tabs now show data within 10-20 minutes delay.
To confirm things even further, pages and their subparts print Page Time of its render just in case.

That effort was done to provide in a sensible new features regarding Trade Routes searching.
  • Best Trades, Trade From, Trade To tabs show now new parameter: Kilo volumes, how many thousands of cargo volumes it is possible to buy from base and to sell to the target base on the trade route in question
    • This value accounts present money on bases if the bases expose their money, encouraging to show this value for more precise feature work
    • Also this value accounts for Quantity of cargo on base obviously, the base min stock, max stock params and how much space cargo is left on the base
    • The trade routes (at "Best Trades", "Trade From", "Trade To") are filtered away if they offer less than 5k kilo volumes of cargo to deliver
  • PoBs, PoB Goods tabs show kilo volumes too for how much you can sell or to buy from base. (To simplify comprehension of data)
  • New tab "Best Trades", which shows best 800 trade routes sorted by formula: 50% of profit/v/s + 50% time weight (linear, 0 at 0min, max at 10min).
    • Excluded routes with less than 5k volume of cargo, and with not sufficient money at pobs to buy or to sell cargo (if base shows its money)
    • If the trade route is beyond the 800 limit of routes, they aren't shown. I can't show more due to browser performance reasons at this point, unless will be done some more backend magic.
  • New tab "Trade To", shows all trade routes to specific base. (trade routes with less than 5k volume of cargo (kilo volumes) to buy and to sell are excluded)
  • previous tab "Trade Routes" is renamed to "Trade From". and has excluded routes with less than 5k available volumes of cargo (kilo volumes) to deliver on its way.
  • Multiple tabs acquired documentational page hint regarding what is this tab about and lifehack how to use them to their full potential
    • Like hint how to find compatible Engine for your ship, or hint onto how to find compatible Gun, Missile, Shield and etc. with link to docs
  • previous https://darklab8.github.io/fl-data-discovery/ links become redirected to new url https://darkstat.dd84ai.com

So shortly summarizing, darkstat is now able to provide nearly real time much more useful trading data with accounting for pob goods having limited amount of cargo to buy and to sell.
All those new features should make darkstat significantly more useful than flcompanion for trade route searching, since pob related goods participate now comfortably in trade routes shown

Future plans: the remaining tabs still have update only once in 4 hours, i will convert them to same real time update later. Trade routes were the most difficult part and it was already handled Angel The rest is just minor stuff to polish later.







P.S. full feature availability in terms of quick update, should become available since 7 AM UTC 28-04-2025 for sure, at this time old cache should expire and new settings to take place. Until then u are free to purge cache on your own in order to access it earlier.


RE: Trade routes search is enhanced. Darkstat becomes live web backend - Xenon - 04-28-2025

You are one of the hardest-working and most devoted developers on DiscoveryGC
Thank you for all the efforts, as usual, mate

This is awesome!



RE: Trade routes search is enhanced. Darkstat becomes live web backend - SSV - 04-28-2025

Saint man


RE: Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 05-01-2025

issue tracker: https://github.com/darklab8/fl-darkstat/issues/125

A bit of a bug is discovered with "Best Trades" tab, caching is not working as desired and the tab is getting opened 7 seconds in average on first attempt if cache is out of date
After that cache is provided only for 5 minutes to open it faster within a second
So it is working, but long to open when cache expired. it will be fixed later.




RE: Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 05-01-2025


Looks like i managed to fix caching to work properly. now it is just 25 milliseconds at web server side instead of 7 seconds (sun)
Issue is mitigated, "Best Trades" should open always fast now


RE: Trade routes search is enhanced. Darkstat becomes live web backend - Khmer Anderson - 05-01-2025

This is a great resource and really helps develop new markets and trade routes, especially with lesser-known commodities.

Thanks very much for all your help!


RE: Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 05-02-2025

(05-01-2025, 10:12 PM)Khmer Anderson Wrote: This is a great resource and really helps develop new markets and trade routes, especially with lesser-known commodities.

Thanks very much for all your help!

(sun) You are welcome.
Changes are brought with the help of Go language having Gopher mascot
With this technlogy, it is just pleasant bringing changes Angel
[Image: gopher-happy-ezgif-com-optimize.gif]


RE: Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 05-06-2025

Consequentive release to increase quality of life towards this feature. Kilo volumes are grouped with Profit per volume and Time of route
And kilo volumes were coloured in red if 5 or below, and in green if above 25. Values between 5 to 25 are shades between red to green, with middle value being yellow

This should help you navigate this feature more wisely and picking easier routes with big enough amount of cargo volume still being available to them.
You can pick more easily route that has cargo at least 20k or higher, thus having sufficient cargo for 4 deliveries by 5k ships.
Ensuring higher confidence of using valid route as long as u refreshed information recently.

At the same time in low traffic situation u can be still using more risky and rewarding "red" routes with low kilo volumes available to them.

Best route u could be wishing to pick has a good combination of Profit per volume, Kilo volumes amount and Delivery time at the same time.
Or alternatively Profit per volume and per second being good, Kilo volumes being good and route time being higher enough






RE: Trade routes search is enhanced. Darkstat becomes live web backend - darkwind - 05-06-2025

Angel Note: I encourage more PoB owners clicking to show Money at their bases publicly in their PoB account manager.
The trade route info above accounts in kilo volumes information about sufficient present money to buy or to sell cargo as part of the formula as long as this information is exposed (besides amount of deliverable volume of cargo)

Than more pobs expose money shown, then more precise information players will see and less mistakes will be made.

[Image: qpGUmcsv_o.gif]

P.S. for the same of same precision increase i will make sure to even further decrease time to see updated page, from 10-15 minutes to 1-6 minutes perhaps.