Connecting to FlawlessRO with Xkore

Private server support - Only post connectivity issues in the subforum!

Moderator: Moderators

SexyJon
Noob
Noob
Posts: 5
Joined: 24 Sep 2012, 07:34
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#41 Post by SexyJon »

ever_boy_ wrote:Here's what I got for fiRO's recvpackets, BUT BE AWARE! This file may contain minor errors, most likely packet's length. There's a regex flaw which makes possible for a positive length to be replaced for a -1 length and vice-versa.
But on overall, it should be ok.

Oh, and it doesn't have replay factor, as I still couldn't figure out how it works on your exe. But as far as I know, this is not required by openkore, it's used for visual compare only.

http://pastebin.com/y8pcVmgM

My bot is working with this recvpackets using openkoreSVN. But the thing is, sometimes it recognize the monster then sometimes it recognize as npc. It didn't attack any long range or unmovable monsters like hydra, peco egg, mandragora etc..Also, I didn't recognize any NPC and all with wrong coordinates. My bot also have an error after 10min-4hrs.

Code: Select all

Error message:
Invalid arguments.

Stack trace:
Trace begun at src\Task\Route.pm line 80
Task::Route::new('Task::Route', 'actor', 'Actor::You=HASH(0x2718f34)', 'x', 74, 'y', 0, 'maxDistance', undef, 'maxTime', 4, 'avoidWalls', '', 'distFromGoal', undef, 'pyDistFromGoal', undef, 'notifyUponArrival', undef) called at src\Actor.pm line 776
Actor::route('Actor::You=HASH(0x2718f34)', undef, 74, 0, 'maxRouteTime', 4, 'attackID', 'M-^P.M-1^F', 'noMapRoute', 1, 'noAvoidWalls', 1) called at src\AI\Attack.pm line 526
AI::Attack::main at src\AI\Attack.pm line 97
AI::Attack::process at src\AI\CoreLogic.pm line 77
AI::CoreLogic::iterate at src\functions.pl line 736
main::mainLoop_initialized at src\functions.pl line 70
main::mainLoop at src\Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x12280e4)') called at openkore.pl line 97
main::__start at start.pl line 136

Died at this line:
  
* 	unless ($args{actor}->isa('Actor') and $args{x} != 0 and $args{y} != 0) {
  		ArgumentException->throw(error => "Invalid arguments.");
DelitaX
Human
Human
Posts: 48
Joined: 07 Apr 2008, 21:02
Noob?: No
Location: USA

Re: Connecting to FlawlessRO with Xkore

#42 Post by DelitaX »

ive been analyzing some packets while seeing/attacking monsters in the normal client but cant seem to find anything called/related to "actor_info". anyone got more information on finding this packet?
born2bagamer
Noob
Noob
Posts: 4
Joined: 24 Sep 2012, 18:18
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#43 Post by born2bagamer »

ever_boy_ or DelitaX, any chance one of you could re-upload the first recvpackets file that ever_boy_ posted? I have been working at this as well, and typically I am pretty good at solving these type of problems. I figure it couldn't hurt to have another person take a look at it, and it sounds like ever posted a good starting point in that first packet file.
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#44 Post by ever_boy_ »

actually, I never had to look for that one...but it should appear whenever you find a monsters shows up on your screen, I guess.
are you looking for packet's ID? 56º and 55º bytes.
SexyJon
Noob
Noob
Posts: 5
Joined: 24 Sep 2012, 07:34
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#45 Post by SexyJon »

My bot is working with the 1st revcpackets that ever_boy posted. But sometimes it recognize the monster as NPC after several hours of boting I'm having error message. Any idea how to fix it?
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#46 Post by ever_boy_ »

SexyJon wrote:My bot is working with the 1st revcpackets that ever_boy posted. But sometimes it recognize the monster as NPC after several hours of boting I'm having error message. Any idea how to fix it?
does this happen to a monster which is already identified in your monsters.txt?
DelitaX
Human
Human
Posts: 48
Joined: 07 Apr 2008, 21:02
Noob?: No
Location: USA

Re: Connecting to FlawlessRO with Xkore

#47 Post by DelitaX »

*oops
Last edited by DelitaX on 25 Sep 2012, 18:05, edited 1 time in total.
SexyJon
Noob
Noob
Posts: 5
Joined: 24 Sep 2012, 07:34
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#48 Post by SexyJon »

ever_boy_ wrote:
SexyJon wrote:My bot is working with the 1st revcpackets that ever_boy posted. But sometimes it recognize the monster as NPC after several hours of boting I'm having error message. Any idea how to fix it?
does this happen to a monster which is already identified in your monsters.txt?
Yes..I'm having this message "Removed actor with off map coordinates <xx,y>, filed max <xx,yy>"
ever_boy_
Developers
Developers
Posts: 308
Joined: 06 Jul 2012, 13:44
Noob?: No

Re: Connecting to FlawlessRO with Xkore

#49 Post by ever_boy_ »

DelitaX wrote:this is the 1st recvpackets:

Code: Select all

# Packet Extractor by kLabMouse
# Extracted from VeteranRO.exe
0187 6 6
0081 3 3
01C6 4 4
...
I thought this was the second one.

Again, which one is working better? Mine or kLabMouse's?
DelitaX
Human
Human
Posts: 48
Joined: 07 Apr 2008, 21:02
Noob?: No
Location: USA

Re: Connecting to FlawlessRO with Xkore

#50 Post by DelitaX »

oh, i apologize. thats the wrong one - the first is working better.