Overview
Sakuya AC is configured through theconfig.py file in the root directory. This file contains all server settings, feature flags, and integration options.
Logging Configuration
Sets the verbosity of server logs. Available levels:
DEBUG- Detailed information for diagnosing problemsINFO- General informational messages (recommended)WARN- Warning messages for potentially harmful situationsCRITICAL- Critical errors that may cause server failure
When submitting bug reports, always use
DEBUG level and include the logs.Server Configuration
The IP address or hostname of the native YSFlight server.
The port where the native YSFlight server is running.
This is the port of your actual YSFlight server, not the proxy port.
The port where Sakuya AC proxy server will listen for client connections.
Players should connect to this port instead of the native server port.
YSFlight Version Configuration
The version of your native YSFlight server.Tested with version
20150425. Other versions may work but are not officially supported.Enables the ViaVersion system to allow newer YSFlight clients to connect to older servers.
This feature is experimental. See Version Compatibility for details.
Player Experience
Message displayed to players when they join. Use Example output:
{username} as a placeholder for the player’s name.The character or string that prefixes chat commands.With
PREFIX = "/", players use commands like:/help/info/spawn
Anti-Cheat Features
G-force limit before a player is killed. When
abs(g) >= G_LIM, the player’s aircraft is destroyed.Set to a high value like
100 to effectively disable the G-limiter.Message displayed when health hacking is detected. The player’s name is automatically appended.
Damage System
Enables visual and functional damage effects when aircraft health is low.When enabled and health drops below
SMOKE_LIFE:- Aircraft emits black smoke
- Engine breakdown (no afterburner)
- Missiles cannot be fired
Health threshold below which smoke and damage effects are applied (only when
SMOKE_PLANE = True).Discord Integration
Enables Discord chat integration for bidirectional messaging between Discord and in-game chat.
See Discord Integration for setup instructions.
The Discord channel ID where messages will be synchronized.To get a channel ID:
- Enable Developer Mode in Discord (User Settings > Advanced)
- Right-click the channel
- Select “Copy Channel ID”
The bot must have permission to read and send messages in this channel.
Example Configuration
config.py
Troubleshooting
Server won’t start
- Verify
YSF_VERSIONmatches your YSFlight server - Check that
PROXY_PORTis not already in use - Ensure
SERVER_HOSTandSERVER_PORTare correct
Discord integration not working
- Install dependencies:
pip install -r requirements.txt - Verify bot has Message Content Intent enabled
- Check that
CHANNEL_IDis correct - Ensure bot has Read/Send Messages permissions
Players can’t connect
- Confirm they’re connecting to
PROXY_PORT, notSERVER_PORT - Check firewall settings for
PROXY_PORT - Review logs with
LOGGING_LEVEL = DEBUG