Posted on Leave a comment

Under the hood on trade, part 2!

Hello everyone!

For this second installment of trade, we’re going to finish explaining how trade works and go into some detail of how you can use trade to your advantage!

When we left, all of the trades in the Empire had been reviewed for the ability to fufill; i.e. does a planet have the resources to fill the order, and do they want to? In other words, just because a planet has 50 Rare materials, that doesn’t mean that they want to export them all (every planet has upkeep) So, with that in mind, a viceroy must determine what’s best for their planet. It might be that they are aggressively trying to raise cash so that they are looking to sell more inventory and bring their planet to profitability (having a money-losing planet unnerves Pops, who don’t want to live on a planet that can’t sustain a profitable economy) or they’re just greedy bastards who want to take more of the personal cut (Viceroys typically get 5% of all income on a planet, AS LONG AS IT IS PROFITABLE, which increases their Power and ability to do things like assist with Projects).

So let’s look at the next step, determining profitability.

Now determining trade profitability for the Celestial Empire.

Viceroy Gluttony: -4 Trade Aptitude: 9 Humanity: 52
Trade hub Juthrbog’s viceroy will not consider trades with less than $1.6 BCs per trade.

So Juthrbog’s viceroy is now examining trades that they have put under review by profitability. They make a determination of how profitable a trip needs to be in order to accept it. Remember, Viceroys have a limited number of fleets that they can deploy at any one time, and they are real objects in the world – if a fleet takes a very long time to get from planet A to planet B, those ships will not be available for quite a while, so the viceroy has to make a cost/time/benefit analysis to having those ships unavailable for a while. In future builds, Viceroys will also make decisions based on relationships with the requesting Viceroys, meaning they will ‘cut a break’ with Viceroys that they have an allied or friendly relationship with.


In this case, they have a Gluttony state of -4, which is about normal (0 is considered ‘average’, and the scale is -100 to 100), so they’re not particularly greedy. They have almost no trade aptitude, (0 to 200) which means they will usually not select the ‘best’ deal and be weighted for other things, like helping their friends and ensuring that food and energy go to planets that need it, emphasized by their Humanity of 52 (pretty high). So they’ll basically take deals that help other planets more, all things being equal, and not look to make much profit. In this case, however, Juthrbog is not reviewing any trades this month, so the program moves to the next hub.

Viceroy Gluttony: -45 Trade Aptitude: 102 Humanity: 43
Trade hub Meide’s viceroy will not consider trades with less than $2.7 BCs per trade.
Viceroy is considering trade with Juthrbog for Energy. The current profit per unit based on prices and energy needed for the trip is 0.0 BCs, with total profit of 0.0.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.

So Meide’s Viceroy has a very low Gluttony, but a very high Trade Aptitude, meaning that they will tend to take smart, profitable trades even though they have a pretty high Humanity. So, their floor for a trade is $2.7 BC’s (billion credits) per trade, as opposed to Juthrbog’s at $1.6 BCs. Juthrbog requested 2 units of Energy for $0.7 BC’s total (for an average of $0.35 BC/unit, less than what Luminescence was offering, remember?) With the distance this trade will have to travel, and the low amount requested, this trade would actually LOSE money, so not surprisingly, it is kicked to the curb swiftly by the incredulous Meide viceroy.

Viceroy Gluttony: -86 Trade Aptitude: 99 Humanity: 33
Trade hub Voluspa’s viceroy will not consider trades with less than $0.2 MCs per trade.
Viceroy is considering trade with Illitch for Basic. The current profit per unit based on prices and energy needed for the trip is 0.3 MCs, with total profit of 0.6.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $2.2. Total expected profit: $0.6.
Viceroy is considering trade with Luminescence for Basic. The current profit per unit based on prices and energy needed for the trip is 0.3 MCs, with total profit of 2.7.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $9.8. Total expected profit: $2.7.
…. There are excess potential trades for number of available fleets! As a result, the trade from Voluspa to Illitch is denied due to other trades being more profitable!

OK, now Volupsa is up. They’re looking at several trades here, including with Illitch and Luminescence. Now, remember that Volupsa only has 1 available fleet? (they only have 18 Merchants, and it takes 10 per active trade fleet) So they need to make it count!


With a super low Gluttony, this Viceroy is not really interested in profit for himself, so it comes down to which trade is smarter for the planet? Illitch is requesting a trade for 2 units of Basic for $0.58 BCs per unit. Pretty good offer, but the volume is low.


Luminescence, however, is asking for 10 units of Basic for $.6 BCs per unit. Better offer, and more volume. That’s why the total expected profit is much higher ($2.7 BCs vs. $0.6 BCs) Even with requiring more fuel and ships to sent 10 units, it’s still an equal profit per unit for both trades, so volume wins out. Even though both trades were accepted, since Volupsa can only create one trade fleet, the trade from Illitch is denied in favor of Luminescence! Yay!!!

And the trade (white ship) is now on the way to Luminescence! Yay!! It should arrive in 4 months, as seen by the text above the ship.

So all’s well that ends well. Volupsa made a profitable trade, Luminescence is getting basic materials that they need, and they didn’t pay an exorbitant price. As more House diplomatic dynamics are fleshed out, there will be more emphasis placed on relations between Houses and the Empire, and between Houses with each other.


So that’s great and all, you ask, but how can I use this to my advantage? Ah, young Emperor, you have asked a great questions. Let me explain.


The most important concepts to understand is that YOU DO NOT CONTROL TRADE. You can direct its flow, and you will soon be given the power to embargo planets, systems, or even whole provinces from trade, but until that time your power lies in creating the infrastructure required to trade. If a system does not have a trade hub that is not connected to a larger province hub, they can only trade with planets in their system with a trade hub. A connected and large, province-spanning Trade Group, however, connects ALL systems within its borders as long as the system has a hub. So in the example above, the Ipabog system is cut off from the Podaga trade group because they don’t have a system hub. However, when/if they build one, their proximity to the hub influence of both Percunatel and Podaga (the big purple circles) will ensure that they will be added to the Podaga trade group once they have a system hub built. That will have several effects:


