I guess I should have noted it is running in hardware mode. I have an NVIDIA 250 so it works.
If the above program works you should see a green box followed by a blob of water crashing on to it. That at least shows the water code is working on your system. Here is what happens with my code. All I have done is numbered the camera and added mouse controls to it.
set display mode 1024,768,32,1
sync on
sync rate 60
phy start
autocam off
phy make scene 1,1,2,1
phy set current scene 1
make camera 1
position camera 1,-5,9,-5
point camera 1,0,0,0
make object cube 1,100
scale object 1,100,1,100
phy make rigid body static box 1
make object cube 2,2
color object 2, rgb(0,247,0)
position object 2, 0,0,0
phy make rigid body static box 2
phy make fluid 500
phy set fluid position 500,0,30,0
phy set fluid radius 500,5
phy set fluid rest density 500,1000
phy build fluid 500
do
if keystate(17)=1 then position camera 1, camera position x(1)+5*sin(camera angle y(1)),20,camera position z(1)+5*cos(camera angle y(1))
if keystate(31)=1 then position camera 1, camera position x(1)-5*sin(camera angle y(1)),20,camera position z(1)-5*cos(camera angle y(1))
if keystate(32)=1 then position camera 1, camera position x(1)+5*cos(camera angle y(1)),20,camera position z(1)-5*sin(camera angle y(1))
if keystate(30)=1 then position camera 1, camera position x(1)-5*cos(camera angle y(1)),20,camera position z(1)+5*sin(camera angle y(1))
rotate camera 1, camera angle x(1)+mousemovey()/8,camera angle y(1)+mousemovex()/8,0
phy update
sync
loop
I like the code you posted to see if hardware mode it present. Try this and see what happens. It should create the water it should attack the camera and somehow be attached to it. I am still wondering what is happening.