Skip to content

Commit 8b1ef56

Browse files
committed
Updated some samples.
DB connection missed max_retries in the schema
1 parent 13776ad commit 8b1ef56

File tree

10 files changed

+96
-97
lines changed

10 files changed

+96
-97
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ NODENAME: # this will usually be your hostname
417417
host: 127.0.0.1 # SRS servers local IP (default is 127.0.0.1)
418418
port: 5002 # SRS servers local port (default is 5002). The bot will change this in your SRS configuration if set here!
419419
autostart: true # this will autostart your DCS server with the DCS server start (default: true)
420-
autoupdate: true # This will auto-update your SRS servers. Default is false, you need to run the bot as Administrator to make it work!
421420
Tacview:
422421
show_passwords: false # If you don't want to show the Tacview passwords (default: true)
423422
# instance2: # you can have an unlimited number of instance configurations, but each instance has to have a physical representation on your disk.
@@ -437,10 +436,10 @@ DEFAULT:
437436
messages: # General messages for servers. You can overwrite any in any server.
438437
greeting_message_members: "{player.name}, welcome back to {server.name}!"
439438
greeting_message_unmatched: '{player.name}, please use /linkme in our Discord, if you want to see your user stats!'
440-
message_player_username: Your player name contains invalid characters. # Default message for players with invalid usernames
441-
Please change your name to join our server.
442-
message_player_default_username: Please change your default player name at the top right # Default message for players with default usernames
443-
of the multiplayer selection list to an individual one!
439+
message_player_username: Your player name contains invalid characters.
440+
Please change your name to join our server. # Default message for players with invalid usernames
441+
message_player_default_username: Please change your default player name at the top right
442+
of the multiplayer selection list to an individual one! # Default message for players with default usernames
444443
message_player_inappropriate_username: Your username is inappropriate and needs to be changed to join this server.
445444
message_ban: 'You are banned from this server. Reason: {}' # default message, if a player is banned on the DCS server
446445
message_reserved: 'This server is locked for specific users.\nPlease contact a server admin.' # Message if server requires discord role (optional)

plugins/srs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ If you want to use the slot blocking feature, you need to create a config/plugin
1616
```yaml
1717
DEFAULT:
1818
message_no_srs: You need to use SRS to play on this server!
19-
enforce_srs: true # block slots until SRS is activated
20-
move_to_spec: true # move people back to spectators, if they leave SRS (only if enforce is true)
19+
enforce_srs: true # Block slots until SRS is activated. People can not use slots, if not on SRS!
20+
move_to_spec: true # Move people back to spectators if they leave SRS (only if enforce is true)
2121
```
22-
You can define, which server (instance) will use this blocking feature by specifying the instance name instead of
22+
You can define which server (instance) will use this blocking feature by specifying the instance name instead of
2323
DEFAULT.
2424
2525
## Discord Commands

samples/main.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
guild_id: 112233445566 # Your Discord server ID. Right-click on your server and select "Copy Server ID".
2-
use_dashboard: true # Use the dashboard display for your node. Default is true.
2+
use_dashboard: false # Use the dashboard display for your node. Default is true.
33
chat_command_prefix: . # The command prefix to be used for in-game chat commands. Default is "."
44
database:
5-
url: postgres://USER:PASSWORD@DB-IP:DB-PORT/DB-NAME
5+
url:
6+
postgres://dcsserverbot:SECRET@localhost:5432/dcsserverbot?sslmode=prefer # The bot will auto-move the database password from here to a secret place and replace it with SECRET.
67
pool_min: 5 # min size of the DB pool, default is 5
78
pool_max: 10 # max size of the DB pool, default is 10
89
logging:
@@ -13,15 +14,15 @@ filter:
1314
server_name: ^Special K - # Filter to shorten your server names on many bot displays. Default is none.
1415
mission_name: ^Operation|_|\(.*\) # Filter to shorten your mission names on many bot displays. Default is none.
1516
tag: "'^[JDS]'" # If your community uses specific tags, this helps with the bots automatch functionality.
16-
opt_plugins: # Optional: list of optional plugins to be loaded and used by the bot
17-
- serverstats # see above
18-
- dbexporter
19-
- motd
20-
- greenieboard
21-
- punishment
22-
- slotblocking
23-
- music
24-
- funkman
25-
- modmanager
26-
- commands
27-
- restapi
17+
opt_plugins: # Optional: list of optional plugins to be loaded and used by the bot
18+
- serverstats # see above
19+
- dbexporter
20+
- motd
21+
- greenieboard
22+
- punishment
23+
- slotblocking
24+
- music
25+
- funkman
26+
- modmanager
27+
- commands
28+
- restapi

