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 / DBPro Upgrade 7.1 Beta Test

Author
Message
Pixel Paint
18
Years of Service
User Offline
Joined: 15th Sep 2007
Location:
Posted: 25th Oct 2008 16:54
I'm pretty sure SET IMAGE COLORKEY is broken. Version 7.1 Beta 4.
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 25th Oct 2008 17:00 Edited at: 25th Oct 2008 17:04
Phjon - the helpfile bug only exists with the standard IDE with regards to placing the cursor on the command and hitting F1. Additionally #include isn`t even listed in the core commands menu, yet when I hit F1 in the same manner as I have just mentioned, whilst using Synergy, the helpfile pops up succesfully. The return link is for the core commands menu though. I didn`t have an issue selecting #include from the core commands menu using any of the free IDE`s.

Edit - You can use the set object mask command instead of the exclude object on, with a value of %0 for now as it works as good as the exclude command.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Oct 2008 17:03 Edited at: 25th Oct 2008 17:04
If anyone needs my array plug-in for 7.1b4, there's a 7.1b4-specific version here - it's beta too ATM though.

I get the same results that everyone else is getting. Here's a very simplified version of the bug.

Press space and the object should reappear:


Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 25th Oct 2008 17:28 Edited at: 25th Oct 2008 17:41
James H,

For me, in the Standard IDE, the #include and #constant commands do show up in the core commands list, but they do not link to anything. I find that when you click on these commands and press F1, an error message appears.

However, I've just tried it in Codesurge, and they are both listed and work when you click on them and press F1. So it's probably an IDE related bug that I'll just have to deal with myself.

The "Set Object Mask" command seems to be a good substitute for now, though the original bug is of course still very much present. I'll have to run some more tests with this command elsewhere.

IanM,

I confirm the bug in your simplified code.

Pixel Paint,

Can you describe the problem you are having with the "Set Image Colorkey" command?
Weave
AGK Bronze Backer
19
Years of Service
User Offline
Joined: 26th Sep 2006
Location:
Posted: 25th Oct 2008 18:40
Photo for last message is here

pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 25th Oct 2008 21:12
Help file
BREAK command
Example Code does not work.

he he he
Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 25th Oct 2008 21:19 Edited at: 27th Oct 2008 16:11
I've managed to pin down the heisenslug. It would seem that it was present in version 6.8, but to a much lesser extent, as you can see in the attached graph. My problem numbering will carry on from my first bug post.

Problem 3: DBPro's timers (the standard "Timer" command, the "Get Time$" command and "PerfTimer") fail to return correct values for the duration of the loading of many objects.

Problem Type: Heisenslug

Details: Compile and run the code below. You will need to use a stopwatch to time how long it takes to load a large number of objects because, as you should see, DBPro's timers do not provide an accurate result (hence why this is a heisenslug and not an ordinary slug). The time should be taken from when the screen turns black at the start to when the cubes appear on the screen.



Alter the "Objects_Total" variable to obtain results for different numbers of cubes. You should find that as this number is increased, the discrepancy between the time taken as stated by DBPro's timers, and your stopwatches should increase exponentially. You should test this in versions 6.8 and 7.1 beta 4 and you should find the discrepancies are larger overall in 7.1 beta 4 than in 6.8. A graph is attached with the data that I collected:

[img]Heisenslug_graph.jpg[/img]

pcRaider,

I confirm that the code in the "Break" command helpfile section doesn't work; in the first line, the "TO" is written with a zero, instead of an "O".
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Oct 2008 22:23
Quote: "Problem 3: DBPro's timers (the standard "Timer" command, the "Get Time$" command and "PerfTimer") fail to return correct values for the duration of the loading of many objects."


We discussed this at the convention. This may be a hardware issue - the computer's own timer, on which DBP's is based, may not be running as expected. Apparently it can change speed, thus rendering anything that is based on it completely useless.

I guess a good test might be to run another timer in a second application, and see if it suffers from the same problem at the same time. This might prove that your object loading routine is putting strain on the CPU, which is in turn altering its timing.

Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 25th Oct 2008 23:42 Edited at: 25th Oct 2008 23:43
BatVink,

