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 / File does not exist at line...

Author
Message
Crypton33
15
Years of Service
User Offline
Joined: 10th Jul 2009
Location:
Posted: 10th Jul 2009 21:51

xxx.dba:


I can't compile it, because i get error: "File does not exist at line 28.".
What to do?

PS. Srry for my english
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 10th Jul 2009 22:03
1) Ensure you are compiling your exe into the correct folder, it's no good compiling your game into the windows temp folder, if the shader file is else where.

2) It helps to set a specific path. You can do this with the following code.

Path$ = Get DIR$()
load effect Path$ + “\” + “PixelLighting.fx”,1,0

This ensures you get the current location of your working folder. If you ensure the file structure is currect for exmaple

project
!--- media
!--- shader

with the exe running from the project folder, then you should have no issues.

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 11th Jul 2009 14:45 Edited at: 11th Jul 2009 14:46
The #include command has been deprecated in DBPro, instead use the editor to manage your files.



Use these buttons (1) to add new source files, the files in your project will be listed (2).

Synergy Editor - Available for free HERE!

Attachments

Login to view attachments
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 11th Jul 2009 15:52
@JohnY: Are you sure?
It works just fine for me (using u7.3, not 7.4 though).

John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 11th Jul 2009 16:04
What I mean is that while it is still a valid command, using the IDE to manage your project is the prefered method.

Synergy Editor - Available for free HERE!

Login to post a reply

Server time is: 2024-11-24 04:03:26
Your offset time is: 2024-11-24 04:03:26