samples/nodes.yaml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
NODENAME: # this will usually be your hostname
1+
Legion: # this will usually be your hostname
22
listen_port: 10042 # On which port should the bot listen? Default is 10042
33
listen_address: 127.0.0.1 # Optional: On which interface should the bot listen? Default is 127.0.0.1 (localhost only).
44
# public_ip: 88.77.66.55 # Optional: Your public IP. ONLY if you have a static IP! Put this in here to speed up the startup-process of the bot.
@@ -7,8 +7,9 @@ NODENAME: # this will usually be your hostname
77
nodestats: true # Enable/disable node statistics (database pool and event queue sizes), default: true
88
# restrict_commands: true # Disable commands that can affect the integrity of the server. Default: false (see MULTINODE.md)
99
# restrict_owner: false # If set to true, the owner of the bot can also not run restricted commands. Default: false (see MULTINODE.md)
10-
database: # Optional: It might be that you need to use different IPs to connect to the same database server. This is the place you could do that.
11-
url: postgres://USER:PASSWORD@DB-IP:DB-PORT/DB-NAME # The bot will auto-move the database password from here to a secret place and replace it with SECRET.
10+
database: # Optional: It might be that you need to use different IPs to connect to the same database server. This is the place you could do that.
11+
url:
12+
postgres://dcsserverbot:SECRET@localhost:5432/dcsserverbot?sslmode=prefer # The bot will auto-move the database password from here to a secret place and replace it with SECRET.
1213
pool_min: 5 # min size of the DB pool, default is 5
1314
pool_max: 10 # max size of the DB pool, default is 10
1415
max_reties: 10 # maximum number of retries to initially connect to the database on startups
@@ -18,17 +19,17 @@ NODENAME: # this will usually be your hostname
1819
# heartbeat: 30 # Cluster only: time for the heartbeat between the master and agent nodes to run (default: 30)
1920
# cloud_drive: true # Cluster only: set this to false if you do not have the bot installed on a cloud drive (default and recommended: true)
2021
DCS:
21-
installation: '%ProgramFiles%\\Eagle Dynamics\\DCS World Server' # This is your DCS installation. Usually autodetected by the bot.
22+
installation: '%ProgramFiles%\\Eagle Dynamics\\DCS World' # This is your DCS installation. Usually autodetected by the bot.
2223
autoupdate: true # enable auto-update for your DCS servers. Default is false.
23-
announce: # Optional: post a message to Discord after an update was conducted
24+
announce: # Optional: post a message to Discord after an update was conducted
2425
channel: 11223344556677
2526
title: DCS has been updated to version {}!
2627
description: 'The following servers have been updated:'
2728
footer: Please make sure you update your DCS client to join!
28-
mention: # Optional mentioning
29+
mention: # Optional mentioning
2930
- Admin
3031
- DCS Admin
31-
update_window: # Optional update window. No update will happen if N is set for the respective time and day.
32+
update_window: # Optional update window. No update will happen if N is set for the respective time and day.
3233
timezone: Europe/Berlin # Optional timezone, default is the local time of the server.
3334
00-18: YYYYYYY
3435
18-20: YYYYYYN # Do not update DCS on Sundays, 18:00-20:00 LT
@@ -39,18 +40,18 @@ NODENAME: # this will usually be your hostname
3940
minimized: true # Start DCS minimized (default: true)
4041
# user: xxxx # Your DCS username (only needed for specific use-cases)
4142
# password: xxxx # Your DCS password (will be auto-moved by the bot to a secret place)
42-
extensions: # Your extensions have 2 sections, one in the node and one in each instance.
43-
SRS: # Your node-global settings for SRS
43+
extensions: # Your extensions have 2 sections, one in the node and one in each instance.
44+
SRS: # Your node-global settings for SRS
4445
installation: '%ProgramFiles%\DCS-SimpleRadio-Standalone'
45-
autoupdate: true # Auto-update SRS, whenever a new version is available.
46+
autoupdate: true # Auto-update SRS whenever a new version is available.
4647
use_upnp: true # Do you want to use UPnP to auto-forward your SRS ports? If not set, the global setting will be used.
47-
Tacview: # Your node-global settings for Tacview
48-
installation: 'C:\Program Files (x86)\Steam\steamapps\common\Tacview'
48+
Tacview: # Your node-global settings for Tacview
49+
installation: C:\Program Files (x86)\Steam\steamapps\common\Tacview
4950
tacviewExportPath: '%USERPROFILE%\Documents\Tacview'
50-
# Any other Extension:
51-
# ...
51+
# Any other Extension:
52+
# ...
5253
instances:
53-
DCS.dcs_serverrelease: # The name of your instance. You can have multiple instances that have to have unique names.
54+
DCS.dcs_serverrelease: # The name of your instance. You can have multiple instances that have to have unique names.
5455
home: '%USERPROFILE%\\Saved Games\\DCS.dcs_serverrelease' # The path to your saved games directory.
5556
missions_dir: '%USERPROFILE%\Documents\Missions' # You can overwrite the default missions dir like so. Default is the Missions dir below the instance home folder.
5657
mission_rewrite: false # Disable rewrite of missions by MizEdit or RealWeather. The server will be stopped for any mission change then. (default: true)
@@ -60,14 +61,14 @@ NODENAME: # this will usually be your hostname
6061
max_hung_minutes: 3 # Let DCSServerBot kill your server if it is unresponsive for more than x minutes. Default is 3. Disable it with 0.
6162
# affinity: 2,3 # Optional: set the CPU-affinity for the DCS_Server.exe.
6263
priority: normal # Optional: set the process priority (low, normal, high, realtime) for the DCS_Server.exe
63-
extensions: # See the extension documentation for more detailed information on what to set here.
64+
extensions: # See the extension documentation for more detailed information on what to set here.
6465
SRS:
6566
config: '%USERPROFILE%\Saved Games\DCS.dcs_serverrelease\Config\SRS.cfg' # it is recommended to copy your SRS "server.cfg" below your instances home directory.
6667
host: 127.0.0.1 # SRS servers local IP (default is 127.0.0.1)
6768
port: 5002 # SRS servers local port (default is 5002). The bot will change this in your SRS configuration if set here!
6869
autostart: true # this will autostart your DCS server with the DCS server start (default: true)
69-
autoupdate: true # This will auto-update your SRS servers. Default is false, you need to run the bot as Administrator to make it work!
7070
Tacview:
7171
show_passwords: false # If you don't want to show the Tacview passwords (default: true)
72-
# instance2: # you can have an unlimited number of instance configurations, but each instance has to have a physical representation on your disk.
73-
# ...
72+
# instance2: # you can have an unlimited number of instance configurations, but each instance has to have a physical representation on your disk.
73+
# ...
74+
use_upnp: false

samples/plugins/creditsystem.yaml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,45 @@
88
# instance the SlotBlocking-plugin, that can block slots by #
99
# credits. #
1010
##############################################################
11-
DEFAULT: # valid for all servers
11+
DEFAULT: # valid for all servers
1212
initial_points: 10 # The initial points a player gets (default = 0).
1313
max_points: 100 # The maximum points a player can get (default = unlimited).
1414
multiplier: 1 # multiplier for credit points on proper landings (if payback is enabled in slotblocking.yaml)
1515
squadron_credits: true # enable squadron credits (see below).
16-
points_per_kill: # How many points do players get when they kill another unit?
17-
- default: 1 # You get at least one point (default = 0).
18-
- category: Ships # If you kill a ship. you get 2 points
19-
points: 2
20-
- category: Air Defence
21-
points: 3
22-
- category: Planes
23-
type: AI # for planes and helicopters you can decide whether you killed an AI or a human player
24-
points: 3
25-
- category: Planes
26-
type: Player
27-
points: 4
28-
- category: Planes
29-
type: Player
30-
unit_type: F-14B # you can specify the unit_type, unit_name, group_name as another differentiation
31-
points: 5
32-
- category: Helicopters
33-
points: 3
34-
achievements: # OPTIONAL: you can give players Discord roles according to their achievements
35-
- credits: 0
36-
playtime: 0 # Playtime is in hours
37-
role: Rookie # Initially, with 0 credits and 0 playtime, you get the role "Rookie" (has to be in Discord)
38-
- credits: 50
39-
playtime: 25
40-
role: Veteran # to get the Veteran role, you have to have EITHER 50 credit points OR a playtime of 25 hrs
41-
- credits: 100
42-
playtime: 50
43-
combined: true # you need to have 100 credit points AND a playtime of more than 50 hrs to get the "Ace" role
44-
role: Ace
45-
leaderboard: # Simple leaderboard, persistent, displayed in a channel of your choice
16+
points_per_kill: # How many points do players get when they kill another unit?
17+
- default: 1 # You get at least one point (default = 0).
18+
- category: Ships # If you kill a ship. you get 2 points
19+
points: 2
20+
- category: Air Defence
21+
points: 3
22+
- category: Planes
23+
type: AI # for planes and helicopters you can decide whether you killed an AI or a human player
24+
points: 3
25+
- category: Planes
26+
type: Player
27+
points: 4
28+
- category: Planes
29+
type: Player
30+
unit_type: F-14B # you can specify the unit_type, unit_name, group_name as another differentiation
31+
points: 5
32+
- category: Helicopters
33+
points: 3
34+
achievements: # OPTIONAL: you can give players Discord roles according to their achievements
35+
- credits: 0
36+
playtime: 0 # Playtime is in hours
37+
role: Rookie # Initially, with 0 credits and 0 playtime, you get the role "Rookie" (has to be in Discord)
38+
- credits: 50
39+
playtime: 25
40+
role: Veteran # to get the Veteran role, you have to have EITHER 50 credit points OR a playtime of 25 hrs
41+
- credits: 100
42+
playtime: 50
43+
combined: true # you need to have 100 credit points AND a playtime of more than 50 hrs to get the "Ace" role
44+
role: Ace
45+
leaderboard: # Simple leaderboard, persistent, displayed in a channel of your choice
4646
channel: 112233445566778899
4747
limit: 10 # max number of entries to be shown
48-
DCS.server: # valid for a specific server
49-
initial_points: # different initial points can be specified for different Discord roles
50-
- discord: Donator
51-
points: 15
52-
- default: 10
48+
DCS.dcs_serverrelease: # valid for a specific server
49+
initial_points: # different initial points can be specified for different Discord roles
50+
- discord: Donator
51+
points: 15
52+
- default: 10

samples/plugins/mission.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ DEFAULT:
33
enabled: true # Here you can disable the feature at all (default: true = enabled)
44
discord:
55
- DCS Admin # Define which roles are allowed to upload missions (default: DCS Admin)
6-
afk_exemptions: # List of UCIDs that are exempted from AFK kicks (besides the users that have the DCS Admin or GameMaster role)
7-
ucid:
8-
- aabbccddeeff1122334455

samples/plugins/srs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
DEFAULT:
22
message_no_srs: You need to use SRS to play on this server!
3-
enforce_srs: true # block slots until SRS is activated
4-
move_to_spec: true # move people back to spectators, if they leave SRS (only if enforce is true)
3+
enforce_srs: true # Block slots until SRS is activated. People can not use slots, if not on SRS!
4+
move_to_spec: true # Move people back to spectators if they leave SRS (only if enforce is true)

0 commit comments

Comments
 (0)