Openkore.com

OpenKore Forums
It is currently 15 Dec 2018, 05:44

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 28 Apr 2013, 09:15 
Offline
Human
Human

Joined: 03 Dec 2008, 15:46
Posts: 22
when bot with homun without homun tankMode, just homun attacked monster, master not attacking.
homun walking speed was slower than player walking speed
and if homun lost from vision homun will respawn beside master, and core will detect homun lost and try to find homun,
actor still move to previous homun position although the homun was beside actor,

this bug is actor didn't detect homun position when homun respawn beside actor, and still move to last position before lost vision

this bug was from r? version openkore july 2012 and i try to use new svn version r8444, This bug may have been there before july 2012 (version)

try to solving this, i still search recvpacket for homun spawning and must dequene ai route search for homun,

the previous server allowed homun lost from vision, and current server if homun lost from vision homun is directly respawn beside actor/master


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 28 Apr 2013, 12:27 
Offline
Human
Human

Joined: 03 Dec 2008, 15:46
Posts: 22
test, my post is gone in section bug report oh it doesn't gone, but this forum have an error in sorting with post time,

i has fixed this bug

the problem was in new server, homunculus was never lost or never gone, because if lost from sight homunculus automatically respawn beside actor/player/master

i just edit and add value to fix this problem

how to fix :
open src/AI/slave.pm

search : # homunculus is lost
and below
at code :
Code:
      } elsif ($slave->{actorType} eq 'Homunculus' && $slave_dist >= MAX_DISTANCE && !$slave->{slave_lost} {


change to :
Code:
      } elsif ($slave->{actorType} eq 'Homunculus' && $slave_dist >= MAX_DISTANCE && !$slave->{slave_lost} && (!$config{$slave->{configPrefix}.'neverLost'} || 0)) {


add this line to config.txt

homunculus_neverLost 1
put 1 if your new server automatically respawn your homunculus when lost sight or outside your vision
put 0 or leave this addition when your sever still old server


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 02 May 2013, 05:10 
Offline
The Kore Devil
The Kore Devil
User avatar

Joined: 22 Feb 2013, 03:40
Posts: 675
Location: The Netherlands
Bump for tester, good job xxstreme!


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 02 May 2013, 16:49 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
Well. I think it's a "dirty" fix.
In case of "Respawn", there should be some packets that Indicate "Respawn" of actor. Thus allow us to to work them out and return slave state to normal without need for manual "respawn" behavior.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 03 May 2013, 13:59 
Offline
Human
Human

Joined: 03 Dec 2008, 15:46
Posts: 22
yes it was @klabmouse, full fix was at on homunculus respawn functional at packet receive, and should be reset for lost homun, however before kore get homun packet respawn, homun will detect as loss homun, and actor will move backwards first for search the homun, without functional for stoped actor move from searching loss homun

there are (one or two seconds) a timeout before homun respawn at actor position when lost of sight/visible

i just make a quick fix for this.


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 03 May 2013, 16:02 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1301
xxstreme wrote:
yes it was @klabmouse, full fix was at on homunculus respawn functional at packet receive, and should be reset for lost homun, however before kore get homun packet respawn, homun will detect as loss homun, and actor will move backwards first for search the homun, without functional for stoped actor move from searching loss homun

there are (one or two seconds) a timeout before homun respawn at actor position when lost of sight/visible

i just make a quick fix for this.

Can Slave AI have at least 2~3 sec timeout before Try to find the lost Slave?

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: r8444 | homunculus find homun bug, when homun respawn beside
PostPosted: 03 May 2013, 22:17 
Offline
Human
Human

Joined: 03 Dec 2008, 15:46
Posts: 22
please wait a few days, i had a little busy work right now.
and i will fix this for well


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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