Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN OTHER

- Jump to comments -
Title  NWNX MySQL module
Author  Jeroen Broekhuizen
Submitted / Updated  07-11-2004 / 06-29-2005
Category  Application
Format  Exe File
Description
For users of the NWNX ODBC module who have MySQL as your database platform this new module might (should :))be of interest for you. Based on the MySQL library this module connects directly to your MySQL database server and executes/fetches without the use of an ODBC layer, which gives you a major speed increase. To make it even easier for current NWNX ODBC users: this module is completely compatible with your current ODBC module. Just overwrite the nwnx_odbc.dll file with the new module and everything works directly on your MySQL database without any script changes (ps. first you need to configure the module in the ini-file, to learn more about this read the included readme file).

Version 0.8.5
* Fixed memory leak in module.


Files

NameTypeSizeDownloads
MySQL12.rarMySQL12.rar
Submitted: 07-11-2004 / Last Updated: 10-17-2004
rar13.88Kb1893
--
SCORE OUT OF 10
10
2 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (26):

Posted by jeroenb at 2005-01-03 02:01:00    
A new version is released at NWNX.org: NWNX ODBC 0.8.8. Future releases will always be released on that site, and support will be given on the forum on the same site.

JeroenB

Posted by jeroenb at 2004-12-14 03:09:00    
Changes will be uploaded soon.

Posted by incorrect update ( 202.87.xxx.xxx ) at 2004-11-03 06:28:00    
You may wish to recheck what you last uploaded. There seems to be a few problems espically when I compare it to your original upload.

I may be missing something, but here goes.

The following files are now missing. Without them I doubt anyone will get this working.
A) nwnx_mysql.ini - Your setup file everyone needs to alter so that they can connect it to their own database.
B) libmySQL.dll - The mysql library itself.
C) Readme.txt - The user file has been replaced with your compiler instruction file.

Also your nwnx_odbc.dll has dropped in size from 44k to only 7k and doesn't appear to work anymore. You haven't drastically changed the code so it may be a incomplete/test build?

Heres some error lines recieved from the nwnx.txt file of nwnx2. The function calls don't seem to exist in the build?
* Library ODBC!SPACER does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!FETCH does not exist.

Posted by incorrect update ( 202.87.xxx.xxx ) at 2004-11-03 06:28:00    
You may wish to recheck what you last uploaded. There seems to be a few problems espically when I compare it to your original upload.

I may be missing something, but here goes.

The following files are now missing. Without them I doubt anyone will get this working.
A) nwnx_mysql.ini - Your setup file everyone needs to alter so that they can connect it to their own database.
B) libmySQL.dll - The mysql library itself.
C) Readme.txt - The user file has been replaced with your compiler instruction file.

Also your nwnx_odbc.dll has dropped in size from 44k to only 7k and doesn't appear to work anymore. You haven't drastically changed the code so it may be a incomplete/test build?

Heres some error lines recieved from the nwnx.txt file of nwnx2. The function calls don't seem to exist in the build?
* Library ODBC!SPACER does not exist.* Library ODBC!EXEC does not exist.* Library ODBC!FETCH does not exist.

Posted by Awol at 2004-10-19 12:31:00    
Would help is the readme.txt file had information about this ini file I should have to connect to the DB.

Posted by jeroenb at 2004-10-17 02:19:00    
I uploaded a new version of the MySQL module:
* fixed the memory leak problem
* log file should be in the right place

Currently I am developing an even faster way to do persistency in a NWN PW. Before it will be release, this new module will be heavily player tested on my server first. If you like you are all welcome to have a look at my PW. I will keep you informed when it's going live.

When it proved to be stable I will release it to the public with documentation so that people can start using it, probably with a simple module along which shows you the new capabilities.

Posted by MessyMaster at 2004-10-15 03:58:00    
Bah! It works alright. Just that the SQL in the module apc_demo is not compatible with my version of MySQL.

The log file helped me... It's called mysql.txt and is placed in the NWN root dir.

