Hey I just installed DarkBASIC and I'm trying to code my first program. I have it all coded and written up but when I try to run it I get a "Both operands are required for non-uniary operations..." error. Also when I go into the Demo and try to boot a program the only thing that happens is a black window flashes on my screen and I can see another window opening and closing quickly in my toolbar. I am running Windows 7 and have DarkBASIC on Administrative Mode.
Anyone have any ideas?
Here is my code..
Rem Project: First 3D
Rem Created: 1/9/2011 12:45:24 PM
Rem ***** Main Source File *****
Set Display Mode 640, 480, 32 Rem *** Sets Display Resolution and 32-bit colour ***
Autocam Off Rem *** Stops from camera locking onto to new objects rendered on screen ***
Sync On Rem *** Instructs the system to draw the scene, everytime this command is called. ***
Sync Rate 60 Rem *** This command instructs the system to draw our scene no more than 60 times a second ***
Make Object Cube 1, 25 Rem *** Makes a cube where 1 is the ID of the object and 25 is it's size ***
Color Object 1, RGB(164, 215, 164) Rem *** Adds color to the object selected, in this case Object 1 ***
Position Camera 30, 30, 30 Rem *** Default camera is present in DarkBASIC for there is no need for an ID, this camera is our "eyes" into the 3D scene ***
Point Camera 0, 0, 0, Rem *** Use this command to look at a point in 3D Space from Position Camera ***
Make Light 1 Rem *** Instructs the system to creat a new light in the scene. This Light's ID is 1 ***
Position Light 1, 0, 30, 0 Rem *** This command places Light 1 where the XYZ coordinates designate, 0, 30, 0 positions the light 30 units above the central axis ***
Do Rem *** Marks the starting point of a continuous loop that will repeat itself when the program hits the loop command. Anything between these commands is repeated ***
Rem *** Boolean Logic, baby ***
If Downkey()=1 then Pitch Object Down 1, 1 Rem *** The First 1 refers to the Object's ID, the second 1 chooses the rate of Pitch ***
If Upkey()=1 then Pitch Object Up 1, 1 Rem *** The First 1 refers to the Object's ID, the second 1 chooses the rate of Pitch ***
If Leftkey()=1 then Turn Object Left 1, 1 Rem *** The First 1 refers to the Object's ID, the second 1 chooses the rate of Turn ***
If Rightkey()=1 then Turn Object Right 1, 1 Rem *** The First 1 refers to the Object's ID, the second 1 chooses the rate of Turn ***
Sync Rem *** Syncs the Loops per Second to be consistent over any system that can run the program ***
Loop Rem *** Sends us back up to the Do command, anything between Do and Loop will repeat until another command is called ***