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.

Dark GDK / DarkSDK Bugs

Author
Message
PeterG
20
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 12th May 2005 05:51
Hi

I'm very happy with DarkSDK, but there is
something with the mouse commands dbMouseMoveX(),
dbMouseMoveY(). Are they working ok?

Thanks
scooby bloke
20
Years of Service
User Offline
Joined: 4th Nov 2004
Location:
Posted: 13th May 2005 05:33
Not a biggy, but I've just noticed that the samples haven't been updated for the 1.1 update, and so they no longer compile (without a little work to change some of the function names).

For example, in the particle example...

dbPositionParticlesEmissions should be dbPositionParticleEmmissions and dbSetParticleEmissions should actually be dbSetParticleEmmissions
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th May 2005 07:52
Quote: "something with the mouse commands dbMouseMoveX(),
dbMouseMoveY()"

Yes, seem fine - in what way do you think they dont work ?

Visit http://homepages.nildram.co.uk/~nickk
Calm down dear! Its only The Unofficial DB Sci-Fi Con...
http://spaces.msn.com/members/BouncyBrick/
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 5th Jun 2005 03:52
Everytime I make a call to dbCreateBitmap, my entire scene turns black.

Can someone confirm this for me ?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 5th Jun 2005 04:47
do you use dbSetCurrentBitmap afterwards ?

Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 5th Jun 2005 05:16
no i dont. I will test and report back.
Erick G
Retired Moderator
20
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 6th Jun 2005 15:14
that works, thanks dude
Artus
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: France
Posted: 6th Jun 2005 18:41 Edited at: 6th Jun 2005 18:43
In sdk 1.0 AND sdk 1.1.1 :

dbGetTerrainXSize and dbGetTerrainZSize always return 0



Quote: " there is something with the mouse commands dbMouseMoveX(), dbMouseMoveY(). Are they working ok? "


Well I had not written about it because I could not be more specific than PeterG but I have also come across a problem with dbMouseMoveX() and dbMouseMoveY() when using SDK 1.0: in some conditions that I could not determine exactly, both functions started returning 0 during runtime while they were functioning correctly a moment before. This problem seems to have disappeared with SDK 1.1.1. PeterG, which version of the SDK are you using ?
Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 24th Jun 2005 15:36 Edited at: 24th Jun 2005 15:38
Haven't seen this one posted yet:

In the header, "DarkSDKText.h", dbStr() for a double is defined:

double dbStrDouble ( double dValue );

Instead of :

char* dbStr ( double dValue );

I'm using 1.1.1beta with VS2003
Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 24th Jun 2005 15:46
It might be that its too late for me to figure this oone out, but i'm getting a link error when I use dbUpper()

error LNK2001: unresolved external symbol "char * __cdecl dbUpper(char *)" (?dbUpper@@YAPADPAD@Z)

I got 1.1.1beta and VS2003. It might just be a sync problem with my lib files. I have not tryed rolling them back. I'll double check them tomorrow.
Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 24th Jun 2005 15:55
Ya know, a version number in the DarkSDK.h file would be helpful. I just noticed that my timestamps are the date that i unzipped the files, so I'm assuming I installed the the beta libs. I thought i did since i have the "extras" folder with the dobj stuff.
Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 24th Jun 2005 23:25
I'm still getting a dbUpper() link error. I refreshed my lib/include files to the 1.1.1beta this morning. I can comment out those lines and my game compiles and runs.

I might add that I'm also running june's DirectX sdk. if that helps.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Jun 2005 00:07
Its a known problem with the SDK - why its included anyway, I dont know...

Argon Knight
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Gastonia, NC, USA
Posted: 25th Jun 2005 01:04
Its making my straight conversion from Basic to C++ a little easier. but as soon as I'm done, I'm moving over to std.
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 1st Jul 2005 04:58
Reported it by mail but suppose it ought to go here as well. The dbSetTerrainHeightmap() func is missing from the lib file (thanks Bouncy). Using the 1.1.1 Beta.

T.
Troll Fiddler
19
Years of Service
User Offline
Joined: 19th Jan 2005
Location: Mayo, Ireland
Posted: 1st Jul 2005 21:54
Just for the bug tracking record, dbPositionParticleEmissions() is missing as well.

Beta 1.1.1
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 7th Jul 2005 06:52 Edited at: 7th Jul 2005 06:54
The .fx commands don´t seem to work. I was trying out cel shading and nothing came up...

Me want cel shading


¿Como estas you el dia de today?
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 20th Jul 2005 01:42 Edited at: 20th Jul 2005 01:58
I think i`ve found another of those bug things. Midi files don`t seem to play. I`ll put some source todether for you in a min. Meanwhile here`the offending file.

Edit. Sorry false alarm. I wrote code to prove it and it worked. I think I was just tired or something but I swear that when I changed over to a mp3 file it started working. I changed back to midi and it stopped. Honest!


¿Como estas you el dia de today?

Attachments

Login to view attachments
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 01:51
I'll try this later - I cant believe MIDI wont play...

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 04:47
This works fine :



Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 20th Jul 2005 06:01
Tis strange. I tried it again in my game and it didn`t work again. Yet it worked in my test code. It works with mp3 but not midi. All I do is change the last 3 letters(mid to mp3 I`ve also tried .midi but it changes nothing). Apart from that the files are called the same and are in the same place.


