Repository navigation
Conversation
- [ADD] prepare_linux_game_dir.py: builds a hardlinked game dir with lower-case engine paths and original-case Python trees, so the Linux server runs without ciopfs. - [ADD] run_server, run_game, run_game_join_server launchers for Ubuntu 24.04 / ZorinOS with shared settings in run_common; servers pick the first free port set from 16568 unless BF2_PORT is given. - [EDIT] docs/building.md: document the Linux game directory and the launchers.
- [EDIT] Move launchers from Code/Tests/run_* to Code/Tools/linux as server.sh, game.sh, play.sh and common.sh. - [ADD] game.sh sets the missing CD-key registry value that crashes retail BF2.exe on join, skips intro movies without touching checksummed files, and runs fullscreen at desktop resolution. - [ADD] game.sh keeps a single local account with a name prompt and delete confirmation, or BF2_PLAYER_NAME. - [ADD] Launchers check for missing programs and print the apt install command. - [FIX] play.sh detects a crashed server, works without TERM, and stops the server cleanly before returning. - [FIX] prepare_linux_game_dir.py copies files under 1 MiB instead of hard-linking, so the game never rewrites the install. - [EDIT] docs/building.md: quick start for playing on the Linux server with plain Wine, and why each step is needed.
- [FIX] docs/building.md: add the i386 architecture, wine32:i386 and git to the apt install command. - [ADD] game.sh stops with the install command when the 32-bit Wine package is missing.
Author
|
Info: i have tested the server on Ubuntu Desktop 24.04 and 26.04, both x64. Server runs as expected. Not tested with more than one plyer on the server. |
- [FIX] prepare_linux_game_dir.py skips symlinks, so a stray dangling link in a copied install no longer aborts it. - [EDIT] docs/building.md notes that the server part was also tested on a clean Ubuntu 26.04.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is my first try letting the server run completely on linux (Zorin OS 18.1Core, based on Ubuntu 24.04). I also put the game client files for 1.50_Win Version.
This enables users on linux tooling and documentation to run the native Linux dedicated server and join it with the
unmodified retail client under plain Wine
Think about it as a very early launcher.
You can start the script directly and it will check if you have wine32:i386 installed. If not, you can install it directly from the script. When everything is set up, you can set your username and the client will start. It will always use only 1 username for somplicity.
You can also start the server and let clients join. Everything is working but i havent tested it on a plain ubuntu 24.04 desktop or zorinOs. will do it in the next days hopefully