View previous topic :: View next topic |
Author |
Message |
caloup
Joined: 29 Sep 2006 Posts: 59 Location: albi (france)
|
Posted: Wed Dec 20, 2006 21:25 Post subject: |
|
|
and that work now ? |
|
Back to top |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Thu Dec 21, 2006 0:42 Post subject: |
|
|
Oh no, sorry - changing it to 128 does not make it work. |
|
Back to top |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Fri Dec 22, 2006 6:27 Post subject: |
|
|
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 |
|
|
caloup
Joined: 29 Sep 2006 Posts: 59 Location: albi (france)
|
Posted: Fri Dec 22, 2006 13:09 Post subject: |
|
|
i'm confused, but...i can't help you...
Pap's, any idea ? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Dec 26, 2006 13:37 Post subject: |
|
|
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 |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Fri Dec 29, 2006 10:55 Post subject: |
|
|
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 |
|
Back to top |
|
|
Grinning Fool
Joined: 12 Feb 2005 Posts: 264
|
Posted: Sat Dec 30, 2006 0:03 Post subject: |
|
|
Hm - is it safe to mix debug and release builds? _________________ Khalidine, a NWN2 persistent world
Looking for volunteers. |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Dec 31, 2006 1:24 Post subject: |
|
|
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 |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Sun Dec 31, 2006 3:37 Post subject: |
|
|
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 |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Dec 31, 2006 12:51 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Dec 31, 2006 13:03 Post subject: |
|
|
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 |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Sun Dec 31, 2006 20:15 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Dec 31, 2006 22:31 Post subject: |
|
|
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 |
|
|
wizard341
Joined: 19 Dec 2006 Posts: 15
|
Posted: Mon Jan 01, 2007 0:12 Post subject: |
|
|
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
we are talking about the logs located in My Documents\Neverwinter Nights 2\logs\NWN2\LOGS.0 right? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Mon Jan 01, 2007 15:45 Post subject: |
|
|
Not really, but about xp_mysql.txt. Just delete the normal plugin and copy the new one... strange behaviour, indeed. _________________ Papillon |
|
Back to top |
|
|
|