You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ option(SERVER_ONLY "Create a server only (i.e. no graphics or sound)" OFF)
22
22
option(CHECK_ASSETS "Check if assets are installed in ../stk-assets"ON)
23
23
option(USE_SYSTEM_ANGELSCRIPT "Use system angelscript instead of built-in angelscript. If you enable this option, make sure to use a compatible version."OFF)
24
24
option(USE_SYSTEM_ENET "Use system ENet instead of the built-in version, when available."ON)
25
-
option(USE_IPV6 "Allow create or connect to game server with ipv6 address, system enet will not be used."ON)
25
+
option(USE_IPV6 "Allow create or connect to game server with IPv6 address, system enet will not be used."ON)
26
26
option(USE_SYSTEM_GLEW "Use system GLEW instead of the built-in version, when available."ON)
27
27
option(USE_SYSTEM_WIIUSE "Use system WiiUse instead of the built-in version, when available."OFF)
28
28
option(USE_SQLITE3 "Use sqlite to manage server stats and ban list."ON)
Copy file name to clipboardExpand all lines: NETWORKING.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ The current server configuration xml looks like this:
78
78
<!-- Disable it to turn off all stun related code in server, it allows saving server resource if your server is not behind a firewall. -->
79
79
<firewalled-servervalue="true" />
80
80
81
-
<!-- Enable to allow ipv6 connection if you have a public ipv6 address. STK currently use dual-stack mode which requires server to have both ipv4 and ipv6 and listen to same port, firewalled-server will be disabled so you need to make sure this server has port forward configured properly if needed. -->
81
+
<!-- Enable to allow IPv6 connection if you have a public IPv6 address. STK currently use dual-stack mode which requires server to have both IPv4 and IPv6 and listen to same port, firewalled-server will be disabled so you need to make sure this server has port forward configured properly if needed. -->
82
82
<ipv6-servervalue="false" />
83
83
84
84
<!-- No server owner in lobby which can control the starting of game or kick any players. -->
@@ -224,9 +224,9 @@ You have the best gaming experience when choosing server having all players less
224
224
225
225
Currently STK uses sqlite (if building with sqlite3 on) for server management with the following functions at the moment:
226
226
1. Server statistics
227
-
2.IPV4 / online ID ban list
227
+
2.IPv4 / online ID ban list
228
228
3. Player reports
229
-
4.IPV4 geolocation
229
+
4.IPv4 geolocation
230
230
231
231
You need to create a database in sqlite first, run `sqlite3 stkservers.db` in the folder where (all) your server_config.xml(s) located.
232
232
@@ -236,7 +236,7 @@ CREATE TABLE IF NOT EXISTS (table name above)
236
236
(
237
237
host_id INTEGER UNSIGNED NOT NULLPRIMARY KEY, -- Unique host id in STKHost of each connection session for a STKPeer
238
238
ip INTEGER UNSIGNED NOT NULL, -- IP decimal of host
239
-
ipv6 TEXTNOT NULL DEFAULT '', --IPV6 (if exists) in string of host (only created if ipv6 server)
239
+
ipv6 TEXTNOT NULL DEFAULT '', --IPv6 (if exists) in string of host (only created if IPv6 server)
240
240
port INTEGER UNSIGNED NOT NULL, -- Port of host
241
241
online_id INTEGER UNSIGNED NOT NULL, -- Online if of the host (0 for offline account)
242
242
username TEXTNOT NULL, -- First player name in the host (if the host has splitscreen player)
@@ -273,7 +273,7 @@ CREATE TABLE IF NOT EXISTS (table name above)
273
273
274
274
If you want to see flags and readable names of countries in the above views, you need to initialize `v(server database version)_countries` table, check [this script](tools/generate-countries-table.py).
275
275
276
-
For IPV4 and online ID ban list, player reports or IP mapping, you need to create one yourself:
276
+
For IPv4 and online ID ban list, player reports or IP mapping, you need to create one yourself:
277
277
```sql
278
278
CREATETABLEip_ban
279
279
(
@@ -302,13 +302,13 @@ CREATE TABLE player_reports
302
302
(
303
303
server_uid TEXTNOT NULL, -- Report from which server unique id (config filename)
304
304
reporter_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player who reports
305
-
reporter_ipv6 TEXTNOT NULL DEFAULT '', --IPV6 (if exists) in string of player who reports (only needed for ipv6 server)
305
+
reporter_ipv6 TEXTNOT NULL DEFAULT '', --IPv6 (if exists) in string of player who reports (only needed for IPv6 server)
306
306
reporter_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player who reports, 0 for offline player
307
307
reporter_username TEXTNOT NULL, -- Player name who reports
308
308
reported_time TIMESTAMPNOT NULL DEFAULT CURRENT_TIMESTAMP, -- Time of reporting
309
309
info TEXTNOT NULL, -- Report info by reporter
310
310
reporting_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player being reported
311
-
reporting_ipv6 TEXTNOT NULL DEFAULT '', --IPV6 (if exists) in string of player who reports (only needed for ipv6 server)
311
+
reporting_ipv6 TEXTNOT NULL DEFAULT '', --IPv6 (if exists) in string of player who reports (only needed for IPv6 server)
312
312
reporting_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player being reported, 0 for offline player
313
313
reporting_username TEXTNOT NULL-- Player name being reported
0 commit comments