Page 1 of 2
heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 01:15
by nelsvoon27
Hello there,
I have recently been trying to bot on the server heRO
http://www.hero-server.net/
I have attempted the suggestions from this post that was posted quite a few years ago,
http://forums.openkore.com/viewtopic.php?f=7&t=211288
and even included the fix that SkylorD has given but to no avail.
However, I am still getting the issue where Openkore connects to the server but times out on the Map Server as seen from the attachment I have put on this post.
I have also included my servers.txt as the IP address for the server has been updated since then.
Please do let me know how I can go about to remedy this situation.
Thank you!
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 03:24
by sctnightcore
packet key :p
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 03:32
by nelsvoon27
sctnightcore wrote:packet key :p
Thanks for your reply man.
I have noticed that packet key part as originally posted by roplayer 34 saying:
From the revpackets: #packet_key: 0x16cf3301 0x1f472b9b 0x0b4a3cd2
But I have no real idea as to what I should do with this information nor where do I put it. Would you mind giving me a hand by telling me what this information does (if it isn't too much of a hassle) and also how I can incorporate it into Openkore. Or if you know where I can find the information to learn about fixing this in my openkore.
I've tried looking it up but always swing back to this page,
http://openkore.com/index.php/Packet_Length_Extractor
which I don't believe has the right information I'm looking for in this issue.
Thanks again for your reply mate!
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 19:08
by sctnightcore
get from peek !
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 21:15
by nelsvoon27
sctnightcore wrote:get from peek !
Thanks again for your reply man.
I've downloaded PEEK and followed steps in this page,
http://forums.openkore.com/viewtopic.php?f=6&t=207278
But it seems that I still can't get the right solution, while using the PEEK from
https://github.com/MStr3am/PEEK
I get an error saying "Packet Length Extractor could not be run"
Whereas when I used the other one,
https://github.com/ThemonChan/PEEK
It runs but nothing happens, then I tried entering the code,
Code: Select all
#!/usr/bin/env/perl
use strict;
use warnings;
package iwant_myrecvpackets;
my %packets;
&start();
sub start {
&main();
system("pause");
}
sub main {
my ($message, $file, $input, $output, $files, $found) = 0;
$found = -1;
foreach (<*>) {
$files .= $_."\n";
if (-d $_ && $_ =~ /^Output$/ig) { $found = 1;};
}
if ($files =~ /(recvpackets.+\.ini)/ig) {
#$message = "Type 1 from ThemonChan.\n";
$file = $1;
} elsif ($files =~ /(packetlengths.+\.ini)/ig) {
#$message .= "Type 2 from MrStr3am\n";
$file = $1;
} elsif (substr(Win32::GetCwd(), eval (length(Win32::GetCwd()) - 6), length(Win32::GetCwd()) ) ne 'Output') {
$message = "\nDo you have sure this file is inside \'Output\' folder?\n";
if ($found eq 1) { #If we aren't inside output folder, we could be on root, check for existance!
$message .= "Please bro, move this script to \'Output\' folder! I can see it\n";
}
} else {
$message = "\nPlease, start PEEK first to extract recvpackets initial file.\nThen run this script again.\nIf you've already done it, Try asking on OK forum\n";
} if (substr(Win32::GetCwd(), eval (length(Win32::GetCwd()) - 20), length(Win32::GetCwd()) ) !~ /([P][E][E][K]([-]?[m][a][s][t][e][r])?)|ThemonChan|MrStr.am/ig) {
$message .= "Please, move this script to PEEK/Output folder!\n";
}
goto end if ($message);
open $input, "<$file" or $message = "Can't open the input file\n";
open $output, ">recvpackets.txt" or $message = "Can't create recvpackets output file\n";
goto end if ($message);
read_lines($input);
get_output($output);
close_handles($input, $output);
end:
printf("Length = %d packets\nPackets were extracted with success...\n", eval(keys %packets)) if (!$message);
printf("Errors:%d\n%s\n", eval($message && 1), $message) if ($message);
return 1;
}
sub close_handles {
my ($dw1, $dw2) = @_;
close($dw1);
close($dw2);
return 1;
}
sub read_lines {
my $file = shift;
my ($lines, $packetid);
while (<$file>) {
$lines = $_;
if ($lines =~ /0x(0...) = ((-)?\d+)/ig) {
undef $packetid;
$packetid = uc($1);
if (!exists($packets{$packetid})) {
$packets{$packetid} = $2;
}
}
}
return 1;
}
sub get_output {
my $file = shift;
foreach my $value (sort keys %packets) {
print $file "$value $packets{$value}\n";
}
return 1;
}
1;
and saving it as recvoutput.pl but when I move it to the Output folder and "run" it, it just opens as a notepad file. and I don't get to
8. file will appear: recvpackets.txt
Is there something else that I'm missing?
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 22:07
by sctnightcore
download perl
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 22:18
by nelsvoon27
sctnightcore wrote:download perl
Sorry but if you don't mind me asking, where do I find perl?
I mean I've searched forum after forum to find a solution for this >.>
Thanks again for your reply.
Re: heRO 2018 - Timeout on Map server.
Posted: 28 Feb 2018, 22:33
by fadreus
nelsvoon27 wrote:Sorry but if you don't mind me asking, where do I find perl?
Google
Re: heRO 2018 - Timeout on Map server.
Posted: 01 Mar 2018, 01:02
by nelsvoon27
Well thanks for the replies. Doubt I'd make it so ggz. Gonna just forget it.
Thanks again guys.
Re: heRO 2018 - Timeout on Map server.
Posted: 12 Mar 2018, 23:13
by qq6346144
i can help you