portal.txt error when compiling it

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

Moderators: Moderators, Developers

Message
Author
cmple
Noob
Noob
Posts: 2
Joined: 09 Jul 2008, 21:21
Noob?: Yes

portal.txt error when compiling it

#1 Post 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

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: portal.txt error when compiling it

#2 Post 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
cs : ee : realist

cmple
Noob
Noob
Posts: 2
Joined: 09 Jul 2008, 21:21
Noob?: Yes

Re: portal.txt error when compiling it

#3 Post by cmple »

ok thx ill check it out

canas
Noob
Noob
Posts: 1
Joined: 22 Sep 2008, 13:32
Noob?: Yes

Re: portal.txt error when compiling it

#4 Post 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 =)

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: portal.txt error when compiling it

#5 Post 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.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

bryansin
Noob
Noob
Posts: 1
Joined: 02 Mar 2011, 05:55
Noob?: No

mRO Poring Server need help on tis error please !

#6 Post 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

Lebioulema
Noob
Noob
Posts: 3
Joined: 07 May 2010, 15:03
Noob?: Yes

Error when loading Maps.

#7 Post 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?

KoreGhost
Developers
Developers
Posts: 123
Joined: 28 Mar 2011, 12:48
Noob?: No
Location: Brazil
Contact:

Re: Error when loading Maps.

#8 Post by KoreGhost »

Try update version kore

Code: Select all

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

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: portal.txt error when compiling it

#9 Post by EternalHarvest »

May be caused by missing fields dir.

Post Reply