Whiplash
Rear Admiral
*****************************************************
EDIT: I've uploaded v1.0 for your testing and feedback.
*****************************************************
Hi folks, best wishes for 2014!
I wanted to tell you a bit about my latest project. It's not another ship model; the Hellcat is still WIP and I will be sharing some more updates on that soon, hopefully.
I've been toying for a while now with the idea of creating some kind of app that could be used to calculate the most effective trade routes in Privateer. Many purists will no doubt tell me that figuring it out for yourself is half the fun, but I've done that anyway, and in fairness the official playguide also gives you quite a few hints.
Mostly though, I just wanted to see if it could be done, and to set myself a little programming challenge.
I've made good progress, and most of the groundwork for the calculation is done. As input, I used this pricelist, which should be pretty well-known to most of you:
https://www.wcnews.com/wcpedia/Privateer_Commodity_Prices
By copying this into Excel and applying some VB magic, I now have something that looks like this:
The price checker, for instance, will give you the lowest and highest prices for a commodity as well as the bases where they occur.
The function I am actually interested in though, is choosing your origin and destination, and then obtaining a list of the commodities you can trade as well as which ones will be the most profitable.
Here's the catch though: The spreadsheet gives you min and max values, but in reality these values almost never occur. You are far more likely to see values somewhere in between. Currently I'm calculating a simple average using (min+max)/2, but that is far too simplistic for my taste. It's more likely that the prices variations are defined by some kind of function.
So: If you have any thoughts or suggestions, please let me know. I'm hoping someone has an idea of how I could better model the price fluctuations.
EDIT: I've uploaded v1.0 for your testing and feedback.
*****************************************************
Hi folks, best wishes for 2014!
I wanted to tell you a bit about my latest project. It's not another ship model; the Hellcat is still WIP and I will be sharing some more updates on that soon, hopefully.
I've been toying for a while now with the idea of creating some kind of app that could be used to calculate the most effective trade routes in Privateer. Many purists will no doubt tell me that figuring it out for yourself is half the fun, but I've done that anyway, and in fairness the official playguide also gives you quite a few hints.
Mostly though, I just wanted to see if it could be done, and to set myself a little programming challenge.
I've made good progress, and most of the groundwork for the calculation is done. As input, I used this pricelist, which should be pretty well-known to most of you:
https://www.wcnews.com/wcpedia/Privateer_Commodity_Prices
By copying this into Excel and applying some VB magic, I now have something that looks like this:

The price checker, for instance, will give you the lowest and highest prices for a commodity as well as the bases where they occur.

The function I am actually interested in though, is choosing your origin and destination, and then obtaining a list of the commodities you can trade as well as which ones will be the most profitable.
Here's the catch though: The spreadsheet gives you min and max values, but in reality these values almost never occur. You are far more likely to see values somewhere in between. Currently I'm calculating a simple average using (min+max)/2, but that is far too simplistic for my taste. It's more likely that the prices variations are defined by some kind of function.
So: If you have any thoughts or suggestions, please let me know. I'm hoping someone has an idea of how I could better model the price fluctuations.
Attachments
Last edited by a moderator: