I can't get the cube mapping shader to work outside of the demo, can somebody explain which parts are essential?

It will only work with the cube0.dds file in the demo, any other image crashes the program when you try to load with texture type 2 for use with a cubemap.

Even when it is compiled and the cubemap is applied, it has no effect. I'm using a dbo model file, does this make a differece?

This bit screws up my main texture, and UV maps it at 1/5 scale...
set effect constant float 1,"U",5
set effect constant float 1,"V",5
Here's my code...
` Cube Mapping
load image "mediacube0.dds", cEFFECT1, 2
load effect "media/CubeMapping.fx",1,0
set effect constant float 1,"U",5
set effect constant float 1,"V",5
...
load object "mediacarriage.dbo", cPLAYER + 2
set object effect cPLAYER + 2, 1
texture object cPLAYER + 2, 2, cEFFECT1
The last "TEXTURE OBJECT" line has no effect, whether it is included or not.