Skip to content

advertiseGame

advertiseGame(gameServerSteamId, ip, port): void

Publishes a game server’s address so friends can join this game. Steam replicates the data to friends. Needs init(). This sends data to Steam. ip is passed as the 32-bit value of the IPv4 address (first octet in the highest byte). The header does not say which byte order the SDK expects, so this mapping is unverified against a live Steam client. Throws when gameServerSteamId is not a valid BigInt or ip is not an IPv4 address.

bigint

the game server’s SteamID as a BigInt.

string

the IPv4 address of the game server, such as “192.168.1.10”.

number

the game server’s port.

void

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.