Page 1 of 1

portal.txt error when compiling it

Posted: 09 Jul 2008, 21:25
by cmple
heres what the ERROR.TXT said....

OpenKore version 2.0.5.1
Network handler = Network::DirectConnection
SVN revision: unknown
No loaded plugins.

Error message:
Can't call method "isWalkable" on an undefined value at src/Misc.pm line 647.

Stack trace:
Can't call method "isWalkable" on an undefined value at src/Misc.pm line 647.
at src/Misc.pm line 647
Misc::closestWalkableSpot('undef', 'HASH(0x21a0b88)') called at src/Misc.pm line 3415
Misc::compilePortals() called at src/functions.pl line 292
main::initPortalsDatabase() called at src/functions.pl line 89
main::mainLoop() called at src/Interface.pm line 75
Interface::mainLoop('Interface::Console::Win32=HASH(0x2b3d010)') called at openkore.pl line 96
main::__start() called at start.pl line 125

Died at this line:
foreach my $z ( [0,0], [0,1],[1,0],[0,-1],[-1,0], [-1,1],[1,1],[1,-1],[-1,-1],[0,2],[2,0],[0,-2],[-2,0] ) {
* next if !$field->isWalkable($pos->{x} + $z->[0], $pos->{y} + $z->[1]);



NEED HELP PLEASE!! :D

Re: portal.txt error when compiling it

Posted: 10 Jul 2008, 14:42
by sli
One of your portals probably has incomplete information, like only an x coordinate and no y. You'll have to find it. Easiest way would be to write a script that checks every line.

Code: Select all

portals = open('portals.txt','r').read().split('\n')
for line in portals:
    if line[0] == '#': continue
    try:
        if len(line.split(' ')) < 3: print 'ERROR IN LINE:', line
    except: print 'POSSIBLE ERROR IN LINE:', line

Re: portal.txt error when compiling it

Posted: 11 Jul 2008, 15:41
by cmple
ok thx ill check it out

Re: portal.txt error when compiling it

Posted: 22 Sep 2008, 13:47
by canas
hum yeah i kinda had the same problem.
since i don't understand much about programming and scripts, can you please tell me how do i use that script you wrote? and where do i put it?

many thanks =)

Re: portal.txt error when compiling it

Posted: 09 Sep 2010, 00:51
by Technology
method called on undefined object (supposedly of class Field)

sli's description is correct.
And checking if the input is correct is a good idea.

But nevertheless this bug is caused by the user so... we cannot resolve the bug.

mRO Poring Server need help on tis error please !

Posted: 02 Mar 2011, 06:01
by bryansin
i had update Using SVN for all the open kore folders and sub folders.

when it load world map, it promt out this error, any one can help ?

THE ERROR MESSAGE :
CANT CALL METHOD 'isWalkable' ON AN UNDEFINED VALUE AT SRC/MISC.PM LINE 697

Error when loading Maps.

Posted: 01 May 2011, 22:15
by Lebioulema
When I try loading the openkore.pl or start.exe or wxstart.exe i always get an "iswalkable" error:

OpenKore version what-will-become-2.1
Network handler = Network::DirectConnection
SVN revision: 7721
No loaded plugins.

Error message:
Can't call method "isWalkable" on an undefined value at src/Misc.pm line 697.

Stack trace:
Can't call method "isWalkable" on an undefined value at src/Misc.pm line 697.
at src/Interface/Wx.pm line 161
Interface::Wx::mainLoop('Interface::Wx=HASH(0x3d1a604)') called at openkore.pl line 97
main::__start() called at start.pl line 136

Died at this line:
foreach my $z ( [0,0], [0,1],[1,0],[0,-1],[-1,0], [-1,1],[1,1],[1,-1],[-1,-1],[0,2],[2,0],[0,-2],[-2,0] ) {
* next if !$field->isWalkable($pos->{x} + $z->[0], $pos->{y} + $z->[1]);
$pos->{x} += $z->[0];


http://img717.imageshack.us/i/openkorep.jpg/

Does somebody know how to solve this?

Re: Error when loading Maps.

Posted: 24 May 2011, 11:29
by KoreGhost
Try update version kore

Code: Select all

http://openkore.com/index.php/TortoiseSVN_Guide
versão atual: 7734

Re: portal.txt error when compiling it

Posted: 05 Aug 2011, 09:55
by EternalHarvest
May be caused by missing fields dir.