I tried out the test you suggested. What I did was run a program in a 640x480 window which consisted of the code below, along with the heisenslug program in another 640x480 window.



What I found was when I just had the editor open and the external timer running, the elapsed time showed was around about 547000 ticks. When the heisenslug program was active and loading the cubes, the elapsed time was up at about 670000 ticks. So it must be that the CPU's processor timer is being affected by the program.

However, the values above were the same whether the program was loading in 30000 cubes, or 70000 cubes. In addition, the same values came up when the program was running under DBPro version 6.8. This is strange as I would have expected there to be less of a difference, as my graph shows that version 6.8 is less affected by the heisenslug.

Nonetheless, as my graph shows, the cubes take longer to load in DBPro 7.1b4 than in 6.8, and it gets worse the more you load. In one of my projects, I load in a lot of objects. I use instancing for the most part, but my project is still affected by the heisenslug. Indeed, this is where I discovered it to start with. In version 6.8, my project takes about 18 seconds to load (according to my stopwatch), whereas in version 7.1b4, it takes about 47 seconds to load.
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 26th Oct 2008 06:30
@Pixel Paint
@Weave
Do the post of you to a "Bug Reports" board.

http://forum.thegamecreators.com/?m=forum_read&i=15
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 26th Oct 2008 14:40 Edited at: 30th Oct 2008 16:22
Quote: "

Updater
* Added additional dialog to ask for destination folder (multiple DBP installations)

"

This does not work.
I am impossible of setup.
-
As for all non-English version (a version to localize), "INSTALL-PATH" does not exist.
And this displays an error.
-
edit: [Fixed]
edit2: not fixed

Nickydude
Retired Moderator
19
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 26th Oct 2008 17:06
That was the error I was getting pcRaider when I tried updating. In the end I uninstalled DBPro completely, reinstalled original and then updated and it worked.

BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th Oct 2008 19:57
Phjon, I agree that the program is affecting the timer. It was a concern to me when I heard about this "phenomena". I think it's not the program directly, but DirectX and the way it is stressing the system.

So yes, I agree that DBP has in some way changed to exagerate this problem, and maybe the increase in loading times needs to be addressed. But this is also a much bigger issue, and outside the control of DBP.

I'd love to know a workaround for the unreliable timing that we see in this example. If we can't rely on the CPU timer (which is what the majority of programs rely on as far as I can tell), how do we control the way our programs perform?

Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 26th Oct 2008 20:45 Edited at: 26th Oct 2008 23:24
BatVink,

I've just discovered that if you put a "Sync" just after the line "Next X" in my code, all the timing calculations afterwards in the "Debug" section seem to produce correct answers. I've only done two quick tests in V7.1b4 with 30000 and 50000 objects, so I don't know how true it holds for other values, or for version 6.8 as yet.
Guido Italy
20
Years of Service
User Offline
Joined: 25th Dec 2005
Location:
Posted: 26th Oct 2008 21:00
7.1b4 error for DKSHOP plugin


DK PICK MATRIX( Camera Number, X, Y, Matrix Start, Matrix End )

Error !!!

the compiler break and exit ....

sorry for my english ...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Oct 2008 23:04
That plug-in is not Lee's problem - it probably broke when the 6.9 release came out. You'll need to contact Dmitry to fix it.

Tv Xxx
18
Years of Service
User Offline
Joined: 23rd Sep 2007
Location: Behind You!
Posted: 27th Oct 2008 00:30
Something I'd Like To Suggest Is Text Characters, There are allot of characters that arn't covered by Dbpro, and it's annoying when you want a special character and it apears as a "?" or as a random square lol.

Just A Suggestion,

Sorry For My Speeling, just got back from't pub.

Yours
Tv.

pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 27th Oct 2008 05:25 Edited at: 30th Oct 2008 16:27
@Nickydude
Thank you.
It works now.

[edit]
I tested it again.
not work!
An error is returned likewise.
It seems that it is caused by the fact that there is not registry("INSTALL-PATH" ).
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 27th Oct 2008 09:01 Edited at: 27th Oct 2008 09:02
Help file
KEYSTATE command
I want you to add this to Example Code.

Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 27th Oct 2008 16:20 Edited at: 27th Oct 2008 16:25
I've been having some trouble trying to get my graph in one of my previous posts to show up properly in my message itself, rather than just as an attachment. Unfortunately, I was forced into having to post something here to clear a jam in my posting box.

