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 Professional Discussion / Changing screen modes

Author
Message
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Apr 2003 13:19 Edited at: 11th Apr 2003 13:27
I'll be implementing a screen mode changing routine later today for the title sequence of my game.

Now, does DBPro automatically delete and re-load all graphics data (3D objects, 2D etc) after a mode change , or does it have to be done manually (if at all - would save a lot of time if it doesn't need to be done) ?

On another note, has any had trouble with DELETE MEMORY crashing the program, in a function, after being called twice (after MAKE MEMORY of course) - I need to some tests later with this, so I'm not sure yet.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 11th Apr 2003 16:10
Changing screen mode wipes ALL my loaded textures, models and sprites, plus randomly clears preset variables too, which is very annoying. Infact it seems to flush all memory. Also if you have various things loaded, like textured Matrtices, ghosted or animated objects, it will often exit the program completely :-s Unfortunately the only way I've found round this is using a for next loop to delete all objects, sounds, matrices, textures and sprites, saving their positions and any important variables to an external text file (clipboard is also cleared on both my systems!), then change screen mode, then re-load the whole whack.

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Apr 2003 17:44 Edited at: 11th Apr 2003 17:52
Yes, I've got a loading/unloading/reloading system already up and running (which I did whilst waiting for P3 - its that old). Its sounds like its just a matter of calling the relevant functions before changing modes (which is easy), and then repositioning them (which'll be fun).

Mind you, if it resets random variables, I might just leave that 'til later.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 11th Apr 2003 18:07
On some of my machines all variables are wiped, some its random, some it doesn't at all, its kinda weird. But all image, sound and models always get lost

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Apr 2003 18:16
Hope you've told 'em out it!

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 12th Apr 2003 03:35
happened in DB Standard/Enhanced too... was annoying because if you were initilising a new window i'd understand flushing the Video Ram, but you're just editing the veiw size of what is already there.

can be annoying but just setup a reload routine and you should be fine - i'm wondering cause i've not tried but can you make labels global? because that could definately help just as a stopgap measure

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 12th Apr 2003 12:26
Labels seem global... I READing data from functions, now I've decided DATA is not the work of the devil.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 12th Apr 2003 22:16
lmao ... yeah but its still close to
maybe if i use the restore command, because i remember in DarkBasic Standard i used to have a multitude of problems trying to jump to labels and gosubs inside functions.

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 13th Apr 2003 01:20
Certainly worth RESTOREing to a label...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 12:01:07
Your offset time is: 2026-07-11 12:01:07