nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
128 stars 91 forks source link

NWNX_TWEAKS_* issue on .35 server #1686

Closed cxevan7 closed 12 months ago

cxevan7 commented 12 months ago

The following tweaks do not appear to work on the .35 server with NWNX .35-40

NWNX_TWEAKS_HIDE_CLASSES_ON_CHAR_LIST

and

NWNX_TWEAKS_HIDE_PLAYERS_ON_CHAR_LIST

cxevan7 commented 12 months ago

This seems to be an issue with all the tweaks, none of them seem to be enabled

Daztek commented 12 months ago

Are you sure you're loading the plugin?

cxevan7 commented 12 months ago

I didn't change anything from my /mod-start.sh from the upgrade from .34 to .35 but it's possible.

cxevan7 commented 12 months ago

Just confirmed that we do not skip the tweak plugin, and the tweaks are enabled

# Advanced plugins most people won't use, so skip them by default.
export NWNX_JVM_SKIP=y
export NWNX_MONO_SKIP=y
export NWNX_THREADWATCHDOG_SKIP=y
export NWNX_RUBY_SKIP=y
export NWNX_REDIS_SKIP=y
export NWNX_LUA_SKIP=y
export NWNX_SPELLCHECKER_SKIP=y

#
# Custom behavior tweaks from the NWNX_Tweaks plugin. Uncomment/modify to enable
#
export NWNX_TWEAKS_SKIP=n
# HP players need to reach to be considered dead
export NWNX_TWEAKS_PLAYER_DYING_HP_LIMIT=-25
# Disable pausing by players and DMs
#export NWNX_TWEAKS_DISABLE_PAUSE=y
# Disable DM quicksave ability
export NWNX_TWEAKS_DISABLE_QUICKSAVE=y
# Stackable items can only be merged if all local variables are the same
export NWNX_TWEAKS_COMPARE_VARIABLES_WHEN_MERGING=n
export NWNX_TWEAKS_RETAIN_LOCAL_VARIABLES_ON_ITEM_SPLIT=y
# Parry functions as per description, instead of blocking max 3 attacks per round
#export NWNX_TWEAKS_PARRY_ALL_ATTACKS=y
# Immunity to Critical Hits does not confer immunity to sneak attack
#export NWNX_TWEAKS_SNEAK_ATTACK_IGNORE_CRIT_IMMUNITY=y
# Items are not destroyed when they reach 0 charges
#export NWNX_TWEAKS_PRESERVE_DEPLETED_ITEMS=y
# Fix some intel crashes by disabling some shadows on areas
#export NWNX_TWEAKS_DISABLE_SHADOWS=y
export NWNX_TWEAKS_HIDE_CLASSES_ON_CHAR_LIST=y
export NWNX_TWEAKS_HIDE_PLAYERS_ON_CHAR_LIST=1
export NWNX_TWEAKS_FIX_DM_SELECTION_BOX=y
export NWNX_RENAME_OVERWRITE_DISPLAY_NAME=y
export NWNX_RENAME_ALLOW_DM=y
export NWNX_TWEAKS_PRESERVE_ACTIONS_ON_DM_POSSESS=y
export NWNX_TWEAKS_BLOCK_DM_SPAWNITEM=y
export NWNX_TWEAKS_CAST_ALL_ON_HIT_CAST_SPELL_ITEM_PROPERTIES=y
export NWNX_TWEAKS_RANGED_WEAPONS_USE_ON_HIT_EFFECT_ITEM_PROPERTIES=y
export NWNX_TWEAKS_RANGED_WEAPONS_USE_ON_HIT_CAST_SPELL_ITEM_PROPERTIES=y
export NWNX_TWEAKS_TURD_BY_CDKEY=y
export NWNX_TWEAKS_FIX_UNLIMITED_POTIONS_BUG=y
Daztek commented 12 months ago

Does file NWNX_Tweaks.so exist? Does the log say it loaded the plugin?

cxevan7 commented 12 months ago

It does exist, but it does look like it threw an error but didn't indicate on bootup.

E [22:26:53] [NWNXLib] [Plugin.cpp:44] Unable to load plugin '/home/haze/nwnx/Binaries/NWNX_Tweaks.so': /home/haze/nwnx/Binaries/NWNX_Tweaks.so: undefined symbol: _ZN12CNWSCreature20ReloadJournalEntriesEv

Daztek commented 12 months ago

Can you post the start of the log?

cxevan7 commented 12 months ago
Starting NWNX 8193.35-40 []
Neverwinter Nights Server
Build: 8193.35-37 [a80fc164]
Copyright BioWare Corp 1998-2004
Registering crash signal handlers.

