NWNX4 : Problème d'installation

Répondre
Partager Rechercher
Bonjour à tous,

M'étant remis au script il y a peu, je voulais essayer pour la première fois NWNX4. Je l'ai donc téléchargé et installé en suivant les instructions que je trouvais.

Bref, la BDD MySQL est fonctionnelle, NWNX4 se lance et lance le module correctement. Tout semble fonctionner, y compris la connexion à la BDD. Cependant, lorsque j'essaye le module de démo de MySQL, il y a un message d'erreur comme quoi il y aurait un problème avec le plugin xp_mysql.

Lorsque je vais dans les logs de NWNX4, voila le message d'erreur affiché :

Code:
NWNXGetString: Function class 'SQL' not provided by any plugin. Check your installation.
Je suis sous Windows 7 64 Intégral, si cela peut avoir une importance.

Merci d'avance pour votre aide.
De mémoire, il me semble que tu dois copier/coller un .dll, "mysql.dll" depuis Nwnx4 dans le dossier d'installation de Nwn2, à la racine (là où il y a les .exe donc).
Normalement tout devrait se mettre en place ainsi.
Tu devrais avoir dans le répertoire nwnx un fichier xp_mysql.txt qui est le log du plugin sql, dis-nous ce qu'il y a dedans. Tu devrais également avoir -comme dit plus haut- le fichier xp_mysql.dll dans ce répertoire (ainsi que dans le répertoire d'installation de never, je suis pas sûr que ça soit nécessaire encore mais n'hésite pas).

Possible que ça ait une importance sous seven, as-tu essayé de lancer mysql et le nwserver en compatibilité xp sp3 ?
Voila pour le log, déjà :

Code:
* Log level set to 2 (everything)
o SCO located at 78f440.
o RCO located at 78f090.
* Hooking successful
* Connecting to server localhost
* Plugin initialized.
* Registering under function class SQLoff
* Plugin unloaded.
Je met le log complet de NWNX4 tant qu'à faire :

Code:
* Loading plugins...
* Loading plugin xp_mysql.dll: Successfully registered as class: SQLoff
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* General protection fault error dialog disabled.
* NWNX4 activated.
* NWNXGetString: Function class 'SQL' not provided by any plugin. Check your installation.
* NWNX4 shutting down.
Et je n'ai essayé de lancer que NWNX4_GUI.exe en compatibilité windows xp et ca ne semble pas fonctionner.

xp_mysql.dll est bien dans les deux répertoires.
Est-ce que tu as modifié quelque chose pour que le nom de la classe SQL soit SQLoff ? Là de ce que je vois il cherche le plugin de classe SQL mais le plugin sql est enregistré sous SQLoff donc...
Il me semble qu'il y a des choses à modifier pour utiliser mysql et pas sqllite, vérifie que tu n'as pas changé par mégarde un truc de l'installation.

Tu peux aussi poser ici ton nwnx.ini pour qu'on voit ce que tu as mis comme configuration (si y a des mot de passe tu peux évidemment les enlever). Je dis tout ça de mémoire aussi puisque j'ai pas de pc avec never ou nwnx installé actuellement.
Je n'ai rien changé, non. Voici le nwnx.ini :

Code:
# NWNX4 configuration file
# These are the default values for NWNX4. 

# Path to NWN2 installation (where nwn2server.exe is located)
# no default. You really have to specify it, currently.
nwn2 = F:\Jeux\NWN2

# You can override the tempory path NWN2 uses
# This is where NWN2 will put its logfiles (among other files)
# no default 
# nwn2temp = F:\Jeux\NWN2\log

# Command line parameters to start the server with
# default: no parameters
parameters = -module nwnx_demo_mysql

# Should NWNX restart the server if the server process has gone away ?
# 0 = do not restart the server
# 1 = restart the server
# default: 1
processWatchdog = 1

# Should NWNX restart the server if it locks up ?
# This can happen if the server is still running, but does not react to gamespy queries any more.
# 0 = do not query the server
# 1 = query the server
# default: 1
gamespyWatchdog = 1

# If you activate the gamespy watchdog, you need to specify the port your NWN2 server is running on
# default: 5151
gamespyPort = 5121

# How often should the gamespy watchdog query the server ?
# Note: The server will be restarted if it does not react to a certain number of
# queries in a row. See setting gamespyTolerance below.
# default: every 30 seconds
gamespyInterval = 30

# How often may the server not react to gamespy queries ?
# Note: The server will be restarted if it does not react this many queries in a row
# Example: gamespyInterval = 30 and gamespyTolerance = 4 means that the server will
# be restarted if it does not react within 2 minutes 
# default: 4 queries
gamespyTolerance = 4

# How long should NWNX wait before the gamespy watchdog kick in ?
# Note: Give the server enough time to load the module, otherwise the watchdog will start to complain
# Value = seconds to wait
# default: 30 seconds
gamespyDelay = 30

# If the server crashes, how long should NWNX wait before it restarts the server ?
# Value = seconds to wait
# default: 5 seconds
restartDelay = 5

# Should NWNX disable the general protection fault error dialog ?
# Note: The watchdogs may fail to restart the server properly if this dialog stays open
# 0 = do not disable the GPFault dialog
# 1 = disable the GPFault dialog
# default: 1
noGPFaultErrorBox = 1

# If you want NWNX to execute a CMD or BAT file before restarting the server after
# a crash, specify it's name here. If you leave this setting empty, no program
# will be run. NWNX will wait for the program to finish before it continues.
# no default
# restartCmd = nwnx_restart.cmd

# How long should NWNX wait for the server to shutdown gracefully 
# before it ends the server process forcefully ?
# Value = seconds to wait
# default: 10 seconds
gracefulShutdownTimeout = 10

# You can enter a server message that will be sent to all players
# as NWNX tries to shutdown the server.
# Value = message
# default: none
gracefulShutdownMessage = Server is shutting down NOW!

# How long should the shutdown server message be displayed ?
# Value = seconds to wait before actual shutdown
# default: 5 seconds
gracefulShutdownMessageWait = 5
et voila xp_mysql.ini :

Code:
# The function class that is provided by this plugin
class = SQLoff

# MySQL server connection parameters
server   = localhost
user     = root
password = *
schema   = nwn2

# How much information should be written to xp_mysql.txt:
# 0=nothing, 1=only errors, 2=everything
loglevel = 2
Change la valeur de class dans xp_mysql.ini : class = SQL

En fait si c'est à SQLoff par défaut c'est parce que par défaut nwnx utilise sqlite. Si tu veux utiliser MySQL il faut l'activer dans le xp_mysql.ini et désactiver sqlite dans xp_sqlite.ini en y mettant SQLoff -ou alors tu peux complètement supprimer ce qui à trait à sqlite si tu ne comptes pas l'utiliser.
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés