Introversion-Software / LastStarshipIssues

The place to report and track issues for The Last Starship
10 stars 0 forks source link

Hostile Contact Detected Only When FTL Jumping #250

Open Mooncows opened 6 months ago

Mooncows commented 6 months ago

Description

In my game anytime I jump with a ship, I get an alert saying that there are 3 enemy ship contacts. This immediately goes away once the ship arrives in the sector it was heading too. Ever since this bug started in my current save game I get frame rate drops to 10-12 every 30 seconds or so and then it goes back to 80+ over and over again. In addition, my completed contract will not go away after it has been completed and lastly the hostile ship im supposed to rescue in my game does not allow me to dock with it. Alpha 8 Game.zip

Flavour affected

Steam

Operating System

Windows

Version

Alpha 8

Is it something that used to work before?

7

Expected behavior

The performance on the framerate should not drop every 30 seconds- 1 minute like clockwork and my missions as well as Hostile Ship contact should go away.

Actual behavior

-Alerts about enemy contact only when a ship is FTL jumping -Performance drops drastically but only 30-60 seconds or so like clockwork then comes back to normal -Completed contracts will not go away. When closed they just pop back up -I cannot dock to rescue the hostile ship contract I have and I cannot get rid of the contract

Repro steps

  1. Jump the gas miner 1 ship to any location to see the hostile ship contact.
  2. Run the save game for more than a few minutes for the performance drop.
  3. Try to dock with the ship I am meant to rescue
  4. Right click on the completed mission at the top left to try and close it
tomyeltz commented 6 months ago

Can't speak to the performance issue, but I can shed some light on the other issues.

The hostile contact alerts (and contract new/deliverable status) are determined based on a ship's SystemID trait. When in hyperspace, a ship does not have a SystemID trait, so the player is alerted to every hostile contact in the sector (and new/deliverable contracts). ShipInSystemVsHyperspace Fig. 1: a ship before and after entering hyperspace; note removal of SystemID trait. HyperspaceContracts Fig. 2: 43 new contracts advertised in hyperspace.

The stranded ship has its docking port installed backwards, thus preventing anything from docking to it. StrandedShipDockingPortBackwards Fig. 3: backwards docking port. I think this happened because the ship's grid layout starts at row0 instead of row1 and that threw off the docking port positioning/orientation somehow. Once I renumbered all the rows from 0-45 to 1-46 and adjusted the docking port Position.Y and CornerY values, the docking port starting working correctly. FixedDockingPort Fig. 4: adjusted ship values. DockedWithStrandedShip Fig. 5: successfully docked with stranded ship.

Here's a copy of your save file with the adjusted values. Alpha8Game.zip

Completed contracts, as far as I know, clear on entering a star system. It's another issue caused by changing the focus of the game from constantly moving for Survival to staying put for Industry mode.

Edit: edited to remove an unkind parenthetical.