DSO_SERVER
Required client assets
Game client assets are not included in this repository. On Windows, run py -3 setup_client_assets.py after cloning. The script reads the official client’s local cache at %LOCALAPPDATA%\Temp\DSOClient, and extracts the compatible server data files into data/. It shows the source and destinations before continuing. It does not download the game or copy the client executable, DLLs, logs, or local session files.
The client asset extraction and startup setup have been tested with client revision rel261_192. Use matching client and server content revisions.
If %LOCALAPPDATA%\Temp\DSOClient contains downloaded .nb bundle files but is missing local assets, the setup script first runs tools/unpack_dso_bundles.py into data/client_unpacked/ (about 7 GB, git-ignored; the client folder is only read), then extracts the server data into data/. To let the official client read the files locally without an HTTP CDN service, add --client-cache: setup then unpacks into the client folder and its dlcache hierarchy instead (about 7 GB more there; dlcache\__root.txt is replaced and a copy kept as __root.txt.before-unpack). If the required bundles have not finished downloading, setup stops and asks you to finish the official client download. The script never downloads client files.
On other platforms, copy the following files and folders from a compatible client cache manually:
| Source |
Destination in this repository |
export_win32/db/static.db4 |
data/db/static.db4 |
Contents of export_win32/maps/ |
data/maps/ |
Contents of export_win32/navigation/ |
data/navigation/ |
export_win32/tables/navshapes.bin |
data/navigation/navshapes.bin |
The client’s language/ folder |
data/language/ |
The client’s binary quests.pbxml |
data/quests.pbxml and decoded data/quests.xml |
Copy the contents of the maps and navigation folders directly into their destinations. Do not create an extra nested maps/ or navigation/ folder. Preserve the navigation subfolder structure. navshapes.bin comes from the client’s tables/ folder.
The server and client must use matching content revisions. In particular, static.db4, map files, and navigation files must come from compatible versions. Do not copy backups (.bak, *backup*) or SQLite runtime sidecars (-wal, -shm). These client assets are excluded from Git by .gitignore and must be supplied locally. The setup script saves the client’s binary quests.pbxml as data/quests.pbxml and decodes its KCAP/BXML quest entries into data/quests.xml. An existing data/quests.xml is preserved by default; pass --overwrite-quests-xml to replace it with the newly decoded client data. If neither a quest XML nor a quest pack is available, the server starts with quest definitions disabled and prints a warning.
Installation and startup
Install the server from a clean clone in this order:
- Install 64-bit Python 3.12 or newer.
- Install the official Drakensang Online client and let it finish downloading and updating. Launch it once, wait until it finishes loading, then close it. Skip this step if
%LOCALAPPDATA%\Temp\DSOClient already contains a complete client cache.
- Clone this repository. On Windows, open the repository folder and run
py -3 setup_client_assets.py. If the cache contains raw bundles but not extracted assets, setup unpacks them into data/client_unpacked/ (or, with --client-cache, into %LOCALAPPDATA%\Temp\DSOClient) before preparing the server data.
- Review the source folder and destination paths printed by the setup script, then confirm. It extracts the server data, saves
data/quests.pbxml, and converts its quests to data/quests.xml. If an XML file already exists, it is kept; pass --overwrite-quests-xml to replace it. On other platforms, copy the assets listed above manually, or run python3 setup_client_assets.py --source <client-cache-folder> when the cache is available.
- Start the server with
start.bat on Windows or bash start.sh on Linux. On first start, the launcher creates .env from .env.example with DSO_HOST=127.0.0.1 and DSO_PUBLIC_HOST=127.0.0.1 if .env is absent. Local use needs no additional configuration. To accept remote players, edit .env, set DSO_HOST=0.0.0.0, and set DSO_PUBLIC_HOST to an address reachable by clients.
The server uses the R261_1024 command map by default (docs/command_ids_rel261_1024.json). To use release261_203, set DSO_COMMAND_IDS=docs/command_ids_rel261_203.json. For dro_client64-patch5 or an older DSOR client, set DSO_COMMAND_IDS=builtin and DSO_SKILL_HIT_MARKER_BITS=0 in .env.
The server provides the account registration/login API over HTTP on port 8080. The admin panel uses HTTP port 8081 and listens on loopback by default. Game services use UDP ports 80, 2190, 2191, and 2192. DSO_PUBLIC_HOST must be reachable by game clients.
Join the game with Launcher GUI
The Windows launcher provides account registration, sign-in, game startup, a
20-language interface with one saved language selection for both the launcher
and game client, and a responsive layout. Its activity feed shows the latest
commit and its full message from DSOR_Server’s main branch. Double-click
the message to open the commit on GitHub.
The Settings tab saves the server folder, server address, and selected game
client folder, and tests the account API connection. Choose the folder
containing app.py, setup_client_assets.py, and data/ as the server folder.
Unpack Client first
checks the cache’s NBI bundle references. After a second confirmation, it runs
setup_client_assets.py --client-cache to unpack into
the selected client folder and refresh server assets under data/. Existing
matching assets are replaced, obsolete map, navigation, and language files are
removed, and data/quests.xml is replaced from the client quest pack. The
operation can use about 7 GB of extra client-folder space. Keep the server
stopped while the asset files are being replaced. The launcher shows a
percentage progress bar during bundle extraction and server-data refresh.
When the local server is behind the GitHub DSOR_Server main branch, the
launcher offers an update after you confirm. A clean Git checkout uses a
fast-forward update. Git is not required for archive installations, and a Git
checkout with local changes also updates from the GitHub source archive. Any
existing files that differ from the downloaded version are backed up under
%LOCALAPPDATA%\DSORLauncher\update-backups before they are replaced. Local
files outside the GitHub archive, such as .env and client data, remain in
place. Restart the server after updating. The launcher must be in the server
folder to apply an update.
To open the launcher:
- Start the server with
start.bat and keep its window open.
- Open another terminal in the repository folder and run
py -3 launcher_gui.py.
- Open Settings. Enter
127.0.0.1 as the server IP when playing on the same computer as the server, or the reachable IP for a remote server. The account API uses port 8080 by default; include a custom port as IP:PORT if needed. The default client folder is %TEMP%\DSOClient\dlcache; use Browse to change it, then save. Test Connection checks the account API.
- To create an account, choose No account yet? Create one, enter a username and password twice, then click Create Account. The launcher signs in and starts the game after registration succeeds. For an existing account, enter the username and password and click Sign In. Check Remember account to save the account for later launches on this Windows user account.
- The launcher looks for
dro_client64.exe directly in the selected folder. For unpacking, selecting the dlcache folder uses its parent DSOClient cache as the source. It also checks the repository’s DSOClient/dlcache or Client/dlcache folders. The setup script does not copy the game executable.
Keep the server running while playing. If sign-in cannot connect, check that the server is running and that the launcher has the correct server IP and API port.
Build a standalone Windows launcher
Install Python 3.12 or newer with Tcl/Tk support on the build computer, then run
build_launcher.bat. It installs the PyInstaller build dependency and creates
DSORLauncher.exe in the repository’s top-level folder as a one-file,
windowed executable. Players do not need Python or the launcher’s .py modules
installed. For server updates and
Unpack Client, place the executable in the server folder containing
app.py and data/; extracted game assets are written to that server’s
data/ folder.
data/events.json starts with an empty event schedule. Events can be configured through the server’s admin panel.
Copyright, trademarks, and third-party material
This is an independent, unofficial research project. It is not affiliated with, endorsed by, or sponsored by Bigpoint GmbH or the owners of Drakensang Online. “Drakensang Online,” related names, logos, characters, artwork, music, client software, and game content remain the property of their respective rights holders. This repository does not claim ownership of or grant rights to that material.
Client files listed above are not distributed here. Do not commit or redistribute game client files, database dumps, maps, language files, account data, captures, or other third-party material unless you have the necessary rights and permission. Keep local-only assets out of Git. Repository privacy does not grant rights to third-party material.
The original code and architecture almost 90% of the actual project was made by S <3
评论