¿Como estas you el dia de today?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 06:29
Are you using LoopMusic anywhere ? Aside from that, lets see the code...

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 20th Jul 2005 06:41 Edited at: 20th Jul 2005 06:47
Erm yes. Here`s the source code. Enjoy sifting....Seriously is there a problem with the looping function? I don`t think it worked with play music either. I`ll just check.
Edit: Doesn``t work with play either. Thecode that plays it is atthe begining Character1() and the music is loaded at the begining of main.


¿Como estas you el dia de today?

Attachments

Login to view attachments
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 06:58
I notice your loading music/midi into 2/3, but playing from 1...

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 20th Jul 2005 07:04
mmm. Yes it needs a bit of cleaning up. The music file 1 is loaded later. Search for this line "void Character1()" and look just below to see the code that plays song number 2.


¿Como estas you el dia de today?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 16:01
I presume Animation does equal 0 ?

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 20th Jul 2005 19:26
Yes.Or the avi video wouldn`t run. At least I think so. I should be looking into static variables instead of using so many globals really.


¿Como estas you el dia de today?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2005 19:48
If Animation is = 0, then can you send me the complete project (including all AVI's, music etc etc)

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 21st Jul 2005 00:14 Edited at: 21st Jul 2005 00:34
Ok. Let me uplaod it to a server.

Edit: Ok here it is:
http://usuarios.arsystel.com/rowsellclan/MiR_Ware.rar


Gimme teh votez!!!!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Jul 2005 01:05 Edited at: 21st Jul 2005 02:48
Okay - I'll look at that soon as possible.

Yes, it does seem to not play...

Try :



Or failing that put the executable in the media folder - it worked fine with the executable there.

Vote For AtomZ - You know it makes senze
http://spaces.msn.com/members/BouncyBrick/
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 21st Jul 2005 03:46
Aha. That`s it. I swear it worked before with mp3s but it doesn`t now. That means it`s not a problem with midis. To fix it I put the song lines after the dbSetDir("media"); line and it works. Very strange that dbLoadMusic("media\character1\keith.mid",2); doesn`t work though. Maybe because it needs double back slashes?
Anyhow thanks for your help. I might pay attention to your sig now.


Gimme teh votez!!!!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Jul 2005 04:33
Yes - double backslashes are needed in C - otherwise it can cause problems...

Vote For AtomZ - You know it makes senze
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 21st Jul 2005 07:06
Ah. C is a very strange language.


Gimme teh votez!!!!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 21st Jul 2005 21:32
Indeed - at least its working now though

Vote For AtomZ - You know it makes senze
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nichkk.plus.com
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 5th Aug 2005 23:00
Any news on the problem with 3D Sounds not working properly while the sync rate is set? With the sync rate turned off it seems to work fine (if a bit too fast )
Keaz
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 6th Aug 2005 01:28
@Bouncy
I know you've worked with it and I'm thinking of taking the plunge. How well does the SDK "work" with .Net?

I know you've done a few demos with it is there a link to the outcome of those?

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 6th Aug 2005 11:55 Edited at: 6th Aug 2005 11:55
Quote: "I know you've done a few demos with it is there a link to the outcome of those?
"

They`re on his website. The link`s in his sig.


Gimme teh votez!!!!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 6th Aug 2005 12:35
Quote: "How well does the SDK "work" with .Net"

It doesn't...

I dont use .Net - its the work of the Devil, and should be ignored.

AtomZ - its got an A. Its got a Z. Now its just needs U
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 17th Aug 2005 23:37
dbCL$() returns a NULL pointer.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Charles
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: Phoenix, AZ USA
Posted: 20th Aug 2005 07:28
I found a few bugs in 1.1.1 beta:

1) dbMouseX() and dbMouseY() functions return incorrect values. In fact, they return the same values no matter where the mouse pointer is.
2) dbColorObject(1, RGB(255, 0, 0)) colors object 1 as Blue where dbColorObject(1, dbRgb(255, 0, 0)) colors the object Red. dbRgb() works just fine but why is RGB() not working correctly?
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Aug 2005 09:35 Edited at: 20th Aug 2005 09:37
Quote: "1) dbMouseX() and dbMouseY() functions return incorrect values. In fact, they return the same values no matter where the mouse pointer is."

Fine here :



Quote: "2) dbColorObject(1, RGB(255, 0, 0)) colors object 1 as Blue where dbColorObject(1, dbRgb(255, 0, 0)) colors the object Red. dbRgb() works just fine but why is RGB() not working correctly?"

Seems fine here too :
As RGB isn't defined in DarkSDK, I presume your using the WinAPI macro/function - which probably means that the red, green and blue colours are calculated the other way with that command.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 24th Aug 2005 13:40
Quote: "As RGB isn't defined in DarkSDK"


Uh, excuse my ignorance, but I understood that all DBPro commands were translated to DBSDK.

Mike Johnson posted:

Quote: "You get everything except the language elements like "if" and "do loop" as these are already provided by C++."


Here: http://forum.thegamecreators.com/?m=forum_view&t=43583&b=22

So RGB command should work also, shouldn't it? I use it extensively in my project and I'm about to translate it to DBSDK...
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 24th Aug 2005 13:51
The command is in but named as dbRgb.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 24th Aug 2005 14:07
RGB is a windows macro - dbRgb is defined in DarkSDK and dbRGB was its original name.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 24th Aug 2005 14:12
Sorry, now I realize that this was some kind of newbie question. My fault. Thanks a lot

Login to post a reply

Server time is: 2024-11-19 01:21:15
Your offset time is: 2024-11-19 01:21:15