New Update for a New Year – Ship Combat

Combat! Yay! It took a long time to get out a new build, but it’s here.ssc2-009-ship-combat-lighting

Power Management and Noise

Along with the combat screen, this build also introduces the Sensors component. In the galaxy view, it will de-fog undiscovered sectors that are claimed by an empire, instead of having to visit each sector individually. In the combat view, they try to lock in on the target’s position using it’s noise. The noisier the ship the easier time your sensors will have. When a weapon is ready to fire, it uses the data from the sensors to determine what angle to fire at. So even if the sensors fail to accurately lock in on the target, the weapon will fire at where they think the target is.

This gives an advantage to small ships that they are harder to hit at longer distances.

Noise is determined by how much power you are running through your components. So if your engines are at full throttle, you’ll be a much easier target to hit.

Damage

Shields offer a fixed, determined amount of damage they can take. Every time they are hit by a weapon, the damage is taken away from the amount of the shields’ charge. Shields also have a “field integrity” value, the lower the value, the more damage will “leak” through and damage the hull. The more damage a hull takes, the greater chance a component will be damaged and unable to function until it is repaired.

Hulls don’t offer a fixed, determined amount of damage they can take. Every time they are hit, there is the chance of them suffering a catastrophic hull breach and exploding. The more damage they accumulate, the greater the chance of this happening. The more mass and structural integrity the hull has (which is shown in the shipyards) the more resistant it is to this happening.

Alpha Notes

Right now, only primary weapons (beams and pulses) are working. Secondary weapons have yet to be coded. And it is very unbalanced, now that combat is in, I can tweak things to match and offer different strategies, rather than guessing. And there is no control of ships in your fleet, they just act autonomously.

Pretty Pictures

ssc2-010-ship-combat ssc2-011-ship-combat ssc2-012-ship-combat ssc2-013-ship-combat

December 17th, 2016 Update Report

COMBAT

So, work on the combat screen is coming along nicely. I finally worked out how combat will affect the empire’s sectors. Instead of having to attack every single sector, when you defeat an enemy fleet the sectors within range of their originating shipyard, suffer a hit.

1-heading-into-enemy-territoryIn the galaxy view, if your sensors pick up a new signature, the Warning Panel will appear at the bottom left of the screen. If the contact reaches you, combat will engage.

2-very-early-combat-screen

Combat screen!

(Ignore the text, it’s all debug info)

 

After winning the losing sectors are highlighted:

3-affected-sectors-of-combat-win

So, all in all, work’s going well. But updates will be coming slower due to the amount of new code that needs to be done. (Maybe next week).

New Build for December 11th, 2016 6:14

A new build is out while I’m working on combat. This fixes some crash-inducing bugs and also increases performance in processing empires ~100X!

With the new performance increase, I was finally able to run a galaxy to over 1,000,000 years and weed out all the bugs with revolutions.

Starship Command 2 (Alpha Build 161125-1606) Update

Weapons! (or How I Learned to Stop Worrying and Love the Gamma Beam Mk. 5)

So, I missed last week’s release target due to the work on weapon generation. But, that is now done and with the extra time I had, I was able to add more into this weeks release:

WEAPONS

Primary  & Secondary weapons have been worked out an implemented in Starship Command 2. This also means that weapon arcs are back in!

weaponarcs

The difference between a primary and secondary weapon is that the primary weapons charge directly from the power supplied from your ship’s reactor. Secondary weapons use ammo and create an explosion.

OTHER MAJOR CHANGES

First is the ability to fund a shipyard’s construction in your empire’s sectors.

shipyardfunding

This will create a shipyard with a random EDOS rating in this sector. And as you can see, it is expensive!

And when you FTL drive reaches max radiation accumulation, it will no longer stop outright. Instead, it’s speed will keep decreasing until it is at 1% of its normal speed.

Also in this build are:

  • Ambient sounds in the galaxy view
  • Fixed a bug where friendly empires kept “touching” allies and never expanding
  • Language generation now defaults to using templates in “\languageTemplates\” folder
  • Watcher mode no longer shows player’s travel log and shipyard EDOS
  • Increase/Decrease sector development are now split into a 1X, 10X, and 100X options each

Starship Command 2 (Alpha Build 161106-1715) Update

The update for November 6th introduces some new features, changes and bug fixes.

The Biggest Change

In previous builds, empires were able to expand from any controlled sector. The recent introduction of shipyards opened up a much better way of handling expansion. Empires are now only able to expand from controlled sectors with shipyards.

This makes expansion more interesting, as the empire’s territory becomes more “shaped” then just a ever-increasing circle. Second and most importantly, is for when combat is introduced, this gives the player a direct focus to cripple an empire without having to attack each sector individually.

Also with the shipyards, the component generation was tweaked. Now, each shipyard has an E.D.O.S. rating (Economics, Defense, Offense & Size) which is shown in the galaxy view:

shipyards-edos-level

In the sector information panel, the E.D.O.S. rating is shown, 3 in Economic, 2 in Defense, 5 in Offense, and 1 in size. The yellow numbers surrounding the two sectors are the E.D.O.S. ratings going clockwise starting at the left.