Posted by MessyMaster at 2004-10-14 10:17:00    
(stupid £$#)

nwnx_mysql returns "", while it returns "................." when NWNX has not been started.

Posted by MessyMaster at 2004-10-14 10:14:00    
I'm having trouble getting this to work.

I tried setting up NWNX ODBC and got it working perfectly, but with an Access database. So, I replaced nwnx_odbc.dll with nwnx_mysql.dll (and renamed it to nwnx_odbc.dll), but I can't get it to work. The database names, user, password, host is all set up correctly.
However, I am no expert on MySQL, so I may do something wrong. I tried setting the user to full rights, but...

NWNX and nwnx_mysql seems to be working, since the nwnx_mysql return

Posted by f0ul_cr0w at 2004-10-06 08:17:00    
I'm assuming (hoping) this is still being worked on to "iron out" the mentioned bugs? Eagerly awaiting an update.

Posted by Makzimia_De_Graf at 2004-09-09 16:23:00    
actually it does write a log file, puts it in nwn directory calle mysqlnwn.txt I think from memory. I missed it at first way back as well. But, it does have bugs still, you will want to wait until those are ironed out.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by J69 ( 207.81.xxx.xxx ) at 2004-09-07 21:28:00    
Works well, is faster.

But has the added problem of no log file (nwnx_odbc.txt) of the result sets. So if your having SQL problems, with incorrect queries you have to search allot harder to find answers. The old DLL was great in pin pointing areas. So with this system you should use the normal nwn_odbc.dll to do all your testing. Then when you go prod use this DLL and rename it.

If a log was added that would be awsome. Unless I'm missing something and it creates a log I cant find.

Posted by Makzimia_De_Graf at 2004-08-26 16:07:00    
More update, the module while it has had a MAJOR improvement in memory/performance, has some bugs in it in relation to write to or read from the DB under certain circumstances. I have given Jeroen a copy of my log, and some other code to look at, and a table set from MySQL. I am sure he will sort this out and we will all benefit from his great work.

Makz.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by J69 ( 204.174.xxx.xxx ) at 2004-08-26 15:57:00    
Could we get this updated to the newest version?

Posted by Makzimia_De_Graf at 2004-08-23 09:41:00    
Just an update, in case Jeroen doesn't get a chance to say. I have had 2 newer versions of this from him since my claims were in fact substantiated. The latest version I am now running, seems to work at around the same memory useage over 24 hrs as using the ODBC driver. A MARKED improvement, thank you Jeroen.

Makz.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by LOE_Frey at 2004-08-19 10:50:00    
It worked great. I had some serious problems getting ODBC to correctly work with its DSN. I simply renamed 1 file, changed capitalized a letter in the username and put in the name of my database and everything loaded and runs perfectly. I hope I notice a speed difference as previously we did not use this module, but either way I am happy with it already. Nice work as usual.

Posted by Silk at 2004-07-23 09:47:00    Voted 10.00 on 07/21/04
We actually have an unbelievable amount of database traffic. Persistent Chests, Persistent Merchants, Persisitent Corpses, All Quests across all avlis servers (6 at the moment), etc.

I forgot which version of MySQL we're using, but i'll take a look tonight unless another member of my team posts here.

We're using Windows XP Pro. I forgot the setup, but I'll check it out.

Posted by Makzimia_De_Graf at 2004-07-21 15:54:00    
Ok thanks Silk, how much of your world is being put in and out of the DB? ie: quests, banking, play stats, subraces, storage of items, etc? and, do you do anything other than a standard setup of MySQL? and lastly, do you use Windows XP pro? and if so, programs cache priority or server cache priority, and swap file yes or no?


Thanks.

Makz.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by Silk at 2004-07-21 11:47:01    Voted 10.00 on 07/21/04
Uber Fast!

Posted by Silk at 2004-07-21 11:45:00    Voted 10.00 on 07/21/04
We're running this on all Avlis servers with a large amount of traffic and we are not seeing the issue you're talking about.

Everything is just faster.

Posted by Makzimia_De_Graf at 2004-07-16 06:51:00    
The Memory is increasing in use Jeroen by 1-2MB per player as they log on. Over a period of 8 hrs we reached 1.93GB and the server crashed, then flushed again, and started it's climb again. What Salandra meant is that each player looks like they are getting one session in memory each time they log on. As soon as I went back to using the ODBC for MySQL again, we went back to not having that happen.

BTW I use MySQL ODBC 3.51 and MySQL 4.0.19 if that makes any difference? Normal use in a 24 HR period for us, with players up into the high 40's of low 50's for hours at a time, gets us to about 450MB of RAM used, and then I usually reload for my updates.

Thanks.

Makz.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by Jeroen at 2004-07-16 00:25:00    
What does she mean with a session per player? If she means that there is a connection between the player and the database, then she is wrong. As there is only one connection between the module and the database server.
Plus, I haven't noticed that much increase in memory usage on my system and other systems.

JeroenB
Developer of NWNX & mods

Posted by Makzimia_De_Graf at 2004-07-15 14:04:00    
Ignore my previous comment somewhat, my ignorance of DB useage was in that. Ok, I told my wife the great Salandra, who is a DB expert, who said, silly, the DB is keeping seperate sessions for each player now. D'OH, ok, so, should I allow a page file now? that is slower than mem of course, I see a 5 second timeout set in MySQL, that is meant to flush previous sessions I believe? however, I don't see that happening. Just looking for a little guidance here, as she is not a MySQL person however.

Thanks.

Makz.Makzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by Makzimia_De_Graf at 2004-07-15 12:59:00    
Ok, running it, and seems good, I have only one comment, it uses a LOT of RAM and PF. Before this, I used maybe 550MB in a day of running, using over 1GB of RAM and only been up about 3 hrs. Any ideas? BTW I don't use a swap file at all, never needed it with 2GB of RAMMakzimia De Graf
DM/Creator
Island of Fredian a PW
Home of ATS/Salandra's crafting

Posted by Kavon ( 64.252.xxx.xxx ) at 2004-07-13 15:51:00    
Awesome! Now hopefully we can get this running on linux some time :)

Posted by Orleron at 2004-07-13 14:03:55    Voted 10.00 on 07/13/04
One of the most useful additions yet to NWNX!

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Modules


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters