project-navigation
Personal tools

Author Topic: Researchers no longer available after finished research  (Read 3015 times)

Raistlin

  • Guest
Researchers no longer available after finished research
« on: August 24, 2006, 01:14:28 am »
Hi,

In many threads this point is already mentioned and the hint is given that this topic is already submitted to the bug tracker, but i was not able to find exactly this report in the bug tracker.
This problem is very annoying because you have to fire and rehire your scientists in order to research a new project. And this has to be done quite often.
If i am wrong and there is a report in the bug tracker considering exactly this topic, you can forget this posting. :-(
Otherwise this posting will hopefully lead to a higher priority for the solution of the problem. ;-)

Keep up the good work!
_________________
Raistlin

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
Researchers no longer available after finished research
« Reply #1 on: August 24, 2006, 11:16:37 am »
Hi!

Could you state the version you are playing?

Raistlin

  • Guest
Researchers no longer available after finished research
« Reply #2 on: August 24, 2006, 11:39:04 am »
Hi,

@ Bandobras I'm currently playing SVN version 2943.

Another feature i just discovered is that antareans use plasma grenades in combat although they are not supposed to do so.
At least this is stated in the corresponding antarean wiki description. ;-)

The new reaction fire behaviour is superb, because this time a single soldier as at least a small chance to survive a close distance combat situation with an antarean soldier.

It's amazing to see the progess in gameplay and stability.

_________________________
Raistlin

HaJo

  • Guest
Re: Researchers no longer available after finished research
« Reply #3 on: August 24, 2006, 12:27:36 pm »
Quote from: "Raistlin"
i was not able to find exactly this report in the bug tracker.

Forum: http://ufo.myexp.de/phpBB2/viewtopic.php?t=405&highlight=Scientists

Now it is issue 1545854 on sf.net, see
https://sourceforge.net/tracker/index.php?func=detail&aid=1545854&group_id=157793&atid=805242

Raistlin

  • Guest
Researchers no longer available after finished research
« Reply #4 on: August 24, 2006, 12:49:52 pm »
Thanks HaJo for raising an issue on sf.net.

Regarding the antarean feature, i confused antareans and ortnoks.
I meant ortnoks and i just saw that HaJo has already reported the same problem on sf.net. So forget this topic it's already covered.

_____________________
Raistlin

Offline EsbenMoseHansen

  • Rookie
  • ***
  • Posts: 11
    • View Profile
Researchers no longer available after finished research
« Reply #5 on: August 24, 2006, 03:52:04 pm »
Here's a patch for the disappearing scientists problem
Code: [Select]

Index: src/client/cl_research.c
===================================================================
--- src/client/cl_research.c    (revision 2931)
+++ src/client/cl_research.c    (working copy)
@@ -837,8 +837,16 @@
                                MN_AddNewMessage(_("Research finished"), messageBuffer, qfalse, MSG_RESEARCH, tech);

 /*                             B_ClearBuilding(&gd.buildings[tech->base_idx][tech->lab]);*/
+                               while (tech->scientists>0) {
+                                       employee_t* employee = E_GetAssignedEmployee(&gd.bases[tech->base_idx], EMPL_SCIENTIST);
+                                       if (employee) {
+                                               employee->buildingID = -1;
+                                       } else {
+                                               Sys_Error("CL_CheckResearchStatus: More scientists assigned to tech than scientists assigned total.\n");
+                                       }
+                                       tech->scientists--; /* Moved here to avoid inf loop in case of data struction corruption*/
+                               }
                                tech->base_idx = -1;
-                               tech->scientists = 0;
                                RS_MarkResearched(tech->id);
                                researchListPos = 0;
                                newResearch++;

I tried to post this on the issue tracker on sourceforge, without much success.

Hoehrer

  • Guest
Researchers no longer available after finished research
« Reply #6 on: August 24, 2006, 06:25:40 pm »
Thanks for that patch, i'll apply it as soon as i get some quirks out of it ... There already exist some functions that will handle all the assignment-stuff.

Thanks,
Werner