User Tools

Site Tools


Sidebar

Content

Mapcraft - Fantasy map designer

WorldGen - SciFi universe generator

Mapcraft Web - Web based fantasy map designer

All code for the project is released under the GPL, and is copyright Samuel Penn.

The text on this wiki is dual licensed CC-BY-SA and GPL.

You can contact the author at sam@glendale.org.uk

worldgen:trade

Trade

As part of simulating the economy, we need to keep track of what goods a planet has, and how many of those goods are being produced and consumed. All such information is held in the trade table.

Column Usage
amount How many dt of this good the planet currently has in stock.
produced How many dt the planet produced in the last week. Production includes from resources and also industry etc.
consumed How many dt the planet consumed in the last week. Consumption can be by residential or other facilities.
bought How many dt the planet bought from ship cargo this week. This value is not included in the production figure.
sold How many dt the planet sold to ships this week. This figure is not counted as part of consumption.
weeklyin Weighted total of dt gained (produced and bought).
weeklyout Weighted total of dt lost (consumed and sold).

The weeklyin and weeklyout is updated each week. The last week's total of (produced + bought) is added to half the previous weeklyin. Same for consumed + sold for weeklyout. Not sure how this will be used yet, but may give a better picture of what is needed.

worldgen/trade.txt · Last modified: 2015/02/04 22:39 (external edit)