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 / !!! Solution to making DB v5 run your creations !!!

Author
Message
Leroy Frederick
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: London, England
Posted: 27th Aug 2003 16:47
Hello everyone, how y'all doing? Anyway, straight to business!

After a prayer (honestly!), I finally managed to make DB V5.0 run my creations (THANK GOD! )

This should work for everyone that has at least managed to get the demo's working (unless you have heavily edited them!)

-First off, make sure u have DX 9.0b (Check DirectX Diagnostics: DXDiag.exe) look @ other posts on DB v5.0 for other ideas if neccesary.
-Backup all your creations/projects/work etc (this is something u should always do!)
-Make sure you are updating/have updated DB to V5.0 from a fresh install or on Ver 4.1 (not beta's)
-Now here comes the science bit, what i've found is that DB V5.0 no longer sees `remend as a closed remstart, which means that:

remstart
print "Hello"
`remend

is not seen as a valid closed remstart/remend! This is totally fine in earlier version of DB, but not in v5, You have to remove all of these so they are like this (below) otherwise it reports errors, or simply runs nothing!:

remstart
print "Hello"
remend

OR

remstart
print "Hello"
` remend

if you want it left open like this so you can quickly open/close them like i do that should be ok:

`remstart
print "Hello"
`remend

but if you want to be safe change it to this:

`remstart
print "Hello"
rem remend

OR

`remstart
print "Hello"
` remend

you can do a search/replace
search "`remend" | replace "` remend"
but be carefull you don't make mistakes. Doing a Find/Find Again(F3) on "`remend" string & changing as necessary will be fine also.

This must be done everywhere including subs, functions, include files etc...

-REMEMBER to Backup all your creations/projects/work prior to this, cause if it don't work, and your stuff end's up not working along wit' it, you'll only have one person to blame & it ain’t me!!!

I hope this works/helps everyone that needs to get their creations running again, if it doe's, get testing, report any bugs and let's unleash some sexy (almost bug free) DB content out there!!!

BTW

So far though, DB still gets very (VERY) slow with multiple colour/size text/print commands! Anyone have any ideas?
At least the Music Playing() command works, still lots of testing to do though!

Defanual
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 27th Aug 2003 17:12
Quote: "So far though, DB still gets very (VERY) slow with multiple colour/size text/print commands"

Its mainly to due with font handling unfortunately... The calculations to scale/size fonts looks pretty awful from the MSDN details, and thus is time consuming.

Use sprites and bitmap fonts instead.


Leroy Frederick
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: London, England
Posted: 27th Aug 2003 17:19
TheCodingArea - Thanks for that !

Login to post a reply

Server time is: 2026-07-23 00:17:26
Your offset time is: 2026-07-23 00:17:26