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 / can someone tell me how to compile the advanced lighting demos

Author
Message
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 11th Apr 2016 17:30 Edited at: 12th Apr 2016 13:32
[Edit2: Problem solved - it was caused by the revised "md5.dll" used by Rudolpho's DX11 plugin ]

I've just downloaded the latest version of Evolved's Advanced Lighting demos and can't get anything to compile. For some reason the editor/compiler can't find the files specified in the #include commands such as:



What's wrong? I've compiled these without issue before.

I'm using DBPro U77RC7 and Synergy 23 June 2010.

[Edit: I get the same problem with the latest W10 version of the editor so it doesn't seem to be that. ]


Powered by Free Banners
Cescano
5
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 12th Apr 2016 05:30
Have you tried with the official editor?
By the way I remember I had similar problems and it was an include file called Terrain.dba who was conflicting with the main Terrain.dba, I have renamed the one in the include folder and everything worked fine.
James H
12
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 12th Apr 2016 10:04
Have you tried remming out the #includes then adding the files through though the editor(I think at least one of the source files has some more #includes as well so you will have to alter them as well). This has worked for me in the past
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 12:38
Quote: "Have you tried remming out the #includes then adding the files through though the editor"


I tried that but didn't try this:

Quote: " at least one of the source files has some more #includes as well so you will have to alter them as well"


I'll have another go. Weird thing is that I've never encountered this before (or I've forgotten about it ). I have several exe files from earlier compiles around 2013 - which would have used the same editor and DBPro version .


Powered by Free Banners
Kuper
11
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 12th Apr 2016 12:44
Maybe you have wrong Folders names? Never have such problems
Anyway:
1)Remove all #include in all files
2)then add them to the project by editor
or you can edit main file .dbpro in any text editor
3) it is important to declare files in specific ways.( Many functions use globals and functions which must be declared first)
4) Also Evolved once said that #include works faster then including file with editor.I ve tested this and get the same compile speed
in both ways.So I use including file by editor not #include

This is correct .dbpro file:

; **** source file information ****
main=Terrain.dba
LineMain=9
include1=Include/Advanced Lighting.dba
LineInclude1=0
include2=Include/Advanced Lighting/AL_Effect.dba
LineInclude2=0
include3=Include/Advanced Lighting/AL_Object.dba
LineInclude3=0
include4=Include/Advanced Lighting/AL_Lighting.dba
LineInclude4=0
include5=Include/Advanced Lighting/AL_Spot.dba
LineInclude5=0
include6=Include/Advanced Lighting/AL_Point.dba
LineInclude6=0
include7=Include/Advanced Lighting/AL_Directional.dba
LineInclude7=0
include8=Include/Advanced Lighting/AL_PostFilter.dba
LineInclude8=0
include9=Include/Advanced Lighting/AL_Sky.dba
LineInclude9=0
include10=Include/Terrain.dba
LineInclude10=0
include11=Include/Water.dba
LineInclude11=0
include12=Include/Materials.dba
LineInclude12=0
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 13:14
Quote: "I'll have another go."


Same problem. See typical screenshot attached. That demo uses 12 include files in total and the editor has found them all. Something else is preventing the files from being understood by the compiler. Any ideas? [I have one - will test it and report back. ]


Powered by Free Banners

Attachments

Login to view attachments
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 13:22
Kuper

Thanks for checking but something else is causing this. Here's the DBPro file. Perhaps you can spot something, I can't.



Powered by Free Banners
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 13:30
Quote: " Something else is preventing the files from being understood by the compiler. Any ideas? [I have one - will test it and report back. ]"


I was right!

I've been testing Rudolpho's DX11 Plugin and that uses a different "md5.dll" file in the Compiler folder. The present problem goes away when I reinstate the original dll that comes with DBPro.

Thanks for all the help everyone - at least I know how to use include files now.


Powered by Free Banners
Kuper
11
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 12th Apr 2016 13:30
try move this

include10=Include\Advanced Lighting\AL_Spot.dba
LineInclude10=0
include11=Include\Advanced Lighting\AL_Point.dba
LineInclude11=0
include12=Include\Advanced Lighting\AL_Directional.dba
LineInclude12=0

after

include3=Include\Advanced Lighting\AL_Lighting.dba
LineInclude3=30
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 13:42
Kuper We posted at the same time - problem solved see my previous post.


Powered by Free Banners
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 12th Apr 2016 17:27
Hm, that is curious; I have no problems compiling the Advanced Lighting examples using my modified MD5.dll.
In fact, it will traverse your main project folder and do a depth-first search for any included files in an attempt to find files in sub-folders that the DBPro compiler itself won't pick up on. There were some issues with this a while back though; is it possible that you're using an older version of MD5.dll? The latest one should've been built on 2015-11-24.

If that isn't it, how does your folder hierarchy look for your project? Is the Includes folder in the same folder as your project (.dbpro) file? May the file that has the #include directive be in another sub-folder?
If possible, maybe you could put your project in an archive and send it to me?
Green Gandalf
VIP Member
14
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 12th Apr 2016 20:23
Quote: "The latest one should've been built on 2015-11-24."


That's the one I'm using.

Quote: "If that isn't it, how does your folder hierarchy look for your project? Is the Includes folder in the same folder as your project (.dbpro) file? May the file that has the #include directive be in another sub-folder?"


The folder hierarchy is exactly as it is when I unzip Evolved's latest version. I have the same problems with his earlier versions which I still have. I tried two ways: one using the original code as downloaded, the other using the includes via the Solution panel. Both fail with the same error message.

Quote: "If possible, maybe you could put your project in an archive and send it to me?"


Will do - both versions.


Powered by Free Banners

Login to post a reply

Server time is: 2019-09-19 10:28:37
Your offset time is: 2019-09-19 10:28:37