BUG on Field.pm

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderators: Moderators, Developers

genuineopenkore
Plain Yogurt
Plain Yogurt
Posts: 52
Joined: 16 Jan 2011, 03:06
Noob?: Yes

BUG on Field.pm

#1 Post by genuineopenkore »

OpenKore version what-will-become-2.1
whats wrong with my Field.pm?... it keeps spamming a message on my console of

Code: Select all

substr outside of string at src/Field.pm line 201.
Use of uninitialized value in ord at src/Field.pm line 201.
substr outside of string at src/Field.pm line 201.
Use of uninitialized value in ord at src/Field.pm line 201.
substr outside of string at src/Field.pm line 201.
Use of uninitialized value in ord at src/Field.pm line 201.
substr outside of string at src/Field.pm line 201.
Use of uninitialized value in ord at src/Field.pm line 201.
Line 201 on Field.pm

Code: Select all

return ord(substr($self->{rawMap}, ($y * $self->{width}) + $x, 1));
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: BUG on Field.pm

#2 Post by EternalHarvest »

Probably invalid .fld file (width and height in the header don't match the data), otherwise it would have been prevented by isOffMap check.