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 / Prevent 640x480 res at start?

Author
Message
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 21st Dec 2003 22:12
how can I prevent darkbasic from setting the screen to 640x480 when my programs are starting? Im testing my programs at some friends, it works great, but one of my friends has some software that will crash the computer when the resolution is set to 640x480, when I use set display mode 1024,768,32 at start, darkbasic still switches to 640x480 and then to 1024,768

I really need to prevent this to make my software compatible on more computers

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 21st Dec 2003 23:07
mmm vaag probleem, k zou ut niet weten sorry. ( leuk mail adres trouwens)

if I = 1 then I = 1 else I = 0
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Dec 2003 08:19
every computer should support 640x480. If it doesn't, i'd say he's got a really crappy computer
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 22nd Dec 2003 10:50
His computer supports 640x480, but he installed some software that MUST be run in 1024x768 or higher


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Dec 2003 23:39
I've never heard of such a thing.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 23rd Dec 2003 02:59
My monitor supports 640*480, but only in fullscreen apps. Windows itself won't let it use 640*480. The lowest res I could use according to the display properties is 800*600.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 23rd Dec 2003 09:23
You can make the game window'd ( Assuming you have the enhancement pack ) and simply make a text file called setup.ini that says:

that needs to be in the same directory as the .exe file for the game...
Then, at the start of your game, put in:


That should work fine for you... Other than that, there really isn't a solution besides telling your mate to get rid of that cr*ppy software that restricts his res...

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Jan Eise
21
Years of Service
User Offline
Joined: 18th Dec 2003
Location:
Posted: 23rd Dec 2003 12:06
OOh guys this is sow damn easy...

In the beginning of you program use "set display mode" command. If want to change the resolution to 1024,768 do it like this:

set display mode 1024,768,32

1024 is the screen width;
768 is the screen height;
32 is the color depth.

Hope I helped you with this
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 23rd Dec 2003 12:33
Emperor Baal put in his/her very first post:
Quote: "when I use set display mode 1024,768,32 at start, darkbasic still switches to 640x480 and then to 1024,768"


Which is 100% correct, that's why i suggested my method, because it opens the app in a window, by-passing the default full-screen res of 640x480 and then resizing the res to that of 1024x768 then removing the window, making it a full-screen app that has a res of 1024x768.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-22 00:30:46
Your offset time is: 2025-05-22 00:30:46