View previous topic :: View next topic |
Author |
Message |
Azer
Joined: 22 Sep 2005 Posts: 2
|
Posted: Thu Sep 22, 2005 10:36 Post subject: NWNX2 & MySQL Problem |
|
|
I'm developing script for a nwn server (so i run a small server and the game on the same pc for test).
I installed mySQL Server 4.1 (the admin of the shard wont use mySQL so I can't use anather db) MyODBC, MySQL Administrator 1.1, Apache e PHP.
I configured with the Windows control panel the access via ODBC and the test output "connect".
I can work with the db via
PHP ( -> perfect)
MyPhpAdmin ( -> perfect)
I tried to create a table via SQL in a nwn script using nwnx2 2.61... nothing. I can see result...
There is someone who can help me, please?
P.S. my nwnx.ini is:
Code: |
; NWNX2 configuration file
; These are the default values for NWNX2. Values specified on the command
; line take precedence.
[NWNX]
ServerPort = 5121
ModuleName = "EsperimentiScript_RP"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = no
UpdateIntervalGamespy = 20
GamespyRetries = 5
OldGamespyProtocol = no
RestartDelay = 5
[ODBC2]
source = mysql
server = localhost
user = root
pwd = xxxxx
db = nwn
; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true
[PROFILER]
MaxLogSize = 512 ; in KByte
LogLevel = 1 ; 1=overall statistics, 2=full script callstack
|
P.P.S. I'm italian... sorry for my English. |
|
Back to top |
|
|
Acrodania
Joined: 02 Jan 2005 Posts: 208
|
Posted: Thu Sep 22, 2005 15:38 Post subject: |
|
|
First make sure that these two parts under [ODBC2] are commented out:
Code: |
; Use these two settings for the SQLite internal database
;source = sqlite
;file = mydb.db
; Use these two settings for ODBC connections
;source = odbc
;dsn = nwn
|
NWNX will use the first entry it finds, and the MySQL Direct Connect is the third entry....
If they ARE commented, set your debugging to "2" in the INI file, load the APS_DEMO.MOD and then post the contents of your NWNX and NWNX_ODBC log files after the server has booted/run long enough to experience your error..... |
|
Back to top |
|
|
Azer
Joined: 22 Sep 2005 Posts: 2
|
Posted: Sat Sep 24, 2005 22:41 Post subject: |
|
|
Quote: | If they ARE commented, set your debugging to "2" in the INI file, load the APS_DEMO.MOD and then post the contents of your NWNX and NWNX_ODBC log files after the server has booted/run long enough to experience your error..... |
They are commented with the ";"... I tried olso to delete the lines like sqlite and odbc...
Where I have to put debugging to "2"? In which configuration file?
Thants a lot! |
|
Back to top |
|
|
|