-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun-server.sh
88 lines (78 loc) · 2.18 KB
/
run-server.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
MODNAME=Empty
pushd ~/server/bin/linux-x86
export NWNX_CORE_SKIP_ALL=y
export NWNX_CORE_LOAD_PATH=~/unified/Binaries
export NWNX_CORE_LOG_LEVEL=6
export NWNX_SERVERLOGREDIRECTOR_SKIP=n
export NWNX_SERVERLOGREDIRECTOR_LOG_LEVEL=6
# Only SQLite is supported out of the box
export NWNX_SQL_SKIP=y
export NWNX_SQL_TYPE=SQLITE
# Redis needs additional configuration, see the Extra header in the readme
export NWNX_REDIS_SKIP=y
export NWNX_REDIS_HOST=localhost
# These plugins should all work, enable when needed
# You can check a plugin's README for additional environment variables you can set:
# https://github.com/nwnxee/unified/tree/master/Plugins
export NWNX_ADMINISTRATION_SKIP=y
export NWNX_APPEARANCE_SKIP=y
export NWNX_AREA_SKIP=y
export NWNX_CHAT_SKIP=y
export NWNX_CREATURE_SKIP=y
export NWNX_DAMAGE_SKIP=y
export NWNX_DIALOG_SKIP=y
export NWNX_ELC_SKIP=y
export NWNX_EFFECT_SKIP=y
export NWNX_ENCOUNTER_SKIP=y
export NWNX_EVENTS_SKIP=y
export NWNX_FEAT_SKIP=y
export NWNX_FEEDBACK_SKIP=y
export NWNX_ITEM_SKIP=y
export NWNX_ITEMPROPERTY_SKIP=y
export NWNX_MAXLEVEL_SKIP=y
export NWNX_NOSTACK_SKIP=y
export NWNX_OBJECT_SKIP=y
export NWNX_OPTIMIZATIONS_SKIP=y
export NWNX_PLAYER_SKIP=y
export NWNX_RACE_SKIP=y
export NWNX_RENAME_SKIP=y
export NWNX_REVEAL_SKIP=y
export NWNX_SKILLRANKS_SKIP=y
export NWNX_THREADWATCHDOG_SKIP=y
export NWNX_TILESET_SKIP=y
export NWNX_TWEAKS_SKIP=y
export NWNX_UTIL_SKIP=y
export NWNX_VISIBILITY_SKIP=y
export NWNX_WEAPON_SKIP=y
export NWNX_WEBHOOK_SKIP=y
# These plugins are missing dependencies or outside configuration and won't work out of the box
export NWNX_DOTNET_SKIP=y
export NWNX_LUA_SKIP=y
export NWNX_METRICS_INFLUXDB_SKIP=y
export NWNX_PROFILER_SKIP=y
export NWNX_RUBY_SKIP=y
export NWNX_SPELLCHECKER_SKIP=y
export NWNX_TRACKING_SKIP=y
LD_PRELOAD=~/unified/Binaries/NWNX_Core.so \
./nwserver-linux \
-module "$MODNAME" \
-maxclients 32 \
-minlevel 1 \
-maxlevel 40 \
-pauseandplay 0 \
-pvp 2 \
-servervault 0 \
-elc 1 \
-ilr 1 \
-gametype 3 \
-oneparty 0 \
-difficulty 3 \
-autosaveinterval 0 \
-playerpassword '' \
-dmpassword '' \
-servername 'WSL NWNX:EE Server' \
-publicserver 0 \
-reloadwhenempty 0 \
-port 5121
popd