How to remove Unknown Switch Messages from console?

For everything NOT server specific support. Do NOT ask for connectivity help here!.

Moderator: Moderators

franibaflo
Human
Human
Posts: 35
Joined: 06 May 2012, 10:11
Noob?: Yes

How to remove Unknown Switch Messages from console?

#1 Post by franibaflo »

I'm playing in this private server. I followed the connectivity guide and got all the correct server info and also extracted the latest recvpackets.txt using Packet Extractor v3. Botting is flawless except the console which shows "Packet Parser: Unknown switch: 0977" every after successful attack.

I've already tried to experiment with squelchdomain using:

Code: Select all

squelchDomains emotion, guildchat, guildnotice, party, partychat, publicchat, schat, useTeleport, map_event, 
and the other domains. But still getting the message in console... any tips?

Thanks in advance.
flashdbest
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 12 Nov 2012, 09:22
Noob?: Yes

Re: How to remove Unknown Switch Messages from console?

#2 Post by flashdbest »

I guess you can do the same thing i did :)

go to : openkore_ready\src\Network\Receive

open the file that corresponds to your server, then search for

Code: Select all

my %packets = (
and add something like:

Code: Select all

'0977' => ['attack'],
NOTE: this is just an example, you must figure out what that packet means first, and replace "attack" accordingly.

hope this helps
franibaflo
Human
Human
Posts: 35
Joined: 06 May 2012, 10:11
Noob?: Yes

Re: How to remove Unknown Switch Messages from console?

#3 Post by franibaflo »

Thank you for the very fast reply. Any tips on identifying what that packet is? Or maybe some references to some kind of packet "identity"?
flashdbest
Plain Yogurt
Plain Yogurt
Posts: 61
Joined: 12 Nov 2012, 09:22
Noob?: Yes

Re: How to remove Unknown Switch Messages from console?

#4 Post by flashdbest »

Hmmm can't help you on that one. In my case i just observed on what was causing the error. then used trial and error :)

perhaps the mods can enlighten us with this one :P

edit: you can open "ServerType0.pm" to get most of the "known" packets btw.
kalansay
Human
Human
Posts: 39
Joined: 15 Apr 2008, 18:58
Noob?: Yes

Re: How to remove Unknown Switch Messages from console?

#5 Post by kalansay »

Thank you. Adding the '0977' packet in the Network Receive serverType works. I don't know if it really solves what it should solve and I don't know what that packet 0977 is for.

The serverType I am using is "RagexeRE_2012_04_10a"

Here is what I did, I opened the serverType then I added these lines...
Add these line after the "use base" thingy..

Code: Select all

sub new {
	my ($class) = @_;
	my $self = $class->SUPER::new(@_);
	my %packets = (
		'0977' => ['attack'],
	);

	foreach my $switch (keys %packets) {
		$self->{packet_list}{$switch} = $packets{$switch};
	}
	my %handlers = qw(
		attack 0977
	);
	$self->{packet_lut}{$_} = $handlers{$_} for keys %handlers;
	
	return $self;
}
For your CPU Usage & Memory usage concerns...
http://forums.openkore.com/viewtopic.php?f=10&t=33261
Image
Ragnar
Noob
Noob
Posts: 1
Joined: 30 May 2013, 13:37
Noob?: No

Re: How to remove Unknown Switch Messages from console?

#6 Post by Ragnar »

This is part of the rAthena trunk as of Changeset 16669 on 08/20/12. It is intended for the following:
Added support for the new monster purple hp bar packet (packetver >= 20120404), make sure to toggle /monsterhp in the client to show the bar.
The rAthena site had some issues earlier this month and the changelog seems to have been lost but I read it on the page that Google cached here: http://webcache.googleusercontent.com/s ... clnk&gl=us

Knowing this, is there maybe a more proper way to fix this for rAthena servers that use 2012_04_04+ (mostly 2012_04_10a) clients?