Openkore.com

OpenKore Forums
It is currently 29 May 2017, 03:50

All times are UTC - 5 hours [ DST ]



Forum rules


This server is currently not maintained and tables folder (including connection info) is outdated. Read the wiki for instructions on how to update those information. Please contribute your updated info. Contact Cozzie to join the team as a regular server supporter.



Post new topic Reply to topic  [ 130 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next
Author Message
 Post subject: Temporary fix for openkore pRO problems (Feb 3, 2013)
PostPosted: 29 Jan 2013, 15:49 
Offline
Super Moderators
Super Moderators

Joined: 04 Apr 2008, 11:12
Posts: 146
The changes have already been added to the latest version of openkore SVN just download from http://collectskin.com/openkore/

Fixed issues:
Can't reconstruct unknown packet: sync_received_characters at src/Network/PacketParser.pm line 172.
xKore 1 not working

I have managed to fix xkore 1 issue with pRO serverType but I am still working on fixing xkore 2, will update this topic when I have fixed xkore 2 problem.


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 17:18 
Offline
Noob
Noob

Joined: 02 Apr 2011, 07:22
Posts: 18
It worked for me.

You're awesome heero.


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 17:54 
Offline
Plain Yogurt
Plain Yogurt

Joined: 30 Nov 2012, 20:27
Posts: 64
@heero

it also worked for me. thank you very much. can i ask a question? what file(s) specifically are modified through this fix? i try to copy the following files you mentioned to my original OpenKore folder (not to the temporary folder) and still it doesn't work. but after i copy my configurations to the temporary folder, and follow your instructions, it really works now.


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:00 
Offline
Plain Yogurt
Plain Yogurt

Joined: 17 Sep 2012, 13:54
Posts: 61
Location: Sa Puso Mo
you're our hero :)


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:02 
Offline
Noob
Noob

Joined: 23 Jan 2013, 21:51
Posts: 2
This fix works! Thanks! :D


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:04 
Offline
Noob
Noob

Joined: 29 Jan 2013, 18:56
Posts: 3
does this work on the "no character problem" in the character select in pRO? by the way sir heero what program should i use to edit the iRO.pm? i cant open it to edit. xD


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:06 
Offline
Noob
Noob

Joined: 23 Feb 2012, 02:44
Posts: 9
Thanks Sir! It worked perfectly!


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:15 
Offline
Noob
Noob

Joined: 29 Jan 2013, 19:06
Posts: 2
Location: PHP
Code:
#########################################################################
#  OpenKore - Network subsystem
#  Copyright (c) 2006 OpenKore Team
#
#  This software is open source, licensed under the GNU General Public
#  License, version 2.
#  Basically, this means that you're allowed to modify and distribute
#  this software. However, if you distribute modified versions, you MUST
#  also distribute the source code.
#  See http://www.gnu.org/licenses/gpl.html for the full license.
#########################################################################
# iRO (International)
# Servertype overview: http://wiki.openkore.com/index.php/ServerType
package Network::Receive::iRO;

use strict;
use base qw(Network::Receive::ServerType0);

use Globals qw($messageSender %timeout);
use Log qw(debug);
use Misc qw(monsterName);
use Utils qw(timeOut);

use Time::HiRes qw(time);

sub new {
   my ($class) = @_;
   my $self = $class->SUPER::new(@_);
   my %packets = (
      '006D' => ['character_creation_successful', 'a4 V9 v V2 v14 Z24 C6 v2', [qw(charID exp zeny exp_job lv_job opt1 opt2 option stance manner points_free hp hp_max sp sp_max walk_speed type hair_style weapon lv points_skill lowhead shield tophead midhead hair_color clothes_color name str agi vit int dex luk slot renameflag)]],
      '0097' => ['private_message', 'v Z24 V Z*', [qw(len privMsgUser flag privMsg)]], # -1
      '082D' => ['received_characters_info', 'x2 C5 x20', [qw(normal_slot premium_slot billing_slot producible_slot valid_slot)]],
      '09A0' => ['unknown_09A0', 'V', [qw(count)]],
      '099D' => ['received_characters', 'x2 a*', [qw(charInfo)]],
   );

   foreach my $switch (keys %packets) {
      $self->{packet_list}{$switch} = $packets{$switch};
   }

   my %handlers = qw(
      received_characters 099D
      actor_exists 0856
      actor_connected 0857
      actor_moved 0858
      account_id 0283
   );
   $self->{packet_lut}{$_} = $handlers{$_} for keys %handlers;
   
   return $self;
}

sub received_characters_info {
   my ($self, $args) = @_;

   Scalar::Util::weaken(my $weak = $self);
   my $timeout = {timeout => 6, time => time};

   $self->{charSelectTimeoutHook} = Plugins::addHook('Network::serverConnect/special' => sub {
      if ($weak && timeOut($timeout)) {
         $weak->received_characters({charInfo => '', RAW_MSG_SIZE => 4});
      }
   });

   $self->{charSelectHook} = Plugins::addHook(charSelectScreen => sub {
      if ($weak) {
         Plugins::delHook(delete $weak->{charSelectTimeoutHook}) if $weak->{charSelectTimeoutHook};
      }
   });

   $timeout{charlogin}{time} = time;

   $self->received_characters($args);
}

sub unknown_09A0 {
   my ($self, $args) = @_;
   for (my $count = $args->{count}; $count >= 1; $count--) {
      $messageSender->sendToServer($messageSender->reconstruct({switch => 'unknown_09A1'}));
   }
}

*parse_quest_update_mission_hunt = *Network::Receive::ServerType0::parse_quest_update_mission_hunt_v2;
*reconstruct_quest_update_mission_hunt = *Network::Receive::ServerType0::reconstruct_quest_update_mission_hunt_v2;

1;



do i need to copy this code unto my iRo.pm? do i need to change the previous code that was written on iRo.pm or am I just going to paste it bellow the existing code into iRo.pm? sorry to bother...


Last edited by jeje665 on 29 Jan 2013, 19:21, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:20 
Offline
Noob
Noob

Joined: 16 Oct 2012, 05:00
Posts: 3
thanks! it worked. but the other problem is that we can't use xkore. :(


Top
 Profile  
 
 Post subject: Re: Temporary fix for openkore pRO disconnections (Jan 30, 2013)
PostPosted: 29 Jan 2013, 19:32 
Offline
Noob
Noob

Joined: 29 Jan 2013, 18:56
Posts: 3
i ddint notice that i only should open the iro.pm file in notepad. xD what a relief haha thanks it worked perfectly heero ^_^


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 130 posts ]  Go to page 1, 2, 3, 4, 5 ... 13  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group