Server: Loading...
NWNX: WARNING: POSTFIX VERSION MISMATCH: EXPECTED: 40, GOT: 37
NWNX:          THE NWNX API MAY NOT BE UP TO DATE AND CRASH YOUR SERVER.
N [22:26:53] [NWNX_Core] [NWNXCore.cpp:583] Loading NWNX.
I [22:26:53] [NWNX_Core] [NWNXCore.cpp:309] Loading plugins from: /home/haze/nwnx/Binaries
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Administration.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Appearance.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Area.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Chat.so
I [22:26:53] [NWNX_Compiler] [Compiler.cpp:35] Skipping compilation. NWNX_COMPILER_SRC_DIR or NWNX_COMPILER_OUT_DIR was not specified.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Compiler.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Core.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Creature.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Damage.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Diagnostics.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Dialog.so
E [22:26:53] [NWNX_DotNET] [DotNET.cpp:98] Unable to load libnethost.so. .NET plugin will be unavailable.
E [22:26:53] [NWNX_DotNET] [DotNET.cpp:99] If you're not using the .NET plugin, you can disable this message with 'NWNX_DOTNET_SKIP=y'
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_DotNET.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_ELC.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Effect.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Encounter.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Events.so
I [22:26:53] [NWNX_Experimental] [PlayerHitpointsAsPercentage.cpp:68] EXPERIMENTAL: Rendering creature hitpoints as percentages.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Experimental.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Feat.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Feedback.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Item.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_ItemProperty.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_MaxLevel.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Metrics_InfluxDB.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_NoStack.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Object.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_OpenAI.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Optimizations.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Player.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Profiler.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Race.so
I [22:26:53] [NWNX_Core] [NWNXCore.cpp:346] Skipping plugin NWNX_Redis due to configuration.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Regex.so
I [22:26:53] [NWNX_Rename] [Rename.cpp:127] DMs will be included with rename logic.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Rename.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Resources.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Reveal.so
I [22:26:53] [NWNX_SQL] [SQL.cpp:68] Connecting to type MYSQL
W [22:26:53] [NWNX_SQL] [SQL.cpp:105] Database connection lost. Reconnecting..
I [22:26:53] [NWNX_SQL] [MySQL.cpp:36] Connection info:  host=localhost port=3306 username=nwn
N [22:26:53] [NWNX_SQL] [SQL.cpp:112] Reconnect successful.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_SQL.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_ServerLogRedirector.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_SkillRanks.so
I [22:26:53] [NWNX_Core] [NWNXCore.cpp:346] Skipping plugin NWNX_ThreadWatchdog due to configuration.

I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_SkillRanks.so
I [22:26:53] [NWNX_Core] [NWNXCore.cpp:346] Skipping plugin NWNX_ThreadWatchdog due to configuration.
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Tileset.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Tracking.so
E [22:26:53] [NWNXLib] [Plugin.cpp:44] Unable to load plugin '/home/haze/nwnx/Binaries/NWNX_Tweaks.so': /home/haze/nwnx/Binaries/NWNX_Tweaks.so: undefined symbol: _ZN12CNWSCreature20ReloadJournalEntriesEv
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Util.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Visibility.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_Weapon.so
I [22:26:53] [NWNXLib] [Plugin.cpp:71] Loaded plugin /home/haze/nwnx/Binaries/NWNX_WebHook.so
I [22:26:53] [NWNXLib] [Commands.cpp:24] Registering command 'runscript'
I [22:26:53] [NWNXLib] [Commands.cpp:24] Registering command 'eval'
I [22:26:53] [NWNXLib] [Commands.cpp:24] Registering command 'evalx'
I [22:26:53] [NWNXLib] [Commands.cpp:24] Registering command 'loglevel'
I [22:26:53] [NWNXLib] [Commands.cpp:24] Registering command 'logformat'
I [22:26:53] [NWNX_ServerLogRedirector] [ServerLogRedirector.cpp:41] (Server) Server Starting Up: 10 Second Heartbeat logging has been disabled
Working Directory For Game Install Is: /home/haze/nwn
Working Directory For Your Resources Is: /home/haze/.local/share/Neverwinter Nights
I [22:26:53] [NWNX_ServerLogRedirector] [ServerLogRedirector.cpp:41] (Server) Attempting to Use Language: en
I [22:26:53] [NWNX_ServerLogRedirector] [ServerLogRedirector.cpp:41] (Server) nwsync: reconfigured successfully
I [22:26:54] [NWNX_ServerLogRedirector] [ServerLogRedirector.cpp:41] (Server) Game is using local port: 5121
Daztek commented 12 months ago

You're using server binaries for 8193.35-37 while nwnx expects 8193.35-40

cxevan7 commented 12 months ago

I downloaded the latest available from both places.

Where do I get the 8193.35-40 server binary?

Sorry for such a stupid mistake

Daztek commented 12 months ago

https://nwn.beamdog.net/downloads/nwnee-dedicated-8193.35-40.zip

cxevan7 commented 12 months ago

Updated, and that fixed it.

PEBKAC errors ftw

Daztek commented 12 months ago

Good to hear it's working now, closing this!