View previous topic :: View next topic |
Author |
Message |
Frang
Joined: 22 May 2005 Posts: 32
|
Posted: Sun May 22, 2005 22:53 Post subject: need a lil help |
|
|
I have used this system before but have been away from nwn for a long time and im getting into it again but im having problems getting the aps_include file to compile
I do a mod build and my on client enter and on mod load scripts won't compile due to this error in aps_include
Quote: | 5/22/2005 4:50:12 PM: Error. 'hc_on_cl_enter' did not compile.
aps_include.nss(65): ERROR: FUNCTION IMPLEMENTATION AND DEFINTITION DIFFER |
this is whats on line 65
Code: | void SetPersistentString(object oObject, string sVarName, string sValue, int iExpiration =0, string sTable = "pwdata"); |
any help on this would be much appreciated[/code][/quote] |
|
Back to top |
|
|
JeroenB
Joined: 31 Dec 2004 Posts: 228 Location: Netherlands
|
Posted: Mon May 23, 2005 8:28 Post subject: |
|
|
And how do you call that function?You might also want to look if the definition in the top of the file is the same as that implementation at line 65 |
|
Back to top |
|
|
Frang
Joined: 22 May 2005 Posts: 32
|
Posted: Mon May 23, 2005 13:04 Post subject: |
|
|
in hc_on_cl_enter at the top i have
#include "aps_include also have it at the top of hc_on_mod_load and get the same error. |
|
Back to top |
|
|
JeroenB
Joined: 31 Dec 2004 Posts: 228 Location: Netherlands
|
Posted: Tue May 24, 2005 13:10 Post subject: |
|
|
Is it accidental that you forgot the closing " ?
Perhaps you should post the your complete script that is calling the APS functions. Then we have more chance to see what is going wrong. |
|
Back to top |
|
|
Frang
Joined: 22 May 2005 Posts: 32
|
Posted: Tue May 24, 2005 14:40 Post subject: |
|
|
yeah just missed the " when i copied it to post here. But I remembered that its just an issue with aps and hcr but the Persistant Facade fixes the issue used it and got it working but thanks for the reply |
|
Back to top |
|
|
maka
Joined: 14 May 2008 Posts: 3
|
Posted: Wed May 14, 2008 1:42 Post subject: |
|
|
has anyone solved this issue?
I imported the aps.erf, and the code won't compile.
Thanks. |
|
Back to top |
|
|
Tempest
Joined: 26 Feb 2008 Posts: 32
|
Posted: Wed May 14, 2008 5:10 Post subject: |
|
|
no sorry it loaded and compiled just fine for me.... |
|
Back to top |
|
|
Extreme
Joined: 28 Nov 2007 Posts: 135
|
Posted: Thu Jul 17, 2008 11:52 Post subject: |
|
|
For any who didnt get the answer...the proper line is...
Code: | #include "aps_include" |
also, if you want the SetPersist... to show up in the function lists, you need to remove the word wrap on the functions |
|
Back to top |
|
|
maka
Joined: 14 May 2008 Posts: 3
|
Posted: Wed Oct 01, 2008 17:03 Post subject: |
|
|
I'm gettting the same error:
ERROR: FUNCTION IMPLEMENTATION AND DEFINTITION DIFFER
I never use the function, SetPersistentString.
The implementation and definition are exactly correct. I even used a diff to make sure my eyes weren't just playing tricks on me.
Funny thing is, if I comment that function out (since I don't use it) it just moves down to the next function and says the same thing (but for the next function).
Anyone have any meaningful resolutions?
Thanks! |
|
Back to top |
|
|
maka
Joined: 14 May 2008 Posts: 3
|
Posted: Wed Oct 01, 2008 17:46 Post subject: |
|
|
Nevermind. I just scrapped aps_include and copied over the functions I needed to another script. |
|
Back to top |
|
|
kungfoowiz
Joined: 12 Oct 2006 Posts: 61
|
Posted: Mon Oct 20, 2008 18:47 Post subject: |
|
|
Hello Peeps!
Well, the error there is that the definition and the implementation differ, which means you need to check the parameter types between the declarations and make sure they're the same, although the names may differ, the number of variables types must be the same.
Also if you've done any edits to the aps_include file, then you should check whether your braces are all paired, and that the function closure brackets are also in pairs.
Sometimes this can flag up as an implementation difference, technically it is, but it's most likely a typo somewhere.
There may be a missing brace or bracket somewhere, or the declaraion and definition are indeed diffferent.
Edward |
|
Back to top |
|
|
|