Cartoon Shading

Above is my object in DB without cartoon shading.

Above is what I would like it to look like.

Above is the shade image.

Above is the edge image.

And above is the messed up darkbasic cartoon shaded object.
By now I suspect you realise I am trying to get cartoon shading to work

. Has anyone managed yet? I have searched the forums, and read every post about it, and have read a number of tutorials on the subject, but I cant get it to work in DB

.
I want to get an effect like the second image above. I have messed around with the two images, shade and edge, for days. Trying all different shades and colours, and changing the properties of my object (such as emissions, specular).
Though I dont think it helps, the source code is included and the object can be found at:
ftp://dbpro:
[email protected]/dbforum/object.x
Could someone please help, or at least tell me you got it to work (and a screenshot

)? Thanks.