* The Pops in Ipabog will be happier since they will have access to more goods (their Retail Sector will improve, which increases Happiness and generates income)

* 2 more planets will be added to the trade group, meaning that there are more possibilities for trade proposals, and thus more competition for better trades

* For you, this means that materials generated in the Ipabog system will now have a way to get to the Podoga Province hub, which means more supply fleets will be generated, meaning more materials for the Empire!

So in order to facilitate trade, you need several things to happen:
* You need merchants, who are drawn to larger trade infrastructure planets (the bigger hub and starbase, the better!) With more merchants, you can…
* …Have more trade fleets, and a larger retail sector, which can generate more income, which allows….
* …Your planets’ Average Development Level (ADL) to increase (representing more affluence and development), which allows…
* …More Pops to move to your planet, since they see wealth and opportunity, which allows…
* …More Factories and Mines to be built, which create…
* …More excess Trade Goods (materials) that can be sold at a profit by…
* …Merchants, who are drawn to larger trade infrastructure….

And that’s the circle of trade, when it’s executed right. Of course, you need competent Pops and Viceroys to make this work, which we’ll explore in this evening’s blog detailing Viceroys.


Until then, have a great day!

-Steve

Posted on Leave a comment

As .7 approaches, here’s an under-the hood guide on how trade happens!

Hey everyone! Looks like we’re going to launch .7 any day now, but I wanted to showcase a few either new or vastly improved/updated elements of the game. The first one is trade. It’s been upgraded and tweaked, and now it’s a powerful part of the game but even though the underlying process is pretty complex, it’s easy for the player to use and direct trade how they want! Let’s dive in:

First, a primer of how trade (now) works in AotSS. It’s really pretty fundamental. Your noble merchants on each planet have 2 uses: to build and expand the retail sector on a planet, and to coordinate and organize the gigantic trade fleets that move thousands of tons of materials throughout the Empire. Without merchants, a planet can not create trade fleets, meaning they can not buy materials (this is not a good situation to be in). In addition, a planet can have one of 4 trade states: no trade, import only, system hub, or province hub. As long as a planet has a starbase, they can receive goods, but not create Trades. If they don’t have a Starbase, they’re out of luck. If they have a trade port, they can send materials (called supply trades) as well to their local system or province Hub, but not create economic trades. An outpost would have a trade port so they can forward their materials to a home Hub. Next comes system hubs. System hubs are meant to collect all trade in their system. If their Influence is large enough, they will be able to be part of a Trade Group, which is anchored by a Province Hub. Only Province Hubs have the infrastructure needed to deploy interstellar fleets and send supply trades to the Empire homeworld. Hubs can create as many fleets per month as their level of Starbase, so a level III base would be able to create 3 different economic trades (supply Trades have no limit) and it takes 10 Merchants to create a Trade Fleet (not applicable to supply trades). These Merchants are tied up while administrating these fleets, and are not available for the retail sector during their use. That’s the trade system at its most basic level.

So, let’s look at our neighborhood that we’re going to focus on today.

We’re going to focus on the planet Luminescence of the Percunatel system today.

So the first thing that we’re going to look at is the situation on the planet. What does the viceroy think is most important to the planet at this time? Every material is given an Importance by the viceroy that runs from 0-100, where 0 means there is very little need for that material at this time (and in the near future) while 100 means that the viceroy is desperate for that material, for whatever reason.

So let’s look at L’s situation at the start of the game:

Luminescence’s situation. You can see that she has a trade hub (system) and has a desperate need for basic materials (that’s the 100 under Import Needs in the system info block)

So what’s the deal? Why does the viceroy need basic materials so badly? Let’s dig deeper into the planetary situation…

Oh boy. They’re cranking through basic materials very quickly, with all those factories it’s no wonder! Looks like the planet will be out of basic materials in about 15 months. And without basic materials, things start to fall apart and infrastructure starts to decay. This leads to bad things like riots and people leaving the planet. Let’s see what we can do to help! Maybe ask the viceroy to build some mines?
Woof. With an overall basic material mining rating of 44, that’s going to be a tough proposition. We could ask the viceroy to lower the factory overdrive to use less materials, but it’s far from certain that they would go along, especially since this is a pretty ambitious Viceroy. Guess we should focus on making sure that the planet can get them through trade, huh? Let’s dig in and see how that works.

The first thing that the trade manager does is go through each planet and determine what the needs are, how badly the planet needs them, and what the viceroy is willing to do/pay to get certain materials.

RESOURCE PRICES FOR CELESTIAL EMPIRE IN GALACTIC YEAR 3,050.1
FOOD ENERGY BASIC HEAVY RARE
0.1 0.6 0.3 0.4 0.7

Ok. So prices globally for Basic Materials throughout the Empire average $.3 BC (billion credits) per unit. (Remember that a unit is about 100 tons; we’re talking planet-scale quantities.) Let’s see the analysis for Luminescence by the viceroy that is conducted at the start of every turn: (By the way – this is not in-game text – this is generated by an error logger that is accessible for anyone playing the game!)

TRADE ANALYSIS FOR PLANET LUMINESCENCE OF THE CIVILIZATION CELESTIAL EMPIRE
VICEROY HUMANITY: 7 INTELLIGENCE: 76 CAUTION: 77
Viceroy Carlitian Perry on planet Luminescence is calculating Importances….
Food Importance: 0.0
Energy Importance: 0.0
Basic Importance: 100.0
Heavy Importance: 0.0
Rare Importance: 0.0

So this tells us that the viceroy with a low Humanity probably won’t care that much about things like food or energy and will more likely focus on things that build empire like basic/heavy/rare materials. Food doesn’t build warships, after all. The viceroy has a fairly high Intelligence and a high Caution, which is important.


