portal.txt error when compiling it
Moderators: Moderators, Developers
portal.txt error when compiling it
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!!
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!!
Re: portal.txt error when compiling it
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
Re: portal.txt error when compiling it
ok thx ill check it out
Re: portal.txt error when compiling it
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 =)
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 =)
-
- Super Moderators
- Posts: 801
- Joined: 06 May 2008, 12:47
- Noob?: No
Re: portal.txt error when compiling it
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.
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!
One ST_kRO to bring them all and in the darkness bind them...
Mount Doom awaits us, fellowship of OpenKore!
mRO Poring Server need help on tis error please !
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
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
-
- Noob
- Posts: 3
- Joined: 07 May 2010, 15:03
- Noob?: Yes
Error when loading Maps.
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?
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.
Try update version kore
versão atual: 7734
Code: Select all
http://openkore.com/index.php/TortoiseSVN_Guide
-
- Developers
- Posts: 1798
- Joined: 05 Dec 2008, 05:42
- Noob?: Yes
Re: portal.txt error when compiling it
May be caused by missing fields dir.