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 
 
Odd results when saving
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Wed Dec 20, 2006 21:25    Post subject: Reply with quote

and that work now ?
Back to top
View user's profile Send private message
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Thu Dec 21, 2006 0:42    Post subject: Reply with quote

Oh no, sorry - changing it to 128 does not make it work.
Back to top
View user's profile Send private message
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Fri Dec 22, 2006 6:27    Post subject: Reply with quote

Any word on this? It seems to be a NWNX4 bug, as there is no rhyme or reason to the errors that are being generated. I tested with different length names, it seemed the longer names worked.

Again, here is my code

Code:

string sPortalVar = "Portal" + IntToString(iNumberOfPortals)  + CreateUniquePlayerID(oPC);


The following names caused an error :

Adaur Harbot (11 characters)
Barran Fenwalker (15 characters)
Brigid Chandler (15 characters)
Calad Whitecinder (16 characters)
Cylla Meadows (12 characters)
Darric Flomein (13 characters)
Hadan Shieldcleft (16 characters)

the following names did not cause that error

Maricca Water-Bearer (19 characters)
Gustin Amraphennall (18 characters)
Stangal Lightbender (18 characters)

The following tests were performed with the name field (the field in which this error occurs) set to 256 length.
Back to top
View user's profile Send private message
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Fri Dec 22, 2006 13:09    Post subject: Reply with quote

i'm confused, but...i can't help you... Confused

Pap's, any idea ?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Dec 26, 2006 13:37    Post subject: Reply with quote

I have been thinking about this for a little while, but came to no conclusion. I have compiled a special debug DLL of the MySQL plugin, that prints out more debugging information. This should help me to identify the problem.

Please get the DLL and tell me what you get in the vincinity of the SET_ESCAPE_STRING and GET_ESCAPE_STRING requests.

Download: xp_mysqld-002.zip
Instructions: Note that you have to delete the normal DLL and rename the ini file to xp_mysqld.ini for this to work. You might want to check nwnx.txt and make sure that it is really the debug version that is beeing loaded.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Fri Dec 29, 2006 10:55    Post subject: Reply with quote

Thanks for the reply Papillon (and sorry for the delay, just got back from vacation). I downloaded that new .dll, deleted the old one and stuck the new one in it's place. I then renamed my .ini file to xp_mysqld.ini and attempted to run the server.

Inside of nwnx.txt I got the following error message...

Loading plugin xp_mysqld.dll: Error 14001. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

I don't get this error on the other versions. Am I missing something? Thanks Smile
Back to top
View user's profile Send private message
Grinning Fool



Joined: 12 Feb 2005
Posts: 264

PostPosted: Sat Dec 30, 2006 0:03    Post subject: Reply with quote

Hm - is it safe to mix debug and release builds?
_________________
Khalidine, a NWN2 persistent world

Looking for volunteers.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 31, 2006 1:24    Post subject: Reply with quote

Ah, my fault. You need the debug version of the C runtime libraries, and you usually only have those on your system if you have Visual Studio installed.

I'll compile another build on Sunday that should give you all debugging info, without actually beeing a debug build. Stay tuned.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Sun Dec 31, 2006 3:37    Post subject: Reply with quote

Oh - I have VS installed. Are there some files I need to move for the debug stuff to recognize them? Might be easier than you compiling a new version Very Happy
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 31, 2006 12:51    Post subject: Reply with quote

No, I have nothing special in my NWNX4 directory... the dependency walker says it needs MSVCP80D.DLL and MSVCR80D.DLL files, which are in the \Windows\WinSxS directory on my PC.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 31, 2006 13:03    Post subject: Reply with quote

Here is the normal release build, but with some of the debugging messages:

xp_mysql-002.zip

The logfile should look like this:

Code:
* Plugin DoRequest(0x4c55030, SET_ESCAPE_STRING, quot'ed)
* Buffer content: quot'ed
* Plugin DoRequest(0x4c55030, GET_ESCAPE_STRING, ...................................... ...............................)
* Buffer content: quot\'ed


In case you can not get the debug version to work, try this one.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Sun Dec 31, 2006 20:15    Post subject: Reply with quote

Downloaded and replaced that .dll that you posted - what events should be causing those messages to be displayed in the log file? Set/get persistent variables? My log files are not displaying the info.

On a related note, I noticed both my old mysql.dll and this mysql.dll are the exact same size.
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun Dec 31, 2006 22:31    Post subject: Reply with quote

SQLEncodeSpecialChars. SetPersistentString calls it, for example. In general, it would be interesting to see what the DoRequest functions gets, what is returned in the buffer, and what is stored in the DB. Somewhere in between something seems to go wrong and the messages should help you (and me) pinpoint the location.

As long as the date is from today, it's the correct version. The size might be coincidence.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
wizard341



Joined: 19 Dec 2006
Posts: 15

PostPosted: Mon Jan 01, 2007 0:12    Post subject: Reply with quote

Hmmm.... I'm not sure what's wrong here - I checked the date on the file and it says it's from December 31st. Then I place the file into the nwnx4 directory, and it magically says it was created December 17th. Windows appears to think they are the same file....

On a side note - I put this stuff on the 'on module load' - surely I should be seeing *something* in the log...

SetPersistentString(GetModule(),"Blah","Blah");
SetPersistentString(GetModule(),"Blah","Blah");
SetPersistentString(GetModule(),"Blah","Blah");
SetPersistentString(GetModule(),"Blah","Blah");
SetPersistentString(GetModule(),"Blah","Blah");

GetPersistentString(GetModule(),"Blah");
GetPersistentString(GetModule(),"Blah");
GetPersistentString(GetModule(),"Blah");
GetPersistentString(GetModule(),"Blah");
GetPersistentString(GetModule(),"Blah");

SQLEncodeSpecialChars("bllhkasdf");
SQLEncodeSpecialChars("bllhkasdf");
SQLEncodeSpecialChars("bllhkasdf");
SQLEncodeSpecialChars("bllhkasdf");
SQLEncodeSpecialChars("bllhkasdf");

but alas, still nothing Sad

we are talking about the logs located in My Documents\Neverwinter Nights 2\logs\NWN2\LOGS.0 right?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Mon Jan 01, 2007 15:45    Post subject: Reply with quote

Not really, but about xp_mysql.txt. Just delete the normal plugin and copy the new one... strange behaviour, indeed.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support All times are GMT + 2 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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