having trouble with the matrix tutorial. i created a matrix in matedit and tried to load it into a prog, but i keep getting a "Unkown command at line 31" error. I don't understand, i've got all of the textures and files from the mat edit folders loaded into my projects folder in dark basic and i even used the same code on the tutorial site but it won't work. here's the code, but it's the same on the site except for the matrix name, because i made my own and named it KELT_2. any help would be nice.
`--------
`INCLUDES
`--------
`include the MatEdit LoadMatrix files
#include "LoadMatrix.dba"
Rem *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Rem !!!!!! VERY VERY IMPORTANT !!!!!!
Rem Please copy the following DIM statements into your program for the
Rem LoadMatrix call, EVEN IF YOU DON'T USE THEM!
Dim BigMatrix(600,600,1)
Dim StartLoc_X(1): Dim StartLoc_Z(1):Dim Info(2)
Dim TArrayX(1): Dim TArrayZ(1): Dim FKey(10,1)
Dim ColData(100): Dim ZoneData(100): Dim Tiles(500,500)
Dim OverTexture$(100): Dim OverName$(20): Dim ReplaceTex(100)
Dim MOffsetX(25): Dim MOffsetY(25)
Dim MWire(20): Dim MGhost(20): Dim Lock(20)
Dim MatX#(20): Dim MatY#(20): Dim MatZ#(20)
Dim MatWidth#(20): Dim MatHeight#(20)
Dim TilesX(20): Dim TilesZ(20)
Dim MatHi#(20): Dim MatLo#(20)
Rem *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
`set up the program
sync on
sync rate 40
hide mouse
`load the matrix
LoadMatrix("KELT_2",1)
`---------
`MAIN LOOP
`---------
main:
do
`the following is temporary. There will be more but it will made later
`get keyboard input for movement
if upkey()=1 then move camera 4
if downkey()=1 then move camera -4
if leftkey()=1 then yrotate camera wrapvalue(camera angle y()-4)
if rightkey()=1 then yrotate camera wrapvalue(camera angle y()+4)
`sort out the camera height
x#=camera position x()
z#=camera position z()
y#=get ground height(1,x#,z#)+10
`position the camera
position camera x#,y#,z#
`update the screen
sync
loop