I'll see if I can run some more tests using the sync command to test whether it seems to be useful across the board in correcting DBPro's timers as a temporary workaround, rather than just in one place.
trogdor
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location: Portsmouth, VA, USA
Posted: 27th Oct 2008 20:14
When I F5 my project in 7.1b04 I get "List index out of bounds(1)".
The editor opens a blank .dbpro window.

I hit OK, the message goes away, and my program runs fine.

When I quit my program, and am sent back to the standard IDE. I close the blank project window, and my code .dba shows back up.

If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.
Phjon
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location:
Posted: 27th Oct 2008 20:30
trogdor,

Would it be possible for you to extract from your project a small snippet of code that causes this error?
Which versions of DBPro have you tested your project in besides 7.1b4?
Cloggy
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 28th Oct 2008 01:27 Edited at: 28th Oct 2008 01:27
May not be the right place, but how difficult would it be to add a pointer to the internal object list to globstruct?

It would be extremely handy for me to be able to traverse all the created objects in order to add a pick screen function for my orthographic projection camera.

I'm sure other plugin developers would find this useful as well

pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 28th Oct 2008 02:44 Edited at: 1st Nov 2008 02:19
A command does not work as an instruction manual says.
SET OBJECT TEXTURE Object Number, Texturing Mode, Mipmap Flag

"Texturing Mode"

[edit]
Cancellation.
I'm sorry it is my mistake.
CSGames94
18
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 28th Oct 2008 03:42
The commands =SET OBJECT DIFFUSE, SET OBJECT AMBIENCE, SET OBJECT SPECULAR, SET OBJECT EMISSIVE, SET OBJECT SPECULAR POWER= Just never seem to work properly, nor do the light commands. I don't if I am using them right or not, because the help in Dark Basic Pro doesn't explain it very well.
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th Oct 2008 19:40
@Master13
Those commands map directly to directx commands, so it's unlikely their functionality is going to change

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 29th Oct 2008 06:05
In help file.
Can you add "GAMEFX COMMANDS" to "INDEX"?
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 29th Oct 2008 11:30
Mistrel
Retired Moderator
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 29th Oct 2008 17:38
Quote: "May not be the right place, but how difficult would it be to add a pointer to the internal object list to globstruct?

It would be extremely handy for me to be able to traverse all the created objects in order to add a pick screen function for my orthographic projection camera."


+1

sharkbate 24
18
Years of Service
User Offline
Joined: 10th Jun 2008
Location:
Posted: 29th Oct 2008 18:58
This is excellent, especially the updated help files. Although, would be good to see a better script example page, you should add some colours to it, just looks too plain in my opinion, but everything else is great .

Also, as a DBPro registered user, does anyone know if I'm entitled to get free updates?

Thanks,
Keep up the great work.
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 29th Oct 2008 20:25 Edited at: 29th Oct 2008 22:39
[ignore]

