eA SVN 12761 | SVN 6390 | Illegal division by zero

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

ponty
Moderators
Moderators
Posts: 130
Joined: 07 May 2008, 20:22
Noob?: No
Location: Canada

eA SVN 12761 | SVN 6390 | Illegal division by zero

#1 Post by ponty »

OpenKore version what-will-become-2.0.6 (SVN version)

Code: Select all

@ai_seq = attack route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: unknown
No loaded plugins.

Error message:
Illegal division by zero at src/Misc.pm line 1906.

Stack trace:
Illegal division by zero at src/Misc.pm line 1906.
 at src/Misc.pm line 1906
	Misc::meetingPosition('Actor::Monster=HASH(0x46f2bfc)', 2.5) called at src/AI/Attack.pm line 524
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 593
	main::mainLoop_initialized() called at src/functions.pl line 70
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x397d13c)') called at openkore.pl line 96
	main::__start() called at start.pl line 119

Died at this line:
  
* 	my $mySpeed = 1 / $char->{walk_speed};
  	my $timeCharMoves = time - $char->{time_move};
Currently, using serverType 3. The bot was left to attack randomly on pay_fild03 until the bug mention above crashes the bot.
Follow The template in Asking Questions or Be Trashed

Openkore Documentation Editor/Writer
~Servus Servorum~
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: eAthena SVN (stable) 12761 | 2.0.6 | Crash While Attacking

#2 Post by Bibian »

Freegoods modified this code not too long ago... he'll have to take a look at it
autior
Noob
Noob
Posts: 6
Joined: 09 May 2008, 07:01
Noob?: No

Re: eAthena SVN (stable) 12761 | 2.0.6 | Crash While Attacking

#3 Post by autior »

Yeah I have the same problem..

Code: Select all

OpenKore version what-will-become-2.0.6 (SVN version)
@ai_seq = attack route
Network state = 5
Network handler = Network::XKore
SVN revision: unknown
Loaded plugins:
  plugins/autotalk.pl (autotalk)
  plugins/avoidskill.pl (avoidSkill)

Error message:
Illegal division by zero at src/Misc.pm line 1906.

Stack trace:
Illegal division by zero at src/Misc.pm line 1906.
 at src/Misc.pm line 1906
	Misc::meetingPosition('Actor::Monster=HASH(0x2eb2898)', 15) called at src/AI/Attack.pm line 524
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 593
	main::mainLoop_initialized() called at src/functions.pl line 70
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x211bc38)') called at openkore.pl line 96
	main::__start() called at start.pl line 119

Died at this line:
  
* 	my $mySpeed = 1 / $char->{walk_speed};
  	my $timeCharMoves = time - $char->{time_move};

The errors pop up in in_sphinx2, attacking zeroms and matyrs.
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: eAthena SVN (stable) 12761 | 2.0.6 | Crash While Attacking

#4 Post by Bibian »

i just fixed it, but i dont know for sure if it'll work, but chances are it will...
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: eAthena 12761 | SVN 6390 | Illegal division by zero

#5 Post by Cozzie »

It is still occuring after you fixed the code vivi.

Code: Select all

OpenKore version what-will-become-2.0.6 (SVN version)
@ai_seq = attack route
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 6390
No loaded plugins.

Error message:
Illegal division by zero at src/Utils.pm line 162.

Stack trace:
Illegal division by zero at src/Utils.pm line 162.
 at src/Utils.pm line 159
	Utils::calcTime('HASH(0x1ef0cb4)', 'HASH(0x36a60a0)', 0) called at src/Misc.pm line 1938
	Misc::meetingPosition('Actor::Monster=HASH(0x35ec28c)', 2.5) called at src/AI/Attack.pm line 524
	AI::Attack::main() called at src/AI/Attack.pm line 97
	AI::Attack::process() called at src/AI/CoreLogic.pm line 77
	AI::CoreLogic::iterate() called at src/functions.pl line 593
	main::mainLoop_initialized() called at src/functions.pl line 70
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x28ff3f4)') called at openkore.pl line 96
	main::__start() called at start.pl line 119

Died at this line:
  		} elsif ($stepType == 1) {
* 			$time += 1 / $speed;
  		}


Make Openkore Awesome. Join the team.
Bibian
Perl Monk
Perl Monk
Posts: 416
Joined: 04 Apr 2008, 03:08

Re: eA SVN 12761 | SVN 6390 | Illegal division by zero

#6 Post by Bibian »

thats totally different part of the code lol

just fixed that one too...
Cozzie
Spam Generator
Spam Generator
Posts: 499
Joined: 04 Apr 2008, 09:30
Noob?: No
Location: Melbourne, City of beer and awful sushis

Re: eA SVN 12761 | SVN 6390 | Illegal division by zero

#7 Post by Cozzie »

woops =P I thought that bug was due to you fixing the old bug incorrectly. Had the same type of error lol.
Make Openkore Awesome. Join the team.