A while ago I started a C#/XML cargo program, basing it on the LBB2 cargo stuff and the BITS cargo codes (and there may be some copyright issues from that....). Yes, yet another program for cargo handling...below is a copy of the original notes on that.
There are essentially 4 parts:
the actual program (the .exe)
the cargo definition file (an external file, allowing the user to modify it as they want for TTU)
the cargo manifest file (another external XML file, tracking cargoes for a specific ship and allowing you to print out a very basic manifest)
the subsector XML file (used to calculate distances and cargo availability)
it is in dire need of work but then I got sidetracked by RL & work. There is actually an MSI file that has it all
if interested, the default XML cargo file looks like:
http://webpages.charter.net/coliver988/cargos.xml
the cargo manifest file looks like:
http://webpages.charter.net/coliver988/OneJumpAhead.XML
and the Regina subsector data file (yes, yet another sector file definition; eventually I may play with being able to import other versions out there) note that Regina is expanded out to include the LBB6 description, and that this is a work in progress for some potential future project:
http://webpages.charter.net/coliver988/SpinwardMarches.xml
(and after reviewing some XML formats posted around here somewhere I may use that format instead - it was cleaner).
And the cargo profile:
http://webpages.charter.net/coliver988/cargodefs.xml
My reasoning behind using external XML files to contain the data is:
1. it allows the users to make manual adjustments if they want to (the prime example would be to modify the cargo definition file to use the more 'standard' Traveller cargo container sizes)
2. using XML/XPATH makes a lightweight database system that, if using Windows at least, has no overhead since it is simply a text file that is very easily searchable
3. there are many free XML editors out there
4. most web browsers can do basic tree views of an XML file
5. as originally posted, I needed to do some experimentation for work
Finally, you can download the program as well from here:
http://webpages.charter.net/coliver988/Cargos.exe
(installer version w/files:
http://webpages.charter.net/coliver988/CargoSetup.msi )
You will need the above XML files as well - just stick them all in the same place if you want to try this out. There are a few known bugs I plan on working out if there is any interest.
Here's the main page where you select cargoes (and I just realized this is only for speculative cargoes - I probably should allow you to pick the bulk cargoes & passengers as well. And I need to update the links: if connected to the web the program actually uses Josh Bell's Traveller map, and he's just released all those APIs I need to dig through!):