Fix for iRO only no other server

International

Moderator: Moderators

zakuham
Noob
Noob
Posts: 6
Joined: 07 Apr 2011, 04:14
Noob?: No

Fix for iRO only no other server

#1 Post by zakuham »

After reading few topics i decided to try fixing my bot with help of makubex and motivus

my fix is for the openkore_ready set and has only one server that is iRO

Mediafire link
Mushroom
Perl Monk
Perl Monk
Posts: 427
Joined: 04 Apr 2008, 14:04
Noob?: No
Location: Brazil

Re: Fix for iRO only no other server

#2 Post by Mushroom »

Instead of posting the whole openkore, just post the diff, so it's possible to know that you changed.
Quit.
wizzdome
Noob
Noob
Posts: 15
Joined: 26 May 2010, 11:32
Noob?: No

Re: Fix for iRO only no other server

#3 Post by wizzdome »

thanks that solved my other problem i was having as well I so appreciate the file ups!!! I fixed the connection but was getting a buyer% error when trying to connect to account server... which is weird cause i got through before oh well works now thanks!!!
kizeki
Noob
Noob
Posts: 1
Joined: 08 Apr 2011, 10:41
Noob?: Yes

Re: Fix for iRO only no other server

#4 Post by kizeki »

is it just a matter of copy and pasting? i just started using openkore can you teach me how to use those download files ?
Epydemic
Noob
Noob
Posts: 4
Joined: 10 Apr 2011, 08:18
Noob?: Yes

Re: Fix for iRO only no other server

#5 Post by Epydemic »

Checking for new portals... none found


Connecting to Account Server...
An error occured while loading the server message parser for server type 'iRO':
Bareword "AI::OFF" not allowed while "strict subs" in use at
src/Network/Receive/ServerType0.pm line 1185.
BEGIN not safe after errors--compilation aborted at
src/Network/Receive/ServerType0.pm line 2072.
Compilation failed in require at (eval 274) line 3.
...propagated at
/<C:\Users\Epydemic\Desktop\OpenkoreDefault\start.exe>base.pm line 94.
BEGIN failed--compilation aborted at src/Network/Receive/iRO.pm line 17.
Compilation failed in require at (eval 272) line 1.
BEGIN failed--compilation aborted at (eval 272) line 1.

Press ENTER to exit this program.



Any Idea?
zakuham
Noob
Noob
Posts: 6
Joined: 07 Apr 2011, 04:14
Noob?: No

Re: Fix for iRO only no other server

#6 Post by zakuham »

i just post the server n recvpacket file and all u need to change is config.txt server to 2 from 0
Uchiha Denzel
Noob
Noob
Posts: 2
Joined: 05 Apr 2011, 15:00
Noob?: Yes

Re: Fix for iRO only no other server

#7 Post by Uchiha Denzel »

:o YAIIIIIi,, it worked TY dude ya rock!!! :mrgreen:
falcon4hire
Noob
Noob
Posts: 2
Joined: 05 Apr 2011, 20:06
Noob?: Yes

Re: Fix for iRO only no other server

#8 Post by falcon4hire »

I downloaded the files from your fix and an error. This is also the error I got before when I downloaded a different ServerType0.pm because my old one looked like this -



package Network::Receive::ServerType0;

use strict;
use Network::Receive ();
use base qw(Network::Receive);
use Time::HiRes qw(time usleep);

use AI;
use Globals qw($char %timeout $net %config @chars $conState $conState_tries $messageSender);
use Log qw(message warning error debug);
use Translation;
use Network;
use Utils qw(makeCoords);

sub new {
my ($class) = @_;
my $self = $class->SUPER::new;
return $self;
}

sub map_loaded {
my ($self, $args) = @_;
$net->setState(Network::IN_GAME);
undef $conState_tries;
$char = $chars[$config{char}];

if ($net->version == 1) {
$net->setState(4);
message(T("Waiting for map to load...\n"), "connection");
ai_clientSuspend(0, 10);
main::initMapChangeVars();
} else {
$messageSender->sendGuildInfoRequest();

# Replies 01B6 (Guild Info) and 014C (Guild Ally/Enemy List)
$messageSender->sendGuildRequest(0);

# Replies 0166 (Guild Member Titles List) and 0154 (Guild Members List)
$messageSender->sendGuildRequest(1);
message(T("You are now in the game\n"), "connection");
Plugins::callHook('in_game');
$messageSender->sendMapLoaded();
$timeout{'ai'}{'time'} = time;
}

$char->{pos} = {};
makeCoords($char->{pos}, $args->{coords});
$char->{pos_to} = {%{$char->{pos}}};
message(TF("Your Coordinates: %s, %s\n", $char->{pos}{x}, $char->{pos}{y}), undef, 1);

$messageSender->sendIgnoreAll("all") if ($config{ignoreAll});
}

1;


i'm pretty sure that for some reason my Servertype0.pm (as well as other related files) are the wrong files. Or i missed an update from before that was not included in the download from http://sourceforge.net/projects/openkore/files/
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Fix for iRO only no other server

#9 Post by EternalHarvest »

Epydemic wrote:Bareword "AI::OFF" not allowed while "strict subs" in use
falcon4hire wrote:This is also the error I got before when I downloaded a different ServerType0.pm because my old one looked like this
Or i missed an update from before that was not included in the download from http://sourceforge.net/projects/openkore/files/
These "just unpack and replace files" fixes may not work with any revision different from author's, and trunk already updated for iRO. Just use svn update.

Sourceforge only lists so-called releases which didn't happen for a while. Have a look at http://openkore.com/.
Epydemic
Noob
Noob
Posts: 4
Joined: 10 Apr 2011, 08:18
Noob?: Yes

Fix for iRO only no other server

#10 Post by Epydemic »

yea I started to notice that too, I have been using Notepad++ and with great success really have begun to understand the Server0.pm file. . For example: When we, the noobs, were instructed to add the '082D' Packet ID ( I really have no idea what the official name is) for what iRO list as the character info to the 2.0.7 svn of Openkore it worked great. But the 'unpack and replace' caused our character to just sit still no longer creating random routes. Between the unpack and replace files and the original svn there really needs to be some type of consolidation and its really beyond my current understanding.