Skip to content

Introducing debian based Linux support with Username Account generator - #78

Open
pagea-dev wants to merge 4 commits into
B2BF:mainfrom
pagea-dev:feat/linux
Open

pagea-dev wants to merge 4 commits into
B2BF:mainfrom
pagea-dev:feat/linux

Conversation

@pagea-dev

Copy link
Copy Markdown

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

- [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.
@pagea-dev

Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant