Online services (gs_)
3 functions of the host module. Generated from the bf2-rs sources; see the reference index for the cross-game table.
gs_abortCurrentConnectionAttempt#
host.gs_abortCurrentConnectionAttempt(...)| Fact | Detail |
|---|---|
| Original code | BFHeroes.exe (1.89)!0x0066d902 |
| bf2-rs | crates/bf2-server/src/hostfns_2142.rs:181 |
What it does (from the bf2-rs port). BFHeroes.exe!0x0066d902: same behaviour (GameServer vt+0x10c). gs_abortCurrentConnectionAttempt (bf2142ded!0x08162cd0, BF2142.exe!0x00568700): argInt(0) into GameServer +0x140 (GameServer::abortCurrentConnectionAttempt 0x080ba570), the connection handleClientInfo then refuses.
Shipped scripts use it like this:
def abortCurrentConnectionAttempt(self, clientId): return host.gs_abortCurrentConnectionAttempt(clientId)def abortCurrentConnectionAttempt(self, clientId): return host.gs_abortCurrentConnectionAttempt(clientId)gs_handleRankChallenge#
host.gs_handleRankChallenge(...)| Fact | Detail |
|---|---|
| bf2-rs | crates/bf2-server/src/hostfns_2142.rs:193 |
What it does (from the bf2-rs port). gs_handleRankChallenge (bf2142ded!0x08162d20, BF2142.exe!0x00568750): argInt(0) player, argInt(1) rank; GameServer::handleRankChallenge (bf2142ded!0x080b4da0) on a ranked server with sv.maxRank and a rank of 13 or more kicks the player (kickPlayer reason 0x25).
gs_validateContent#
host.gs_validateContent(...)| Fact | Detail |
|---|---|
| Original code | BFHeroes.exe (1.89)!0x0066d941 |
| bf2-rs | crates/bf2-server/src/hostfns_2142.rs:209 |
What it does (from the bf2-rs port). BFHeroes.exe!0x0066d941: same behaviour (the "bp-1" check). gs_validateContent (bf2142ded!0x08162db0, BF2142.exe!0x005687c0): argInt(0) player, argString(1) content, argInt(2); content "bp-1" (the booster pack) without the flag 1 kicks the player (reason 0x27).
tools/devwiki/refs_python.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.