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 / Advanced lighting + Matrix1Util_05.dll = Bug???

Author
Message
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 5th Apr 2012 18:04 Edited at: 5th Apr 2012 18:19
While testing EVOLVED's Advanced lighting Water & Terrain demo I believe I have found a
strange bug. To reproduce this bug add this function to the bottom of the Main file of the Water & Terrain demo.



By using the command "find free file()" Dbpro is including the "Matrix1Util_05.dll" in the executable.
It seems with the inclusion of the "Matrix1Util_05.dll" it is causing missing textures or a shader error.
If any one can also reproduce this bug please post. If Ian or Evolved could check it would be great.
I am going to continue to try to solve this dilemma because I don't want to stop using Matrix1's dlls they are
an absolute necessity in DBpro.
I am using DBpro 7.7rc7 on Windows 7 and EVOLVED's latest demo and Matrix1Utillitys.

Evolved's Latest demo
http://www.evolved-software.com/code/AdvancedLighting.zip

Matrix1s Dlls
https://forumfiles.thegamecreators.com/download/2287932


[img][/img]



[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 5th Apr 2012 18:23
Evolved uses a lot of find_free styled functions which interfered with my own projects in a similar manner in as much as the IDE found duplicate commands and wouldnt compile the code even though _ is used instead of white space. Needless to say I just renamed his functions, perhaps as thats your own IDE it is just not behaving in exactly the same way as indigo/synergy or original IDE in how it treats _ and white space with regards to failing compilation. Or maybe I just have this wrong?
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 5th Apr 2012 18:57 Edited at: 5th Apr 2012 19:08
James H

The code compiles, the problem is with the textures on the terrain.
The IDE is not the issue I have already eliminated that by testing others.
The Matrix1 command "find free file()" is never called and Evolved
does not call his "find_free_file() function. The real question is why would
a file number interfere with a image number? Are the file number arrays in DBpro
mixed up with the image number arrays?


[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Rais
22
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 5th Apr 2012 19:10
I can confirm that they dont like each other but it looks like its only Evolved's terrain system that doesnt like the Matrix commands as im useing the Sky, clouds & water in one of my projects with no problems.

As a note, I just tryed the Reserve Free Object command in the same Water & Terrain demo to see if that made any difference and it does... The compiled EXE doesnt even run!
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 5th Apr 2012 20:00
Rais,

I just tried the "reserve free object()" command and it compiles for me.
The "reserve free object()" command is in a different dll then the
"find free file()" command. It seems any command called from the
"Matrix1Util_05.dll" causes the same problem with the textures.
Since Advanced Lighting does not use any third party dlls, it would
suggest an incompatibility with "Matrix1Util_05.dll" and native DBpro
but I can not prove that

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 5th Apr 2012 22:21
sorry stab - synergy seems to compile the functions fine when I know Ive havent been able to in the past(could be different in older adv light demos I have), I misunderstood you

I just tried this as you suggested but I am using U7.5 because U7.7 breaks something in the adv lighting water reflection image(camera clip I think but could be position or angle calcs - havent checked) and thats what evolved said he uses for it on his site somewhere(U7.5), anyway I dont get the results your image shows everything looks normal- also using win7
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 6th Apr 2012 16:33 Edited at: 10th Apr 2012 22:23
James H,


Thanks for testing,

That is very interesting that DBpro version 7.5 does not have the problem.
It would suggest that something changed in version 7.7 rc7 that affects the use
of Matrix1's dlls. I am hoping that someone using version 7.7rc7 and the latest version of
Matrix1's dlls could test and see if they get the same results. Over the weekend I will
look at the DBPro source code to see if I can spot the problem.

EDIT:James H How are you getting the 7.5 version to build
an exe that wil run on windows7?

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 10th Apr 2012 22:20
I'm still hoping some other members of the DBpro Community could test
this bug to duplicate the results. Matrix1 utility dlls are widely used by the DBpro community as
well as shaders. There is the possibility that this bug will affect other projects by the DBpro community.
The current conclusion is that any third party dll could cause this bug, thus we would need to solve this together.
I have posted on Ian's forum and I'm waiting for his insight as well.


[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 10th Apr 2012 22:35
Sorry didnt see your edit, Im not using service pack 1 is all I can think of, I was previously when I had 7.7 to test it, but even without sp1/u7.7 I still get occasional failed to build, cant add pck file compilation issues with synergy so I use Indigo instead as that hasnt thrown those errors back at me...yet
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Apr 2012 00:00
Here I am

I can see that things aren't playing nice together, so I'll try and find out why.

Stab in the Dark software
Valued Member
23
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 20th Apr 2012 16:37
Ian,

Thanks for taking a look. I know your busy with DBpro bug fixes.
This is just a guess, I am assuming that your dll is maybe walking on a memory address used by the DBpro
image numbers. If my son and I can assist in solving this bug let us know. We have some experience in
making a dll for DBpro.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.

Login to post a reply

Server time is: 2026-06-09 17:47:12
Your offset time is: 2026-06-09 17:47:12