Total Import Budget for this month is calculated at $8.3 based on a GPP of $415.2 less trade expenses this year of $0.0 and a percentage dedicated to trade of 21 %.
The yearly import budget is $127.3.
Viceroy allocates $0.0 MCs towards food imports this month.
Viceroy allocates $0.0 MCs towards energy imports this month.
Viceroy allocates $5.4 MCs towards basic imports this month.
Viceroy allocates $0.0 MCs towards heavy imports this month.
Viceroy allocates $0.0 MCs towards rare imports this month.
After allocations, there is $2.9 remaining this month to use for adjusting import bids, or if not used, to return to the yearly import budget.

Next, the viceroy determines the monthly import budget. While they are allowed to deficit spend, more intelligent viceroys will hesitate to do that unless very necessary. So in this case, Viceroy Perry has set aside $8.3 BC for trade purposes. He then looks at the relative importance of each good and allocates a tentative budget to each one.


With a monthly shortfall of -23.3, 0.0 food units are requested from the viceroy this month.
With a monthly shortfall of -2.3, 0.0 energy units are requested from the viceroy this month.
With a monthly shortfall of 12.6, 137.3 basic units are requested from the viceroy this month.
With a monthly shortfall of -3.0, 0.0 heavy units are requested from the viceroy this month.
With a monthly shortfall of 1.9, 20.7 rare units are requested from the viceroy this month.
New Trade Request generated! Taking export budget into account, Luminescence requests 9.75 units of Basic at a max price per unit of 0.6.
No trade generated for rare – adjusted unit need was zero.
No trade generated for heavy – adjusted unit need was zero.
TRADE ANALYSIS COMPLETED FOR Luminescence…

OK. Now the various state and local governments have weighed in on what they feel they need this month based on projected output and usage. This is presented to the viceroy as a ‘shopping list’ of sorts that the viceroy can use or ignore based on what they see fit. In this case. the government feels that rare materials would be nice to have as well, but Viceroy Perry disagrees. He will take their need into consideration, but he is not willing to obliterate his export budget and put out a request for 137 units of basic (or 21 units of rare, which is much more expensive!) so after weighing the factors (which also includes what his House directive is – if their directive is to stockpile resources, then he might be much more willing to overspend) Perry decides to put a trade request out for almost 10 units of Basic, and he is willing to pay up to $0.6 per unit (remember basic is going for about $0.3 per unit, so he’s pretty desperate) This trade request will go out to the entire trade group that Luminescence belongs to (the Podaga trade group) as well as New Terra (with a civ hub they can reach all Provinces)

Now that the trade request is out on the ‘open market’, what happens now?

Looking within PODAGA TRADE GROUP….
Connected to civilization trade hub, so checking that trade hub as well…

So each trade hub is looked at one at a time, and if the trade hub is connected to the civilization hub (New Terra) than a check is made there as well. Basically, think of it as a market across the Empire where different worlds are competing for a limited set of trade resources, and they’re posting trade proposals across their own Trade Hub as well as the Empire’s capital. Remember that distance adds costs to trade fleets, so if you live out in the hinterlands you’d better be prepared to pay a lot to get traders to go that far. This is the Trade Hub where L resides, so we’ll look at that process now.

Checking civtradehub: New Terra.

Checking on valid trades for planet Voluspa….
There are no active trade proposals on Voluspa.

Checking on valid trades for planet Illitch….
Trade for basic materials denied due to zero basic surplus.This may be due to lack of production or an excess of caution on the viceroy’s part.

So each trade hub (province, system, New Terra) goes through all the trade requests that they can reach (must be in their Trade Hub or a province hub connected to the capital) They loot at trades on 2 levels: First, can they actually fufill what the request is asking for? To determine that, each Viceroy when looking over a proposal considers their own planet’s needs – are they looking to raise money, hoard materials, some of both? Is the Viceroy a Trader? Their culture also comes into play as to how aggressively they will seek out trades and try to fill them. In Illitch’s case, New Terra (the hub currently being checked) is not willing to part with ANY basic materials, probably because they have a high Caution and/or their House (well, your House, but if this were an AI House it would try to act to the House wishes as long as they don’t have a grudge or a stupid low Honor). So this Viceroy will not trade ANY basic materials to ANYONE this month. This is updated every month, but for now the port is closed with regards to basic.

Checking on valid trades for planet Luminescence….
Trade for basic materials denied due to zero basic surplus.This may be due to lack of production or an excess of caution on the viceroy’s part.

Checking provincetradehub: Voluspa.

Now the Province Hub, Voluspa, is checking out the trade requests, and making their decisions.

Checking on valid trades for planet Illitch….
Basic material request found for Illitch! Checking stockpiles to see if it can be considered…
Basic materials requested: 2.2 units. Basic materials allocated for export on Voluspa: 51(includes 3 % allocated from stockpiles)
Trade request has been accepted and is now under review: 2 Basic units of basic for 1.2 MCs requested from Voluspa to Illitch.

Checking on valid trades for planet Luminescence….
Basic material request found for Luminescence! Checking stockpiles to see if it can be considered…
Basic materials requested: 9.8 units. Basic materials allocated for export on Voluspa: 51(includes 3 % allocated from stockpiles)
Trade request has been accepted and is now under review: 10 Basic units of basic for 5.4 MCs requested from Voluspa to Luminescence.

Bingo! Voluspa’s viceroy is not so tight-fisted as the NT viceroy when it comes to their materials, and they have released 51 units of basic for (potential) sale. As you can see, that’s only 3% of their total stockpile, so it’s not like they’re giving away the farm, so this is probably a pretty Cautious Viceroy. So Voluspa has agreed to review the trade. It now goes into ‘review’ status. Basically, review status is where once all of the trade proposals across the Empire have been looked at and determined what planets could handle them, they ‘compete’ to take the best deal (i.e. the most profitable). Coming soon: Part 2, where we determine what trades make the cut, how fleets form, and how you (the player) can manipulate the trade system to your advantage!)

Until later – Steve!

Posted on 1 Comment

Developer Diary: In-Depth – Trade System

Hello everyone! As we prepare for the first EA release in a few months, I will be writing some extensive diaries and focusing on specific systems that are already in the game, so you have a better idea of exactly how they work. The first system that I am going to explore in detail is trade. We wrote a trade primer several months ago, so this is going to build on that and focus on more detail, including using internal error logs to help readers understand how the system is thinking when trades are considered!

