Search found 214 matches

by sofax222
21 Jan 2013, 02:24
Forum: Fixed bugs
Topic: no inventory information SVN r8349
Replies: 31
Views: 32237

Re: no inventory information SVN r8349

How about to do this: The original code lines: unless ($local_item = $args->{getter} && $args->{getter}($item)) { $local_item = $args->{class}->new; $add = 1; } It should be changed to like: unless ($args->{getter} && ($local_item = $args->{getter}($item))) { $local_item = $args->{class}->new; $add ...
by sofax222
20 Jan 2013, 20:09
Forum: Fixed bugs
Topic: no inventory information SVN r8349
Replies: 31
Views: 32237

Re: no inventory information SVN r8349

Anyway !!!!
What means this code line is:

Code: Select all

unless ($local_item = $args->{getter} && $args->{getter}($item))
by sofax222
28 Dec 2012, 21:17
Forum: Fixed bugs
Topic: no inventory information SVN r8349
Replies: 31
Views: 32237

Re: no inventory information SVN r8349

It could be a bug in the src/Network/Receive/ServerType0.pm. Such as : The original code lines: unless ($local_item = $args->{getter} && $args->{getter}($item)) { $local_item = $args->{class}->new; $add = 1; } It should be something like: unless (!$args->{getter} || $local_item = $args->{getter}($it...
by sofax222
08 Nov 2012, 11:15
Forum: Developers Corner
Topic: Route away from the "danger area" !!
Replies: 6
Views: 3780

Re: Route away from the "danger area" !!

After some testing...
It seems to works well !
When I set some one coordinate with a radius...
It could route away from this "danger area" !!
by sofax222
08 Nov 2012, 04:08
Forum: Developers Corner
Topic: Route away from the "danger area" !!
Replies: 6
Views: 3780

Re: Route away from the "danger area" !!

Thank you very much ! Actually, I have completed this job !! I descript simply as following: 1. I pass a coordnate and a radus (danger area) parametr into $class->_reset(..) from reset of src/Utils/PathFinding.pm. Such as: return $class->_reset($args{distance_map}, $args{weights}, $args{width}, $arg...
by sofax222
07 Nov 2012, 06:57
Forum: Fixed bugs
Topic: bug in src/Task/TalkNPC.pm
Replies: 1
Views: 5983

bug in src/Task/TalkNPC.pm

In the code section of src/Task/TalkNPC.pm:

Code: Select all

				# We give some time to get inventory_item_added packet from server.
				# And skip this itteration.
				$ai_v{npc_talk}{time} = time + 0.2;
				$self->{time} = time + 0.2;
				next;
			}
The "next;" statement will make OpneKore crash in running !
by sofax222
06 Nov 2012, 20:13
Forum: Developers Corner
Topic: Route away from the "danger area" !!
Replies: 6
Views: 3780

Re: Route away from the "danger area" !!

Another Question:

The CalcPath_pathStep function in src/auto/XSTools/PathFinding/algorithm.cpp, is it only calculating the path steps in the same field ?
by sofax222
06 Nov 2012, 04:31
Forum: Developers Corner
Topic: Route away from the "danger area" !!
Replies: 6
Views: 3780

Re: Route away from the "danger area" !!

Do you mean to change the .dist file in Fields folder ? But the "danger area" what I said is dynamics ! Actually, I want to mark the position(coordinate) where the Boss Monster appears, and to set the (x - r, y - r) to (x + r, y + r) to be the "danger area". Then, eliminating this "danger area" in r...
by sofax222
05 Nov 2012, 20:24
Forum: Developers Corner
Topic: Route away from the "danger area" !!
Replies: 6
Views: 3780

Route away from the "danger area" !!

I try to add a algorithm into the routing process for avoiding the "danger area". If I have know what is the "danger area" (the coordinate with a radius), how do I to eliminate these area from the routing process ? I have traced some program... src/Task/Route.pm src/Utils/PathFinding.pm src/auto/XST...