Size is the shipyards hull size. In the picture one shipyards has a hull size of 1, the other has a hull size of 2.

Each of the components of a ship (FTL Drive, STL Engines, Shields, Reactors, Thrusters, Weapons) use a combination of the three ratings. An FTL Drive, uses the Economic and Defense ratings, so the lower shipyards will have a better FTL Drive then the one above it.

A full breakdown (or cheatsheet) on what components use what will be made when everything is in place.

Other Changes

Also changed, is in the shipyards windows, you can now see the components name:

component-names

Also the full price of the component, instead of just the difference need for purchase:

component-names-2

Another small change planets, stars and asteroid belts now are named by the controlling empire. The name will be changed if taken over by an enemy empire, but if taken back the original names are restored:

planet-names

Small bug fixes includes:

  • Completely aggressive empire will no longer hate themselves.
  • Empires that revolted from another no longer have black ship codes.
  • Minor GUI tweaks and a test button click sound.

FTL Drives and You

 

FTL Drives have been introduced in the latest build of Starship Command 2 along with other new features and small bug-fixes:

FTL Drives:

Right now, the only type of FTL is a basic Warp-Drive style (there are other types planned for future work).

The warp-drive style has six properties:

  1. Speed – How fast you can travel to your destination.
  2. Strength – Every time your hull is hit by weapons-fire, a component has a chance of breaking down.
  3. Charge Time – In tactical combat, how many seconds it will take at full power & strength to charge.
  4. Power Requirement – How much power is required to charge the FTL drive in minimum time.
  5. Mass Reduction – Another tactical combat property, this is what percentage your total ship’s mass is reduced by. Making your ship respond that much faster.
  6. Radiation Accumulation – In the galaxy view, whenever you are travelling, the FTL drive “picks up” radiation. ftl-radiation-accumulationWhen it reaches max, the FTL drive will shut down to vent off the radiation. This can be quickened by pressing the FTL Radiation button:ftl-radiation-overloadOr the radiation can be removed immediately by visiting a shipyards.

The shipyards will show a comparison of their FTL drive and yours:shipyards-ftl-comparison

As with the hulls, each shipyards will generate a unique FTL drive based on the empire’s FTL technology priorities. Since the FTL drives are generated, the empire selection window will show the empire’s FTL priorities:empire-ftl-priorities

What Else is New:

  1. A new panel in the sector screen will tell you the empire owner and relations, and shipyards are now not accessible unless the empire’s relations are positive:allied-empire-shipyards-available
  2. Also at the shipyards, it is now possible to sell a ship from your fleet:sell-ship
  3. The undiscovered sector graphic has been changed so there will be less “white-out” for large galaxies.
  4. Tweaked empire relation change when buying and selling.
  5. Fixed an error when an empire surrenders, that the surrendered sectors were not counted into the winning empire’s count.
  6. And a new Watch-Mode, pressing F5 will toggle unfog all sectors and center the camera, so you can just sit back and watch the empires expand and duke it out.

Starship Command 2 Major Update!

Major update today for Starship Command 2! Shipyards are now in place.

shipyardsimage

This means you can buy new/trade-in components in your fleet (as of right now, only hulls are implemented). Implementing this meant fixing a few bugs and tweaks to the hull generator code, mainly to calculate available cargo spaces based on the empire’s economic priority.

Also, implemented is a small quality-of-life improvement, the travel log:

travellogimage

This will, by default, keep track of your last five stops.

Another major change in terms of gameplay, is the added penalty of new governor claims. The cost of claiming a new sector as a governor, is multiplied, again by default, by the amount of already-governed sectors. This was to keep the player from just claiming every sector on the cheap. Adding this meant the player would have to be able to relenquish his governor’s claim. Doing so will sell the claim to your empire, the value of it is based on the development of the sector.

This introduced real-estate flipping! Claim a sector, buy and sell in the market, then immediately sell the claim. During testing this became game breaking as I was able to gain 4 billion credits in under a game-year. So, to squash this game-breaking “feature”, a cap was introduced to increasing sector development by market trading. All these values can be changed in the settings file, so if you want to be a space-real-estate mogul, just change the settings.

Also changed were the atmosphere graphic, it now is now longer “chopped” at the left side:

atmosphereimprovement

vs. the old:

temperateplanet

The GUI graphics have been changed to a simpler/modern style
guichangeexample

And fullscreen is toggle-able in-game by pressing Alt+Enter.

Starship Hull Generator Is Now Making Custom Config Files!

auto-generated-hull-shapes

YAY!

The starship hull generator code that takes a JSON config file and makes a hull out of it is now capable of creating a brand-new config file for the generated empires. That means the default 250 empires will have their own unique ships, no default/undefined shape. So, the next thing to do is take these configs and make similar versions for different classes. Then, followed by coding the actual shipyards in-game!

It took a while to detect/get rid of hull shapes that intersect themselves. But it is finally ready. I may add this into a new build of the Ship Flight testing program.