logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
asp does not compile in module

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
carioca



Joined: 09 Jan 2005
Posts: 12

PostPosted: Sun Jan 09, 2005 10:38    Post subject: asp does not compile in module Reply with quote

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
View user's profile Send private message
Drakken



Joined: 09 Jan 2005
Posts: 2

PostPosted: Sun Jan 09, 2005 10:57    Post subject: Reply with quote

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
View user's profile Send private message
Manuel



Joined: 30 Dec 2004
Posts: 51

PostPosted: Sun Jan 09, 2005 10:57    Post subject: Reply with quote

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
View user's profile Send private message
carioca



Joined: 09 Jan 2005
Posts: 12

PostPosted: Sun Jan 09, 2005 11:06    Post subject: Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Jan 09, 2005 15:07    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
carioca



Joined: 09 Jan 2005
Posts: 12

PostPosted: Sun Jan 09, 2005 23:59    Post subject: Reply with quote

found it.

it was conflicing with the HCR include files
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group