This wiki is archived from 2021-09-05

Planetary Annihilation net API

From Planetary Annihilation: TITANS and Classic PA Wiki
Revision as of 07:33, 6 April 2016 by Admin (talk | contribs)
Jump to navigation Jump to search

File:Titans-icon.png Planetary Annihilation net API

api.net.startGame( region, mode )

create a new local or Uber game:

  • region: local or valid Uber region string
  • mode: Config or gw optionally prefixed with content eg PAExpansion1:Config for Titans

returns object with:

  • LobbyId (string)
  • ServerHostname (string)
  • ServerPort (string)
  • Ticket (string)
  • Expires (string)

api.net.joinGame( params )

joins an Uber game based on a lobbyId:

  • lobbyId (string)
  • all other params are ignored

returns object with:

  • ServerHostName
  • ServerPort

and if lobbyId resolved:

  • LobbyId
  • Ticket
  • Expires

and if delayed:

  • PollWaitTimeMS


api.net.connect( params )

joins an Uber game based on a lobbyId:

  • lobbyId (string)
  • all other params are ignored

returns object with:

  • ServerHostName
  • ServerPort