Skip to content

Range.network.steam

Anastacio Engine module Range.network.steam. Also available as bge.network.steam.

These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.

new in Anastacio function

Checks a Steam achievement by its API name; with unlock=True, unlocks it.

Returns: bool

new in Anastacio function

Route of each connected player: dicts with peer, steam_id and route ('direct', 'relay' or 'unknown'). Empty without players.

Returns: list

new in Anastacio function

With True, turns off direct connection and forces Steam relay servers. Call after initialize() and before opening the session.

new in Anastacio function

Loads the optional AnastacioSteam.dll add-on (absolute path) with the game AppID (1 to 4294967295). Windows 64-bit only, with the game running; not available on the Web. The multiplayer component does this by itself when enable_steam is on.

new in Anastacio function

Game language chosen in Steam (e.g. 'brazilian'); empty without Steam.

Returns: str

new in Anastacio function

Takes the pending lobby and invite events. Each item is a dict with type, lobby_id, host_id, port, members, capacity, name and detail.

Returns: list

new in Anastacio function

Unloads Steam. Disconnect the session first. Closing the game also unloads it.

new in Anastacio function

{'loaded': bool, 'ready': bool, 'steam_id': int}: whether the DLL loaded, whether Steam is ready, and the player SteamID.

Returns: dict