Well for one thing you're mixing apples and oranges... This bit of code:
function savestarfield()
a$ = saveDialog("Please select the name to save this starfield as...","DBPro DBO File (*.dbo)|*.dbo")
Save Object a$,1
a$ = " "
clear entry buffer
make mesh from object 1,1
b = len(a$) - 4
b$ = left$(a$,b)
b$ = b$ + ".x"
save mesh b$,1
endfunction
has you selecting a .dbo file as the save destination and then you append ".X" to the file name. Are you attempting to save the model in .DBO or .X format? They are two completely different model file formats. You know that right?
Intel Pentium 4, 3.4GHz, 1280MB RAM, NVidia Quadro FX3000/256MB, 240GB HD, XP Pro