@TDK: I thought there was a line limit as well (in the basic editor for DBC... Maybe DarkEDIT's different)
it was while I was doing a lazy workaround for not being allowed to import media into programmes to enter your DBC Challenge thing on this forum actually...
I just created a DBA file and put code to read, pixel-by-pixel, the colour value and coordinate of each pixel of an imported texture, export the commands for recreation to an external text file, and then manually copy them back into my main file
the code is now
cls
if file exist("wallsdata.txt")=1
delete file "wallsdata.txt"
endif
load image "walls.bmp",1
create bitmap 1,32,32
paste image 1,0,0
open to write 1,"wallsdata.txt"
for x=0 to 31
for y=0 to 31 step 8
pixeldat1$ = str$(point(x,y))
pixeldat2$ = str$(point(x,y+1))
pixeldat3$ = str$(point(x,y+2))
pixeldat4$ = str$(point(x,y+3))
pixeldat5$ = str$(point(x,y+4))
pixeldat6$ = str$(point(x,y+5))
pixeldat7$ = str$(point(x,y+6))
pixeldat8$ = str$(point(x,y+7))
cld1$ = "ink " + pixeldat1$ + ",0 : dot " + str$(x) + "," + str$(y) + " : ink " + pixeldat2$ + ",0 : dot " + str$(x) + "," + str$(y+1)
cld2$ = " : ink " + pixeldat3$ + ",0 : dot " + str$(x) + "," + str$(y+2) + " : ink " + pixeldat4$ + ",0 : dot " + str$(x) + "," + str$(y+3)
cld3$ = " : ink " + pixeldat5$ + ",0 : dot " + str$(x) + "," + str$(y+4) + " : ink " + pixeldat6$ + ",0 : dot " + str$(x) + "," + str$(y+5)
cld4$ = " : ink " + pixeldat7$ + ",0 : dot " + str$(x) + "," + str$(y+6) + " : ink " + pixeldat8$ + ",0 : dot " + str$(x) + "," + str$(y+7)
cld$ = cld1$ + cld2$ + cld3$ + cld4$
write string 1,cld$
next y
next x
close file 1
cls
set current bitmap 0
center text 320,240,"finished"
which seems to work as it produces 16 commands per line. However, when each command was on it's own line with a 256*256 pixel image, it seemed to have some difficulty with pasting the whole 130-odd thousand extra lines of code that I tried to put in at the end into the editor
I suppose that is quite a lot, come to think of it. I resized my textures to a fraction of the size and put more commands on one line so the problem's sorted now but still... be interested to know just how much the editor can take.
http://jamesmason01.googlepages.com/index.htm