SDK Question UMMU's not loading from .Scn file.

Hlynkacg

Aspiring rocket scientist
Addon Developer
Tutorial Publisher
Donator
Joined
Dec 27, 2010
Messages
1,868
Reaction score
4
Points
0
Location
San Diego
I'm working on incorperating UMMU support into my vessel. I followed DanSteph's tutorial on how to do so and copy/pasted the pertinent lines from his example.

Despite this UMMU crew members are not loading with the scenario file.

I've checked the scn files and have confirmed the they are being recorded, as such I am at a loss.

This is my clbkLoadStateEx
Code:
// Read vessel status from scenario file
void Spider::clbkLoadStateEx (FILEHANDLE scn, void *status) 
{ 
	char *line; 
	while (oapiReadScenario_nextline (scn, line)) 
	{
		[COLOR="Red"]if(Crew.LoadAllMembersFromOrbiterScenario(line)==TRUE) continue;[/COLOR] // Load UMMUs from scenario 
		else if(!strnicmp(line, "CONFIGURATION",13)) sscanf(line+13, "%i", &STATUS);	// load vessel state
		else if(!strnicmp(line, "AUTOPILOT",9)) sscanf(line+9, "%i", &AUTOPILOT);		// load autopilot status
		else ParseScenarioLineEx (line, status); 
	}
}
 
Last edited:
Back
Top