I recieve the error when the compiler reaches:
detFileName$ = TERRAIN_PATH + "0" + str$(detailID) + "_DT.tga"
I checked and rechecked the file path/names, all appear to match, and tried various fixes others had mentioned in other posts.
function terrainLoad(terrainID, detailID)
'if idTerrainTex = 0 then idTerrainTex= systemFreeImage()
'if idTerrainDet = 0 then idTerrainDet= systemFreeImage()
'if idTerrain = 0 then idTerrain = dataSharedObjectFindFree()
'dataObject(idTerrain).rpgid=1
'dataObject(idTerrain).class=DATA_CLASS_TERRAIN
rem not yet
texFileName$ = TERRAIN_PATH + "0" + str$(terrainID) + "_TX.bmp"
mapFIleName$ = TERRAIN_PATH + "0" + str$(terrainID) + "_HF.bmp"
detFileName$ = TERRAIN_PATH + "0" + str$(detailID) + "_DT.tga"
load image texFileName$, idTerrainTex
load image detFileName$, idTerrainDet
make object terrain idTerrain
set terrain heightmap idTerrain, mapFileName$
set terrain scale idTerrain, 3,0.6,3
set terrain split idTerrain, 4
set terrain tiling idTerrain, 4
set terrain light idTerrain, 1, -0.25, 0, 1,1,0.78,0.5
set terrain texture idTerrain, idTerrainTex, idTerrainDet
build terrain idTerrain
position object idTerrain,0,-5,0
rem temporary
endfunction
Thanks in advance for your time.
Mostly fail... sometimes epic