Mistrel
Retired Moderator
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 29th Oct 2008 22:27 Edited at: 30th Oct 2008 20:13
(Removed -- this wasn't a bug!)

pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 30th Oct 2008 09:12
Was the issue of scale in Sprite repaired?
http://forum.thegamecreators.com/?m=forum_view&t=86343&b=15
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Oct 2008 15:17
Quote: "Also, as a DBPro registered user, does anyone know if I'm entitled to get free updates?"


Yes, all updates are free. Go to the DB Pro product page and take the option from the menu.

sharkbate 24
18
Years of Service
User Offline
Joined: 10th Jun 2008
Location:
Posted: 30th Oct 2008 15:48
Quote: "Yes, all updates are free. Go to the DB Pro product page and take the option from the menu."
.

Great, thanks. But yeah, especially the new help file is a very big improvement .

Thanks, keep up the good work.
Mistrel
Retired Moderator
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 30th Oct 2008 23:41
Please fix CHANGE CURSOR so we can still get our default cursor and hour glass after adding our own custom cursors.

Or better yet just remove it completely and let us use the SetCursor() API from User32.dll. DBP is doing something funny that is preventing this API for working.

Mistrel
Retired Moderator
20
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 31st Oct 2008 00:57 Edited at: 31st Oct 2008 00:57
Animations no longer play when FastSync is used. See animation1-example.dba.dbpro and animation2-example.dba.dbpro in the Dark Basic ProfessionalHelpexamplesanimation folder for an example. Replace Sync with FastSync.

It worked fine in 6.7.

Ian G
18
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 31st Oct 2008 02:25 Edited at: 31st Oct 2008 02:28
Mistrel,
Animations are no longer displayed with FastSync, Lee mentioned that in the u7.0 thread.

[Edit]
Quote: "FASTSYNC is not designed for updating animations, you must use SYNC once per cycle ideally for this"
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 31st Oct 2008 02:48
U71b4 : "make object plane" keyword does not become a highlight.
chunks chunks
19
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 1st Nov 2008 22:25
the command name has been fixed is now

make object plain

you`ll find it will highlight and work then .


chunks

nvidia geforce 8600gt + amd athlon 64
windows xp pro.
chunks chunks
19
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 1st Nov 2008 23:16
oops me bad

I always do that, answer without thinking lol

nvidia geforce 8600gt + amd athlon 64
windows xp pro.
mr Handy
18
Years of Service
User Offline
Joined: 7th Sep 2007
Location: out of TGC
Posted: 2nd Nov 2008 17:46
Hello everybody!
Found this:
http://www.youtube.com/watch?v=z_kgpYygQgE
In the mid of video, one interesting command has been shown:
SET IMAGE ARRAY obj,img1,img2,img3..etc
I didnt find this in U7.0

So, can you tell me - its some plugin cmd or
this will be in future ups of DB?

To mr.Bamber can you make such thing in next update???
It will be incredibly useful when using lots of torches and change texture on them for animation of flame. Texturing them manually is perfomance hit
PS yes, I know, I can make wide texture with all frames and scroll it, but if i have 30 512x512? So...

10x

A door is a door is a door. Even a swinging one. =0
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 2nd Nov 2008 20:24
Especially seeing as DirectX 9 doesn't support texture arrays

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 3rd Nov 2008 03:33
Help file
An OFFSET LIMB command
OFFSET LIMB Object Number, Limb Number, X, Y, Z, Bounds Flag
How do you use "Bounds Flag "?
Can you show "Example Code "?
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 3rd Nov 2008 09:00
Help file
SET OBJECT TO OBJECT ORIENTATION
SET OBJECT TO OBJECT ORIENTATION Object Number, Second Object, Flag
Flag does not work.
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 3rd Nov 2008 10:11 Edited at: 3rd Nov 2008 10:12
Help file
SET LIGHT MAPPING ON
"Example Code "does not work.
-
SET LIGHT MAPPING ON Object Number, Image Number, Reverse Stage Mode
How do you use "Reverse Stage Mode"?
Don Malone
23
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 3rd Nov 2008 12:56
I do so wish they would take the time to define the available modes and flags that can be used with commands. It would make the product look so much more professional.

I love the product, and most certainly this forum here, but this has been one of my biggest annoyances with the programs. It would help people who are just coming into the product make much better progress than having to search here for the info; if it is available at all; or have to waste time experimenting to find out what they think it is doing, but if you don't know what to expect; how do you know you are getting the right results?

Making nothing for the forth straight year; or is it five years now?

game gold
17
Years of Service
User Offline
Joined: 4th Nov 2008
Location:
Posted: 4th Nov 2008 08:55
,hehe, come to look at it.

I buy hero money from this company. Every time, I buy manybuy hero gold.
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 6th Nov 2008 11:27
Help file
MAKE MESH FROM OBJECT Mesh Number, Object Number, Ignore Mode

How do you use "Ignore Mode"?
BatVink
Moderator
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 6th Nov 2008 18:20
I think PC Raider needs a medal for his services to making DB Pro bug-free

Keep up the good work!

Login to post a reply

Server time is: 2026-06-11 14:19:11
Your offset time is: 2026-06-11 14:19:11