View previous topic :: View next topic |
Author |
Message |
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Sun Jan 09, 2005 10:38 Post subject: asp does not compile in module |
|
|
I added this code to my onmodule load script:
// Init placeholders for ODBC gateway
SQLInit();
and this error came up from the aps_include.nss :
aps_include.nss(65): ERROR: FUNCTION IMPLEMENTATION AND DEFINTITION DIFFER
here is the bit:
Code: |
void SetPersistentString(object oObject, string sVarName, string sValue, int iExpiration =
0, string sTable = "pwdata");
|
(65) is the line begining with 0
I figure someone else must have had this problem... how do I fix this? |
|
Back to top |
|
|
Drakken
Joined: 09 Jan 2005 Posts: 2
|
Posted: Sun Jan 09, 2005 10:57 Post subject: |
|
|
Mise is exactly the same, yet I don't get any compile error. Might be the bioware compiler causing the problem. Even if you don't have the PrC stuff installed, their compiler might work for you.
Download nwnnsscomp.exe from the vault. Put it in your modules folder.
make a .bat file with this in it.
copy nwnnsscomp.exe temp0\nwnnsscomp.exe
cd temp0
nwnnsscomp -g -i ..\prcinc *.nss
del nwnnsscomp.exe
cd..
pause
Then run the .bat, and make sure your module is loaded in the editor.
If you don't have the PrC installed, take out the -g -i ..\prcinc *.nss |
|
Back to top |
|
|
Manuel
Joined: 30 Dec 2004 Posts: 51
|
Posted: Sun Jan 09, 2005 10:57 Post subject: |
|
|
Shouldn't all that code be on a single line? I'd guess that having carriage retruns between those lines would break the script. |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Sun Jan 09, 2005 11:06 Post subject: |
|
|
Drakken wrote: | Mise is exactly the same, yet I don't get any compile error. Might be the bioware compiler causing the problem. Even if you don't have the PrC stuff installed, their compiler might work for you.
Download nwnnsscomp.exe from the vault. Put it in your modules folder.
.
If you don't have the PrC installed, take out the -g -i ..\prcinc *.nss |
PrC? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Jan 09, 2005 15:07 Post subject: |
|
|
Does that line really look like depicted in the code section above ? There should not be a new line between iExpiration and the rest of the function definition. Maybe fetch the original aps_include from the NWNX package again. _________________ Papillon |
|
Back to top |
|
|
carioca
Joined: 09 Jan 2005 Posts: 12
|
Posted: Sun Jan 09, 2005 23:59 Post subject: |
|
|
found it.
it was conflicing with the HCR include files |
|
Back to top |
|
|
|