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.

Newcomers DBPro Corner / Loading Please wait Problem

Author
Message
Jonk
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: East of Java
Posted: 6th Dec 2011 12:22
Have been writing a little Christmas Program for my family and it all seems to work a part from a few lines where a loading notification text is supposed to be printed on the screen. Can't seem to get the message to appear can anyone help.

I have included the source code and media.



"There are no perfect ideas only perfect intentions"

Attachments

Login to view attachments
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 6th Dec 2011 13:08
It's because it's remmed out lol

But seriously, change this bit...


to this


You need 2 syncs because of the way that DBP works with the back buffer.

Hope that helps

zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 6th Dec 2011 13:11 Edited at: 6th Dec 2011 14:28
Edit - Looks like =PRoF= posted right as I was posting. I'll still look it over though...

....................................................


I am going to work on this now. I'll edit this post within the hour (Whether or not I am able to find the problem and/or fix).

Note!!! Project Requires D3DFunc dll by Cloggy - http://www.dbdepot.co.uk/d3dfunc.html

|Status| : 12/06/11 8:26am EST

Copied Source, Created Project, Downloading Media
Installed D3DFunc.dll
No music!!! - REM out music lines
Made changes the =PRoF= suggester

*Error - Tracing through your code right now. Reason: After leaving it run for a while I get an error that Object 503 does not exist. I can see that your logic in the Main Loop is "always" checking the position values of objects that may not exist. Working on pinning it down and recommending change to source.

~ZENassem
Jonk
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: East of Java
Posted: 6th Dec 2011 15:57
Lol can't believe that It was something as simple as needing another sync command.

Thanks =PRoF= and zenassem for taking to time out to help it's most apreciated.

zenassem It would be great if you could solve the problem with the object not found. I know it is something to do with restoring the data when it's read the last line but cant seem to figure out where the restore command should go in my program.

"There are no perfect ideas only perfect intentions"
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 6th Dec 2011 21:29
Urm... whats the use of d3dfunc dll... can someone explain... I cant go to that website right now... for one I am on phone for two I dont like going to new sites so easily as keeping track of them is a hassle... ahh what the h I will have a look but can someone explain?... There are a zillion websites... I think my wiki can be used to store them all hehe...

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 6th Dec 2011 21:35 Edited at: 6th Dec 2011 21:43
@MrValentine:
Cloggy's D3D plugin provides a much much (much) faster solution to displaying text on screen than DBP's native text commands.

It also can create 3D text objects, as Jonk has done in the above snippet.

I used to use it for BMFC but sadly I found it to have a bug when used to draw text to a bitmap other than 0.

WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 7th Dec 2011 20:30 Edited at: 7th Dec 2011 20:49
Fixed, now get them E-Card's out.



Edit: If you prefer to have the text continue scrolling.



Happy Holidays.
Jonk
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: East of Java
Posted: 8th Dec 2011 03:05
Thanks WickedX that code works like a charm I've sent out my e-card to all concerned now.

"There are no perfect ideas only perfect intentions"

Login to post a reply

Server time is: 2024-11-23 23:49:30
Your offset time is: 2024-11-23 23:49:30