project-navigation
Personal tools

Author Topic: Disappearing Scientists  (Read 2963 times)

Offline elbows

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Disappearing Scientists
« on: March 09, 2012, 04:14:29 pm »
I've found a bug where you can "lose" scientists in a base. To reproduce:

1. Begin research of an alien artifact
2. Go to Buy/Sell and sell that artifact so you have 0 in your base
3. Return to the research screen. The artifact has moved to the "Unresearchable Items" section, but the scientists assigned to it have vanished. E.g. if I have assigned 10/10 scientists to that artifact, I now have zero unassigned scientists and zero scientists assigned to any work. However, the other screens will still show that I have 10 scientists employed in that base.

I poked around in the code a bit and got some idea of what's happening, though I didn't get as far as fixing it. It seems that the scientists are still assigned to the artifact, but they aren't displayed because unresearchable items aren't supposed to have scientists assigned to them. Whether they continue to make progress, I don't know.

If I repurchase the artifact, it moves back to the upper part of the research list and the scientists remain assigned to it -- so you can get your scientists back.

I'm seeing this with the latest master as of this morning (5d2b5fc8).

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Disappearing Scientists
« Reply #1 on: March 09, 2012, 04:53:28 pm »
I think i've fixed the issue in 81871aa2d83af076de5248f3a111641b09104c6b

please give it a try and let me know whether it works for you.

Offline elbows

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Disappearing Scientists
« Reply #2 on: March 11, 2012, 02:37:22 pm »
It works. Thanks.