First, a short reminder of how the trade system works, macro-scale. There are 3 types of trade ‘hubs’: Empire, Province, and Secondary. Trade can only happen within these spheres of influence (SOI) that they generate- if a planet does not have at least a secondary hub, it can only receive goods, not create profit-generating trades of its own. If a system is not within any SOI, it can not receive any trades at all, just emergency goods shipments sent by a special Project from the Empire (at great cost, both materially and politically) Province spheres of influence are much larger than Secondary spheres, but any number of Secondary hubs can be built (one per system limit). The more merchants there are in a hub, and the more skilled they are, the more influence a hub can have. It is possible, though not likely that a planet with only a Secondary hub, but with many skilled merchants, can generate an SOI almost a large as a Province hub with fewer and less-skilled merchants. Contiguous SOIs create a Trade Group, from which any trade can take place as long as a system is within them. Empire Hubs can trade with any hub regardless of distance; Province Hubs can trade with any other Province Hub regardless of distance. You will be able to initiate Projects that increase a hub’s SOI permanently (this represents creating fueling stations in deep space, more docks, transfer stations between outlying systems, staff, etc.) Fleets are generated by Merchants that are at these hubs, and usually it takes 15 Merchants to create a trade fleet. While a trade fleet is active, these Merchants are not available for other trades.

So now that the areas where trade can occur are established, let’s talk about how they are generated. Basically, trade happens in these steps:

  1. A viceroy of a planet determines what the needs of their planet are. This depends heavily on the current production of the planet, what the Focus of the planet is, and their Humanity, Intelligence, and Caution. Humanity determines how likely they are to take care of their people as opposed to their projects, and make sure that things like Food and Energy are well-taken care of. Intelligence lets the viceroy make better decisions about what is most beneficial for the planet, and Caution influences how much of a planet’s total budget for trade they are willing to use (Viceroys with low Caution will blow the budget out early in the year, while more Cautious Viceroys will ensure that there is a reserve throughout the year). Here’s an example of a planet determining their needs through an internal error log – note: you do not see this log as a player but we use it for balance and to make sure all the systems are working as they should!
TRADE ANALYSIS THREAD FOR PLANET ISCANDRANIA OF THE CIVILIZATION CELESTIAL EMPIRE
VICEROY HUMANITY: 25 INTELLIGENCE: 57 CAUTION: 87
Viceroy Hiraniamalie Guerin on planet Iscandrania is calculating Importances….
Food Importance: 0.0
Energy Importance: 0.0
Basic Importance: 24.5
Heavy Importance: 0.0
Rare Importance: 0.0
Total Import Budget for this month is calculated at 20.5 based on a GPP of $52.0 less trade expenses this year of $0.0 and a percentage dedicated to trade of 45 %.
Viceroy allocates $0.0 MCs towards food imports this month.
Viceroy allocates $0.0 MCs towards energy imports this month.
Viceroy allocates $11.8 MCs towards basic imports this month.
Viceroy allocates $0.0 MCs towards heavy imports this month.
Viceroy allocates $0.0 MCs towards rare imports this month.
After allocations, there is 8.7 remaining this month to use for adjusting import bids, or if not used, to return to the yearly import budget.
With a monthly shortfall of 0.4, 0.2 food units are requested from the viceroy this month.
With a monthly shortfall of 0.2, 0.2 energy units are requested from the viceroy this month.
With a monthly shortfall of 19.3, 44.1 basic units are requested from the viceroy this month.
With a monthly shortfall of -7.1, 0.0 heavy units are requested from the viceroy this month.
With a monthly shortfall of 5.8, 13.2 rare units are requested from the viceroy this month.
New Trade Request generated! Taking export budget into account, Iscandrania requests 13.33 units of Basic at a max price per unit of 0.9.
No trade generated for rare – adjusted unit need was zero.
No trade generated for heavy – adjusted unit need was zero.
TRADE ANALYSIS COMPLETED FOR Iscandrania…

So let’s see what happened here. First, the viceroy determined the importance of each trade good for that month, up to a 100 point scale (100 is critical; 0 means no need ACCORDING TO THE VICEROY!)  In this case, since the viceroy has a low Empathy, they are not prioritizing food and energy, even though there are small shortfalls in those areas. They are prioritizing basic materials (the materials from which everything in the game is built from and maintained) and requesting 44.1 basic units to build a surplus IF POSSIBLE. Note that even though there is a shortfall with rare units, the viceroy is not prioritizing them, either because there is a decent surplus or because they do not forsee a need to use rare materials due to the Focus on the planet, their plans, etc.

Second, with the importances of the trade goods determined, the viceroy then proposes up to 3 trade proposals that are ‘broadcast’ throughout their SOI. In this example, the viceroy has allocated $11.8 BC (billion crowns) of their yearly trade budget, and because of their high Caution and reasonably high Intelligence has kept a reserve. They are asking for 13.33 units of basic materials and is willing to pay up to .9 BC per unit. Keep in mind that a ‘unit’ on this planetary scale is several thousand tons of materials (or several million kW of energy supplies, including oil, fissiles, battery power stored, etc.) Since even though there is a need for rare and heavy, the viceroy determined that the much greater need was for Basic. they did not allocate any money from the planet trade budget to buy anything but Basic.

OK! So each planet goes through that calculation, and from there a galaxy-wide list of trade proposals are generated!

2. Now, it’s time for the trade hubs to ‘go shopping’ as such. They start to look through the trade proposals that are within their SOI and make 2 passes: first, to see if they have enough goods to actually fill the trade request, taking into account the importance of that good for their own planet, and the amount of their stockpile they are willing to part with (influenced by Gluttony and Caution traits). Here’s what that looks like for the empire trade hub, New Terra. Since it’s the imperial hub, it can reach most all planets, so it’s a long list for the viceroy to consider.

I have highlighted the planet example listed above. Iscandrania, so that you can follow the trade flow through one specific example:

