Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / display mode and screen resolution problems please help

Author
Message
ghost5555
19
Years of Service
User Offline
Joined: 7th May 2007
Location: *points to map* there
Posted: 23rd Apr 2008 22:16
sorry for this but i just installed darkbasic today and i have already managed to break it. i made the program in the tutorial, the one where you write a word and it randomly flies around the screen, and now that i have "built" that program neither it nor darkbasic will run because "failed to set dislpay mode. could not set display mode of 640x420x16" i know this hs something to do with my screen resolution not being able to be set below this amount, but i could run darkbasic and the program before i built it. should i just reinstall darkbasic and try again at some other time? the program has the same message but it also says "error code 164"

:grim:
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Apr 2008 23:27
640x420x16 might not be able to be handled by your graphics card. There is probably a line in the program that reads

SET DISPLAY MODE 640,420,16

Try changing it to

SET DISPLAY MODE 640,480,16

as I believe this is the default for DB.

Enjoy your day.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 25th Apr 2008 04:07
the most common resolutions are
640 x 480
800 x 600
1024 x 768
you can PERFORM CHECKLIST for your possible display modes, but all monitors can display the above 3.

In case you were wondering, the 3rd parameter is the bit depth (how long the numbers that describe colours can be i.e. how many colours can be displayed). You can choose between 8, 16 and 32-bit .

It is far better to complete a 10 line program than to start a 10,000 line program.

Login to post a reply

Server time is: 2026-07-07 06:43:15
Your offset time is: 2026-07-07 06:43:15