Skip to content

feat(lobby): Add the /net chat command for the relay and connection engine settings - #666

Open
tintinhamans wants to merge 27 commits into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/go/stack2/11-net-chat-command
Open

tintinhamans wants to merge 27 commits into
GeneralsOnlineDevelopmentTeam:mainfrom
tintinhamans:arctic/go/stack2/11-net-chat-command

Conversation

@tintinhamans

@tintinhamans tintinhamans commented Oct 25, 2026 •

Copy link
Copy Markdown

Merge after #665.

/net shows the settings for the next lobby mesh and the current route and ping to each player. /net relay force|auto requires relay connections or follows the service policy, and /net engine native|webrtc|auto selects a connection engine or follows the service choice. Without a value they show the setting and usage. Both apply when the next lobby mesh is created, existing connections are unchanged. /net reset clears both overrides. /forcerelay and /allowrelay stay as aliases for /net relay force and /net relay auto. The command works in the lobby and the game setup chat.

Forced relay keeps its own lobby group by xoring the real executable CRC with a constant, instead of the old fixed 123456. Repeating force does not replace the saved CRC, and auto and reset restore it only when relay was forced. The engine setting never changes the CRC.

It reads connection.relay_only and connection.ice_engine from the service config for the status lines and in the NetworkMesh constructor, where the override wins. The overrides replace the g_bForceRelay global.

Tested: builds x86 Release z_generals.

xezon added 7 commits October 24, 2026 23:10
…ile::getFileInfo(), StdBIGFile::getFileInfo() (TheSuperHackers#3415)

(cherry picked from commit b805c12)
…File (TheSuperHackers#3505)

Both classes are identical apart from their name and contain no platform specific code.
Nothing in them depends on the BIG format either: they open a file from an offset and a
size inside the archive file. ArchiveFile takes over their functions and is no longer an
abstract class.

(cherry picked from commit 52a777a)
…ystem into BIGFileSystem (TheSuperHackers#3505)

Both classes are identical apart from their name and go through the local file system
for all file access. The one class that remains sits next to ArchiveFileSystem in
Core/GameEngine.

(cherry picked from commit e4b4d1e)
…e loadBigFilesFromDirectory (TheSuperHackers#3505)

loadMods refers to BIG files, which nothing else in ArchiveFileSystem does. It becomes a
virtual function that BIGFileSystem implements. loadBigFilesFromDirectory is renamed to
loadArchiveFilesFromDirectory, because the base class is not tied to one archive format.

(cherry picked from commit f299561)
@tintinhamans
tintinhamans force-pushed the arctic/go/stack2/11-net-chat-command branch 2 times, most recently from 01c3a31 to ebf29ff Compare October 25, 2026 12:54
@tintinhamans
tintinhamans force-pushed the arctic/go/stack2/11-net-chat-command branch from ebf29ff to 86d53de Compare October 26, 2026 15:39
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.

2 participants