Boriel Basic Forum
Old zxbasic game errors - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://forum.boriel.com/forumdisplay.php?fid=16)
+---- Thread: Old zxbasic game errors (/showthread.php?tid=2649)



Old zxbasic game errors - ardentcrest - 2025-11-03

trying Escape From Cnossus from 2013 getting this error

Error: 'subdivideHigh' is neither an array nor a function.

the line is

wall1 = subdivideHigh(x1, y1, x - 1, y2)

any help please


RE: Old zxbasic game errors - boriel - 2025-11-04

Please, can you provide a link to the .bas file??


RE: Old zxbasic game errors - ardentcrest - 2025-11-04

Escape from Cnossus
Author: Felix Plesoianu

Type: Dungeon Game

Year: 2013

Source: Yes

Link: https://notimetoplay.org/games/roguelike/escape-from-cnossus/


RE: Old zxbasic game errors - zedex82 - 2025-11-05

I had a play with this and got the same error. I think it is giving an error because it is calling the function before it has been defined. There may be a setting in the config that will ignore this error.

Or I may be wrong Smile


RE: Old zxbasic game errors - ardentcrest - 2025-11-05

Ok goto it working..... I just moved the function above the error line Smile


RE: Old zxbasic game errors - boriel - 2025-11-08

It's weird, because this should be partially supported (it should for subs, for example).
Anyway, another fix is to use DECLARE FUNCTION... (with the function header).

Will check it anyway.