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 / Ok this will sound Noobish but i cant get it to work grrrr

Author
Message
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 1st Apr 2003 03:28
Ok i have completed a dialogue system for eternal destiny.

It has a .dba file which contains a function to be included within the main scenario code.

The problem is that when i have included the file the compiler does not recognise the function that im trying to call.

I am using darkedit.

The source file containing the function was however written in DBpro but i want to included it in classic. I dont think the source has any pro only commands in it. Any ideas. Its probably something simple
Im addicted to Proplus.
Current Project: Eternal Destiny by Halbros Productions
http://www.halbrosproductions.netfirms.com
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 1st Apr 2003 05:05
Simple? Have you spelt the filename right? What about the 'endfunction'?

Have you tried sticking the function into the main .dba file and seeing if it can recognise it from there? That's usually what I do when I'm debugging a problem like this.

"I am a living, thinking entity who was created in the sea of information."
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Apr 2003 15:11
Doomer: Thanks for your reply. Ill make sure to forward this message to Mnemonix if he doesnt read it before I get home

Thanks- I cant wait till this bug is sorted, our dialog system will rock Nice job, and thanks Doomer

Good luck

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 1st Apr 2003 15:42
Yes all of that is in order. When i am calling a function from an included file do i just need to type the function name and its arguments?

Im addicted to Proplus.
Current Project: Eternal Destiny by Halbros Productions
http://www.halbrosproductions.netfirms.com
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 1st Apr 2003 15:48
I think i have now fixed the problem.

I was writing the #include command like this:-

# include ("include.dba")

and it does not need the parenthesis. In fact it does not work if u have them in.


I feel dumb

Im addicted to Proplus.
Current Project: Eternal Destiny by Halbros Productions
http://www.halbrosproductions.netfirms.com
Dr DooMer
21
Years of Service
User Offline
Joined: 22nd Dec 2002
Location: United Kingdom
Posted: 2nd Apr 2003 01:12
Nice to know you got it sorted!

"I am a living, thinking entity who was created in the sea of information."

Login to post a reply

Server time is: 2024-09-20 03:46:34
Your offset time is: 2024-09-20 03:46:34