See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: Crew Management in UMMU  (Read 2229 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 337
  • Country: United States us
  • Karma: 15
04 May 2008, 12:30:47
I am trying to add 6 crew members to my Vessel.  I have the max seats avaialable to 6.  And change this line:
sprintf(SendFocusScreenMessage(),"%i souls aboard ship %s, %i seats
available",Crew.GetCrewTotalNumber(),GetName(),6-Crew.GetCrewTotalNumber());
  Thanks No Matter for this.
In the scnario I have 6 crew members listed:
ML:ML
  STATUS Landed Moon
  POS -33.4286660 41.1209490
  HEADING 234.78
  PRPLEVEL 0:1.000
  NAVFREQ 0 0
  XPDR 0
  UMMUCREW Capt-Paul_Roper-41-65-74
  UMMUCREW Eng-Frank_Craig-27-67-55
  UMMUCREW Ast-Craig Collins-25-70-45
  UMMUCREW Doc-Doug Jackson-45-70-45
  UMMUCREW Sec-Keith_Ford-45-70-45
  UMMUCREW Sci-Paul_Foster-45-70-45
END

But when I run it It says only 4 on board 2 seats available.  Here is what the current scenario looks like:

ML:ML
  STATUS Landed Moon
  POS -33.4286660 41.1209490
  HEADING 234.78
  PRPLEVEL 0:1.000
  NAVFREQ 0 0
  XPDR 0
  UMMUCREW Capt-Paul_Roper-41-65-74
  UMMUCREW Eng-Frank_Craig-27-67-55
  UMMUCREW Sec-Keith_Ford-45-70-45
  UMMUCREW Sci-Paul_Foster-45-70-45
END

They are even in the .cpp
//default crew member used when the ship is spawned by Orbiter's scenerio editor.
   Crew.AddCrewMember("Paul Roper",41,65,74,"Capt");   //(for name and id a-z A-Z 0-9 characters only)
   Crew.AddCrewMember("Frank Craig",27,67,55,"Eng");   //(for name and id a-z A-Z 0-9 characters only)
   Crew.AddCrewMember("Craig Collins",25,70,45,"Ast");   //(for name and id a-z A-Z 0-9 characters only)
   Crew.AddCrewMember("Doug Jackson",45,70,45,"Doc" );   //(for name and id a-z A-Z 0-9 characters only)
   Crew.AddCrewMember("Keith Ford",45,70,45,"Sec");   //(for name and id a-z A-Z 0-9 characters only)
   Crew.AddCrewMember("Paul Foster",45,70,45,"Sci" );   //(for name and i


« Last Edit: 04 May 2008, 14:01:02 by gattico »

Offline Ursus

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Reply #1 - 04 May 2008, 13:33:44
Perhaps the spaces in two of the crew members' names (in the scenario file) has some thing to do with it: "Ast-Craig
Collins-25-70-45" instead of "Ast-Craig_Collins-25-70-45".

All of the default crew members listed in the source code are deleted and replaced if there are crew members for the vessel
listed in the scenario file (or... come to think of it... I think they're deleted any time the vessel is loaded via a scenario file, in case someone saves the state of a vessel which the crew has all left...). The ones encoded in the dll are to make sure a vessel has a crew if it's added with the scenario editor.



Post Edited ( 05-04-08 13:39 )

« Last Edit: 04 May 2008, 14:01:02 by Ursus »
-----
Occasionally-visiting Grumpy Old Bear

Offline DanSteph

  • Administrator
  • Legend
  • *****
  • Posts: 15407
  • Karma: 258
  • Hein, quoi !?
    • FsPassengers
Reply #2 - 04 May 2008, 13:41:32
Seem Ursus got it right, try to add underscore and don't leave any blank.

Dan

« Last Edit: 04 May 2008, 14:01:02 by DanSteph »

Offline gattico

  • Sr. Member
  • ****
  • Posts: 337
  • Country: United States us
  • Karma: 15
Reply #3 - 04 May 2008, 14:01:02
I change the scenario and that fixed that.  Thanks for that bit about the default crew.  That answered another question.  My
Mobiles from UFO series are so to be UMMU capable.  I have made some new meshes suit per the UFo series.

« Last Edit: 04 May 2008, 14:01:02 by gattico »