Merchant ships - units.csv identifier

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.

Merchant ships - units.csv identifier

Postby GoldenGnu » Wed Nov 21, 2007 7:31 am

How can I identify merchant ships, you can trade with, in units.csv?

I'm in the process of adding them to VSTrade, but, I'm unsure how to identify them properly...

Any help would be appreciated... :)
Image
VSTrade - A Merchants Guide to Intergalactic Trading!
0.3.0.0 Stable (3 july 2008)
User avatar
GoldenGnu
Bounty Hunter
Bounty Hunter
 
Posts: 155
Topics: 9
Joined: Fri Jan 27, 2006 11:58 am
Location: Denmark

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Postby jackS » Wed Nov 21, 2007 11:44 am

if a ship has
A) a docking port specified
B) a non-empty cargo_import field

then you can dock with said vessel and purchase the goods present. If it has a docking port but no cargo import field (I don't think there are any as such, but it's certainly a valid state) then you can sell, but they'll have nothing of their own for sale.
User avatar
jackS
Minister of Information
Minister of Information
 
Posts: 1895
Topics: 56
Joined: Fri Jan 31, 2003 2:40 pm
Location: The center of Centre county

Postby GoldenGnu » Wed Nov 21, 2007 2:23 pm

Thank you very much :) That's exactly what I needed :D
Image
VSTrade - A Merchants Guide to Intergalactic Trading!
0.3.0.0 Stable (3 july 2008)
User avatar
GoldenGnu
Bounty Hunter
Bounty Hunter
 
Posts: 155
Topics: 9
Joined: Fri Jan 27, 2006 11:58 am
Location: Denmark


Return to Tools & Utilities

Who is online

Users browsing this forum: No registered users and 1 guest