On 29 Jun 2007, at 00:21, John R. Dennison wrote:
On Thu, Jun 28, 2007 at 08:05:47PM +0200, Narcis wrote:

Just in time for the 1.3 release, but it's the last bug i want to
incorporate in this
release. As Andrew indicated: the best place to keep track of the
bugs is in
the bug tracker, but hey at least you reported it, that's already great.

	Did you fix the RCD issue with your client so distress calls
	are actually sent as RCD's and not as standard text macros?

I'm not aware of that bug, did you tick the checkbox in the settings  
to send it as RCD?
It should work it generates the message like:

- (NSString*) rcdString {
	
	NSMutableString *message;
	int length = 16;
		
	message = [NSMutableString stringWithFormat:@"%c%c%c%c%c%c%c%c%c%c%c% 
c%c%c%c",
		(char)((macro_flag ? 1 : 0) << 5 | distress_type),
		(char)(fuel_percentage | 0x80),
		(char)(damage | 0x80),
		(char)(shields | 0x80),
		(char)(etemp | 0x80),
		(char)(wtemp | 0x80),
		(char)(armies | 0x80),
		(char)(short_status | 0x80),
		(char)([close_planet planetId] | 0x80),
		(char)([close_enemy playerId] | 0x80),
		(char)([target_planet planetId] | 0x80),
		(char)([target_enemy playerId] | 0x80),
		(char)([target_player playerId] | 0x80),
		(char)([close_player playerId] | 0x80),
		(char)([target_friend playerId] | 0x80),
		(char)([close_friend playerId] | 0x80)];
	
	// cclist better be terminated properly otherwise we hose here
	int i = 0;
	while (((cclist[i] & 0xc0) == 0xc0)) {
		[message appendFormat:@"%c", (char)(cclist[i] & 0xFF)];
		i++;
	}
	// get the pre/append cclist terminator in there
	[message appendFormat:@"%c", (char)(cclist[i] & 0xFF)]; // strange ??
	
	length = 17 + i;
	if ([prepend_append length] > 0) {
		[message appendString:prepend_append];
	}
	
	// retain string !!
	[message retain];
	
	return message;
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.us.netrek.org/pipermail/netrek-dev/attachments/20070629/ebc5c03b/attachment-0001.htm