Multiplying NPCs Glitch

Discuss problems related to FTL here. If you are having a problem or experiencing a bug PLEASE READ THE "MUST READ" POST.
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Multiplying NPCs Glitch

Postby Vhati » Wed Apr 09, 2014 11:58 am

I might have found a bug in FTL 1.5.4, but I need to confirm...

Summary: When there's a ship nearby, saving/reloading adds new NPCs to that ship.


On arriving at the second beacon of sector 1, I encountered a FED_SCOUT ship requesting an escort to a beacon a few jumps away (spawning QUEST_ESCORT_ARRIVE at the destination).

I agreed, but didn't leave yet, which meant there was a friendly ship parked nearby.
Then I saved and made a backup of "continue.sav".

Then I started FTL again. And immediately saved and made another backup.

Then I started FTL again. And immediately saved and made another backup.

Each time I saved, the nearby ship - which started with two crew - added another two crew, with identical stats to the originals. After 3 saves, there were 6 crew. Pairs of humans named "Ryan Maniscalco" and "Xin Xin".

I can see the increasing crew in a hex editor and with my WIP saved game editor (read-only right now), but I haven't tried to recreate the problem yet, with other nearby ships, or while using upgraded sensors to peek in-game.


Wild Guess: The ship's current crew are being saved. Then on loading, the ship is reconstructed, including its starting crew. Then the previous crew are re-spawned.
Last edited by Vhati on Sun May 04, 2014 7:53 am, edited 1 time in total.
User avatar
Matthew
Site Admin
Posts: 968
Joined: Thu Apr 19, 2012 9:31 am

Re: Multiplying NPCs glitch?

Postby Matthew » Thu Apr 10, 2014 5:18 pm

I'll look into it. Thanks for the report.
Matthew Davis, Subset Games Developer - If you're looking for tech support, you'll get help faster emailing directly, contact info here
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Multiplying NPCs Glitch

Postby Vhati » Sun May 04, 2014 7:05 am

More details...
This occurs in 1.5.10, too.
The extra crew are put onboard first and aren't so identical after all.

They have 0 health and -1 roomId; they're dead in other words.

Sometimes they change sex. A few of Marcus were female. A few of Maria were male.
The lists in names.xml shouldn't be allowing that.

The sample I'm looking at right now is a mid-combat rock pirate ship with a medbay.
Its only augment was Rock Armor.
The following is all in a single save.

Starting Crew: Markus (Engi), Maria (Human), Stick (Human).
Current Crew:
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (M, Dead), Maria (F, Dead), Stick (M, Dead),
  • Markus (M, Dead), Maria (F, Dead), Stick (M, Dead),
  • Markus (M, Dead), Maria (F, Dead), Stick (M, Dead),
  • Markus (M, Dead), Maria (F, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (F, Dead), Maria (M, Dead), Stick (M, Dead),
  • Markus (M, 44 HP), Maria (F, 13 HP), Stick (M, 37 HP)

That was probably the twelfth save into the fight.
I guess I should be glad it didn't have a clonebay! :lol:
Vhati
Posts: 792
Joined: Thu Oct 25, 2012 12:01 pm

Re: Multiplying NPCs Glitch

Postby Vhati » Wed Jun 04, 2014 8:22 am

Still present in 1.5.13.