Looking within NEO-SIRIUS TRADE GROUP….
Checking civtradehub: New Terra.
Viceroy trade tendency for hub New Terra is 65; caution is 11
Checking on valid trades for planet Iscandrania….
Basic material request found for Iscandrania! Checking stockpiles to see if it can be considered…
Basic materials requested: 13.3 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 13 Basic units of basic for 0.9 MCs requested from New Terra to Iscandrania.
Checking on valid trades for planet Dreamland….
Energy request found for Dreamland! Checking stockpiles to see if it can be considered…
Energy requested: 0.9 units. Energy allocated for export on New Terra: 5,772(includes 29 % allocated from stockpiles)
Trade request has been accepted and is now under review: 1 Energy units of energy for 0.8 MCs requested from New Terra to Dreamland.
Heavy material request found for Dreamland! Checking stockpiles to see if it can be considered…
Heavy materials requested: 0.1 units. Heavy materials allocated for export on New Terra: 4,328(includes 87 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Heavy units of heavy for 1.9 MCs requested from New Terra to Dreamland.
Checking on valid trades for planet Falacer….
Basic material request found for Falacer! Checking stockpiles to see if it can be considered…
Basic materials requested: 0.9 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 1 Basic units of basic for 2.9 MCs requested from New Terra to Falacer.
Heavy material request found for Falacer! Checking stockpiles to see if it can be considered…
Heavy materials requested: 0.7 units. Heavy materials allocated for export on New Terra: 4,328(includes 87 % allocated from stockpiles)
Trade request has been accepted and is now under review: 1 Heavy units of heavy for 1.9 MCs requested from New Terra to Falacer.
Rare material request found for Falacer! Checking stockpiles to see if it can be considered…
Rare materials requested: 0.1 units. Rare materials allocated for export on New Terra: 233(includes 23 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Rare units of rare for 3.9 MCs requested from New Terra to Falacer.
Checking on valid trades for planet New Jove….
There are no active trade proposals on New Jove.
Checking on valid trades for planet Huanxiang….
Energy request found for Huanxiang! Checking stockpiles to see if it can be considered…
Energy requested: 5.9 units. Energy allocated for export on New Terra: 5,772(includes 29 % allocated from stockpiles)
Trade request has been accepted and is now under review: 6 Energy units of energy for 0.8 MCs requested from New Terra to Huanxiang.
Basic material request found for Huanxiang! Checking stockpiles to see if it can be considered…
Basic materials requested: 2.2 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 2 Basic units of basic for 2.3 MCs requested from New Terra to Huanxiang.
Checking on valid trades for planet Wuxiaci….
Rare material request found for Wuxiaci! Checking stockpiles to see if it can be considered…
Rare materials requested: 0.4 units. Rare materials allocated for export on New Terra: 233(includes 23 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Rare units of rare for 3.9 MCs requested from New Terra to Wuxiaci.
Checking on valid trades for planet Verdancy….
Basic material request found for Verdancy! Checking stockpiles to see if it can be considered…
Basic materials requested: 0.1 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Basic units of basic for 2.4 MCs requested from New Terra to Verdancy.
Heavy material request found for Verdancy! Checking stockpiles to see if it can be considered…
Heavy materials requested: 0.1 units. Heavy materials allocated for export on New Terra: 4,328(includes 87 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Heavy units of heavy for 1.2 MCs requested from New Terra to Verdancy.
Checking on valid trades for planet Adawia….
There are no active trade proposals on Adawia.
Checking on valid trades for planet New Ceres….
There are no active trade proposals on New Ceres.
Checking on valid trades for planet Orcus….
Basic material request found for Orcus! Checking stockpiles to see if it can be considered…
Basic materials requested: 3.2 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 3 Basic units of basic for 2.0 MCs requested from New Terra to Orcus.
Heavy material request found for Orcus! Checking stockpiles to see if it can be considered…
Heavy materials requested: 1.4 units. Heavy materials allocated for export on New Terra: 4,328(includes 87 % allocated from stockpiles)
Trade request has been accepted and is now under review: 1 Heavy units of heavy for 1.7 MCs requested from New Terra to Orcus.
Checking on valid trades for planet Conlong….
Basic material request found for Conlong! Checking stockpiles to see if it can be considered…
Basic materials requested: 0.7 units. Basic materials allocated for export on New Terra: 1,981(includes 17 % allocated from stockpiles)
Trade request has been accepted and is now under review: 1 Basic units of basic for 2.3 MCs requested from New Terra to Conlong.
Heavy material request found for Conlong! Checking stockpiles to see if it can be considered…
Heavy materials requested: 0.4 units. Heavy materials allocated for export on New Terra: 4,328(includes 87 % allocated from stockpiles)
Trade request has been accepted and is now under review: 0 Heavy units of heavy for 1.3 MCs requested from New Terra to Conlong.

Hooray! Since New Terra has a s*itload of Basic in stockpile, they have put the proposal in their ‘shopping cart’, so to speak. This only means that they are willing to part with the resources. At this point, no analysis has been done regarding profitability, or whether they want to trade with that viceroy (their Houses are enemies, they personally hate each other, etc). That comes next.

3. So we have a list of possible trade partners. (By the way, a trade can be picked up by multiple parties). Now we need to look at profitability. This is a complex equation that simplifies into ‘the farther away trade partners are, the more energy and ships are required, meaning that the convoy will need to haul either less goods at a very high price (special delivery) or more goods at a lower price (shipping in bulk). Each viceroy has a ‘cutoff’ amount beyond which they will not consider a trade – it is not profitable enough for them! This is very heavily influenced by their Humanity and Gluttony. Let’s take a look:

Now determining trade profitability for the Celestial Empire.
Viceroy Gluttony: -15 Trade Aptitude: 0 Humanity: 41
Trade hub New Terra’s viceroy will not consider trades with less than $1.1 MCs per trade.
Viceroy is considering trade with Iscandrania for Basic. The current profit per unit based on prices and energy needed for the trip is 0.6 MCs, with total profit of 7.8.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $25.1. Total expected profit: $7.8.
Viceroy is considering trade with Dreamland for Energy. The current profit per unit based on prices and energy needed for the trip is 0.5 MCs, with total profit of 0.4.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Dreamland for Heavy. The current profit per unit based on prices and energy needed for the trip is 1.2 MCs, with total profit of 0.2.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Falacer for Basic. The current profit per unit based on prices and energy needed for the trip is 2.2 MCs, with total profit of 2.1.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $3.7. Total expected profit: $2.1.
Viceroy is considering trade with Falacer for Heavy. The current profit per unit based on prices and energy needed for the trip is 0.8 MCs, with total profit of 0.6.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Falacer for Rare. The current profit per unit based on prices and energy needed for the trip is 2.2 MCs, with total profit of 0.3.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Huanxiang for Energy. The current profit per unit based on prices and energy needed for the trip is 0.1 MCs, with total profit of 0.6.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Huanxiang for Basic. The current profit per unit based on prices and energy needed for the trip is 1.6 MCs, with total profit of 3.4.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $7.3. Total expected profit: $3.4.
Viceroy is considering trade with Wuxiaci for Rare. The current profit per unit based on prices and energy needed for the trip is 1.6 MCs, with total profit of 0.6.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Verdancy for Basic. The current profit per unit based on prices and energy needed for the trip is 1.0 MCs, with total profit of 0.1.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Verdancy for Heavy. The current profit per unit based on prices and energy needed for the trip is 0.0 MCs, with total profit of 0.0.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Orcus for Basic. The current profit per unit based on prices and energy needed for the trip is 0.9 MCs, with total profit of 2.9.
…. After careful consideration, this trade is provisionally accepted, pending sufficient fleet availability! Final cost of trade, including fuel and shipping: $10.2. Total expected profit: $2.9.
Viceroy is considering trade with Orcus for Heavy. The current profit per unit based on prices and energy needed for the trip is 0.3 MCs, with total profit of 0.4.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Conlong for Basic. The current profit per unit based on prices and energy needed for the trip is 1.2 MCs, with total profit of 0.8.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.
Viceroy is considering trade with Conlong for Heavy. The current profit per unit based on prices and energy needed for the trip is 0.0 MCs, with total profit of 0.0.
…. After careful consideration, this trade is denied! Not enough profit to make the trip.

So what does this mean? First of all, the viceroy of New Terra has a negative Gluttony score, meaning that they are not very greedy, and aren’t looking for a huge profit margin. They have a 0 trade aptitude, meaning that they have no special skills in trade that will increase profit per trade (or decrease it), and they have a decently high Humanity, meaning that they will be more likely to accept lower-profit trades, especially on food and energy. So in Iscandrania’s case, they will be making enough from the trip even though it is a longer-based trip to make it worth the expense of merchants, fleets, and energy (remember that it costs the sending hub Energy to create a fleet, and the longer the trip, the more energy it costs – and energy ain’t free) So they have accepted the trade request, will be charging a total of $25.1 BC to ship 13 units of Basic. This will generate a profit of $7.8 BCs after paying for the energy for the trip, as well as the cost of the basic supplies themselves. Note that the viceroy likes some trades, but not others, so it’s worth going through the trades that were denied to see their ‘thinking’. Almost there! Now since there are enough fleets for the Imperial trade hub to send all this stuff, this example is done, but if there’s not enough fleets for all the accepted trades, there is one final step.

4. So let’s say there’s 5 trades that the viceroy likes, but they only have 3 available trade fleets! Bummer! So now hard choices have to be made. Generally, the most profitable trades will win out, but sometimes a high Empathy viceroy will green-light a trade for food or energy at less profit.

So that’s trade in a nutshell! This system still needs to be balanced a lot along with the general economic model, but hopefully it will answer some questions about how trade works. If you have other questions, please ask in a comment and I’d be happy to answer them! I will also post a video soon with this information in video form, for a more visual representation. Thanks for your time!

-Steve

Posted on 2 Comments

It’s Screenshot Time… The First Look at the new UI (and Trade)

Hey everyone! Steve here – just a quick blog to show what we’re working on this week. We’re revamping the UI to be more streamlined, so these are early shots showing the direction we’re going with the UI, as well as a sneak peek of our trade view!

New Empire View - 3.22This is a look at the main UI display, with the new Political main mode. UI consistency will be a main theme in Imperia – what you see here, along with the alert bar to the left and the Projects bar to the right, will be accessible in any screen – in other words, all stellar screens will have an economic, military, and political main mode, with specialized submodes as needed. We thought about ‘what tasks do players do’ and it seemed that if you need to check on your economic situation, say, you would want to do something about it, so when you drill down into the planet/system/province views, you will have economic-layered views and options ready to go.

On the upper-left is the Vital Statistics Display, showing from left to right game year (we may move this down to the next turn button), your love rating from your Pops, your fear rating, your Power rating, your Benevolent Influence pool and your Tyrannical Influence pool.

On the upper-right is the Dymanic Resources Display. This will change depending on what you are doing. For example, your Action Points are on the left, followed by your yearly budget and your expected gain/loss from that budget for the current year. However, if you have the Project Bar open, this will instead of showing your finances show your materials and ADM available for the selected entity.

New Alert Bar 3.22

Here’s a look at the Alert Bar on the left. These are small icons that let you know that something has happened. Very few alerts are hooked up right now (these tell you that you gained/lost population on various worlds) and will have filters on the top to only show alerts that you want to see. When you hover your mouse over an alert, a sliding box will show from the right to expand on the alert, and if you want to act on it left clicking on it will take you to the relevant place to act. Right-clicking will remove the alert from the bar.

Now let’s look at the Trade View.

New Trade View - 3.22

We have already written about how the Trade system will work. When you go into the Economic mode, you will default to the Trade view. This shows your empire’s Influence ghosted, but shows the Province/Secondary/Empire trade hub radii of effect. These create Trade Zones that allow trade to happen in that zone. Merchant Pops can increase the standard area of effect of a trade hub, reflected with the Merchant Skill number on each hub ring, allowing even a smaller Secondary hub to cover several systems, and saving the expense of either building a new connecting hub or creating a new Province (you can only have one Province hub) or demolishing the old hub to move it.

Zoomed in Trade View 3.22

This is a zoomed-in view showing one province. You can see the lines extending from the province capital system showing the structure of the province. While Matka Gabia system is within a province trade hub, they do not have a trade hub of their own and can thus only import goods, not export them. The Polunocnica Secondary hub does allow Melchior to receive trades, but only between the two systems. If, say, Fertility were annexed to the province and a Secondary hub was built there and staffed with Merchant pops, it would be possible for the Polunocnica System to be linked to their Provincial hub, which would then link them to all Provinces and allow a greater range of trade options.

Please remember that this is not a finished look – many of our final assets are not completed yet. It will give you a good idea of the general look and feel of the game, and we are very confident moving forward about the UI – a game like this needs an exceptional UI, and we have spent a long time working on it and reviewing each part. Soon, we’ll show the revamped System View, but our next screenshot blog will feature Trade Fleets in action!

Excelsior!

-Steve

Posted on 3 Comments

Developer Diary: Trade and Trade Fleets

Hey everyone! Steve here with yet another new diary – now that we’ve wrapped up the large-scale system design, we can talk more about what we’re putting in! Let’s talk about trade today, because even though it’s not the most exciting part of a 4X type strategy game it can have long-term effects on how you play.

The first thing to understand is that there are 2 types of trade hubs that generate trade in a given area: province trade hubs and system trade hubs. (The Empire’s province hub is also considered the Empire trade hub, with a slightly larger radius of effect) Every province in the Empire at the start of the game will have at a province trade hub. Any system that is covered by the province trade hub range may trade with any other system or planet that is also within range. Province trade hubs have a large radius of effect. Province trade hubs can also trade with other province trade hubs, which will allow goods to move between provinces, and from there to the systems in the province.

System trade hubs are smaller, and not built at the start of the game, but can be used to expand your reach if you expand a province to the far corners of a given constellation. To build a trade hub, you must have a trade station built first. Any planet may import goods, but you must have a trade station to export goods to other planets for money.

There are 2 types of trade agreements – Supply and Economic. Supply trade agreements are created by the Empire to move goods from outposts to the Empire trade hub, and to the province and system trade hubs as well. Outposts are created to generate a certain type of good – food, energy, materials, etc. – and are not considered settled colonies. They can only export resources and do not generate income by doing so. Economic trade agreements are generated when a planet has a need for a certain resource and another planet has a supply of that resource that they have earmarked for trade. When that happens, a trade request is made to a certain planet, and that planet may choose to accept it or allow the planet to bid more to accept it.

Often, many planets will have a need for a resource, determined by the Viceroy through a stat called Importance, and if there is not enough resources set aside for all the trade bids, the price of a resource will go up. Trade bids also take into account distance and security between the systems, so if there are a lot of pirates or there is a war going on in the destination system, the price will be much higher to take the bid. Merchants are used to administer trade fleets, so a planet can only have as many active trade fleets as they have merchants allocated for them – merchants can either be allocated for exports or retail on a planet.

Once a trade agreement has been set, a trade fleet is created. This is a real object in the game world that can be examined and even attacked by pirates, other Houses, or other civs, or it can simply have a mechanical failure out in the depths of space. Once a fleet has made its journey and dropped off its goods, it becomes available again to fulfil a new trade agreement.

Here’s a game example of a viceroy from the planet Heaven trying to create a trade agreement for food, since they are a desert planet and cannot generate enough to feed all their Pops.

Example:  Since the viceroy of Heaven has determined that the Importance of Food is high enough to make a trade request, Heaven has made a trade request for 10 food units. Melanon is the only planet in the radius of the Province Trade Hub that is currently trading food and has trade fleets available. 
Since there are 5 Merchant Pops on Melanon dedicated to exports, they may only have 5 trades active at any one time. Right now, there are only 2 Trade Fleets available, as 3 Trade Fleets are out in space (Supply Trade Fleets do not count against the merchant total). Melanon has 4 trade offers outstanding from within the province for food, and Heaven’s bid is 3rd lowest (the higher 2 planets have a higher Importance on Food, and so have bid more). When considering trades, the distance and security risk is also taken into account, so planets that are farther from the trade hub may have to pay more because the trip is less profitable (energy to power the fleets is paid by the exporting planet as part of the costs of maintaining trade fleets)
For this province, even though the base price of food is ¢0.5m (that’s 500 000 Crowns, the basic unit of currency for 31st-century humanity) per unit, heavy demand has increased it to a new base of ¢1.8m per unit. In addition, the cost per unit for a trade between Heaven and Melanon is ¢4.1m due to distance and low security in the system where Heaven is located. The two planets higher on the list have offered ¢2.2m and ¢2.4m per unit of food, and their cost per unit is only ¢3.3m and ¢2.9m, respectively since they are closer, so their total bids are ¢5.5m and ¢5.3m per unit of food.
So essentially, because of the shipping costs, the viceroy of Heaven has to increase his bid to at least ¢5.4m per unit (¢2.9m cost per unit + ¢2.4m bid per unit + ¢100k to increase the total bid from the lowest-eligible planet on the list)
As the ‘bumped’ offer, the Heaven Viceroy may choose to increase their bid to make this trade happen. As his people are starting to show high unrest as their food stocks plummet, he decides to increase his bid to ¢5.45m. The planet who is offering ¢5.3m declines to adjust their price, and the lowest bidding planet does not do so either, so the Melanon trade request moves to the 2nd slot. No further bids take place, so as there are 2 fleets available, the Heaven request is filled and the trade price is calculated at the ¢5.45m base. These crowns come from Heaven’s Gross Planetary Product (GPP) budget that has been devoted to imports, and are removed from that budget immediately.
Once the trade is completed, if Heaven wants to trade again with Melanon, they must put in a new trade request, and the cycle begins again.

So as the Emperor, there will be plenty of ways to manipulate this system. One easy way is to flood a province with additional resources when prices are high, or perhaps to create a temporary bubble of need with a Project request. Let’s say that you have a Character who is a new Viceroy of the planet Tableau, and belongs to House Hawken. You want Hawken to be on your good side, and you feel that this Viceroy has the skills and loyalty to be a tremendous asset to your rule in the future (perhaps being given a Governorship down the line if all goes well). But for now, his planet is struggling, which is hurting his overall Power. What can you do?

Here’s a long-game option: You know that you are going to be building more military fleets in the next 2-3 years. Now, you could give those shipyards (which are built through a Project) to your putative friend, which would be a heavy industry and would bring wealth to the planet, but you have a longer-range plan. No, you know that Tableau has a very high concentration of rare minerals on the planet, and you also know that there is another viceroy of the planet Remola from House Ilioaia, who specialize in trade and mining, that you would like to improve your relations with since they are opposed to House Van Rigel, who most hate you and your ruling House. So what can you do?

Why, give the shipyards to Remola, which will initially make that viceroy (and House) happy, who will then need a tremendous amount of rare materials to build and power those fancy shipyards once they’re built, which will only come from the rare mineral mines that have been thoughtfully built by your order on… Tableau. And Remola’s viceroy will pay out the nose for the privilege, while your viceroy on Tableau’s GPP skyrockets from exports, and his Power increases, all while your ships of war get built by your loyal and greedy subjects.

Now that’s Imperia.

-Steve

 

Posted on Leave a comment

Imperia Concepts #3: Trade

Ah, trade. The blood that flows through a nation’s arteries. In Imperia,  trade serves no less important a purpose. Let’s take a look at trade, Imperia-style!

TRADE HUBS: Any planet can send and receive goods once they have at least a level 1 Starbase, but only trade hubs can receive non-emergency goods from upstream entities. Trade hubs work like this at each level:

  • SYSTEM TRADE HUBS  – Collect excess food and processed materials at full efficiency from PLANETS WITHIN THAT SYSTEM WITH STARBASES. 20% of excess of collected materials are sent downstream to a SECTOR TRADE HUB if one is set up (with minor efficiency loss), otherwise sent to EMPIRE TRADE HUB (your empire capital) (with high efficiency loss). If materials  or food are needed by a planet in the same system (alert generated), this hub will send as long as there is available material/food.
  • SECTOR TRADE HUBS – Collect excess food and processed materials from SYSTEM TRADE HUBS WITHIN THAT SECTOR if available, otherwise PLANETS WITHIN THAT SECTOR WITH STARBASES (with efficiency loss). 20% of excess of collected materials are sent downstream to EMPIRE TRADE HUB. If materials or food are needed by a planet in the same sector(alert generated), AND THERE IS NOT A VALID SYSTEM TRADE HUB in that system (either does not exist or there are not enough items to send) this hub will send as long as there is available material/food (with efficiency loss depending on distance, especially food)
  • EMPIRE TRADE HUB – Collect excess food and processed materials from SECTOR TRADE HUBS, or SYSTEM TRADE HUBS where there are no SECTOR TRADE HUBS.  Sends replenishment cargo upstream to SECTOR TRADE HUBS, or SYSTEM TRADE HUBS if no SECTOR TRADE HUBS exist (with efficiency loss), and will send emergency materials or food to INDIVIDUAL PLANETS WITH STARBASES at a high efficiency loss if no other option exists.

Trade view on the quadrant map - green represents empire trade hub, yellow represents sector-level trade hubs, and red represents system-level trade hubs
Trade view on the quadrant map – green represents empire trade hub, yellow represents sector-level trade hubs, and red represents system-level trade hubs

You can see at a glance how your trade network is set up by setting the trade view on the quadrant map. Systems that are inhabited and do not have a red circle will only receive emergency materials and food from their sector hub at a huge efficiency loss, and if there is no sector hub, the Empire will lend a hand, but between corruption, inefficiency in moving materials into a starbase that was not designed for it, and distance, you will lose a lot of the materials and (especially!) the food. This is why it is so critical to build a solid trade network as soon as possible – you don’t want planets with large surpluses just sitting there, unable to contribute to their sector or system network.

Sector View With Trade Hub
Sector view showing a sector trade hub in effect.

Due to the organization required, hubs can only be created at government seats, so system hubs can only be created within system capitals, and sector hubs can only be created within sector capitals. Any planet can build a starbase, and there is no minimum level for starbases to be to have a hub, but there is a throughput maximum for each level per turn as follows:

  • LEVEL I: 5000 materials/food total can be moved in/out
  • LEVEL II: 10000 materials/food total can be moved in/out
  • LEVEL III: 20000 materials/food total can be moved in/out
  • LEVEL IV: 50000 materials/food total can be moved in/out
  • LEVEL V: 100000 materials/food total can be moved in/out

It is recommended, but not required, to have at least one starbase level more than your trade hub level to ensure ease of moving resources; i.e. a level II starbase for a system trade hub, etc. Eventually, trade technology will make these throughput levels increase per level of starbase.

While you can not directly control what is moved through the network, nor will you see the freighters on the quadrant map, you can set a trade embargo on a certain planet/system/sector. Obviously, this will piss off the affected planets/systems and their respective leaders, so why in the world would you want to do this? In some cases, it may be a matter of survival of the fittest. If you have a backwater system that has a low population but is sucking up materials and food at a high rate, and you have a more, ah, politically important system that is struggling as well and your empire depots are getting low on materials, sometimes you have to declare ‘survival of the fittest’ and let the have-not systems figure it out on their own.

So as an emperor, all you have to do is insure that you have a solid trade network in place with planets that are creating a surplus to fuel the network. Your capital planet is a production powerhouse, but it can not single-handedly sustain your entire Empire, especially if unrest rises or changes are made to the planet economy. That is where manufacturing and agriculture outposts can be very handy – they focus exclusively on the resource they are set up for and they come with a level 1 starbase as part of the cost of setup!

Trade and resource production will make or break your reign as Emperor. People need food and your planets must grow with materials to survive. Sometimes, hard choices must be made for the good of the whole, and it is up to you to make those choices!

NEXT: DEVELOPMENT ROAD MAP

-Steve