onTransitionIn()Ĭalled when your activity is first becoming visible (including the initial set of them).' onTeamLeave()Ĭalled when a bs.Team leaves the activity. onTeamJoin()Ĭalled when a new bs.Team enters the activity onPlayerLeave()Ĭalled when a player is leaving the activity. Purpose in life is to hit zero references and die so the next activityĬalled for all new bs.Players (including the initial set of them). If your activity has created anything explicitly that may be retainingĪ strong reference to the activity and preventing it from dying, you onFinalize()Ĭalled when your activity is being finalized. Whatever is relevant to keep the game going. In this case the player should be given an extra life or This is called if a game supports and offers a continue and the playerĪccepts. Player to continue (or timeout) onBegin()Ĭalled once the previous bs.Activity has finished transitioning out.Īt this point the activity's initial players and teams are filled inĪnd it should begin its actual game logic. Returns whether or not this activity is currently waiting for the Returns whether onTransitionOut() has been called for this activity. Run, etc, and the activity should be considered to be a 'zombie'. The activity is set as finalized when shutting down.Īt this point no new nodes, timers, etc should be made, Returns whether onTransitionIn() has been called for this activity. Returns whether end() has been called for this activity. Returns whether onBegin() has been called for this activity. General message handling can be passed any message object. If the session no longer exists, returns None. Returns the bs.Session this activity belongs to. This time, unless 'force' is True, in which case the new results Further calls to end() will be ignored up until 'delay' is the time delay before the activity actually ends If continues are allowed, prompts the player to purchase a continueĪnd calls either endGame or continueGame depending on the result end()Įnd(self, results=None, delay=0, force=False)Ĭommences activity shutdown and delivers results to the bs.Session. Their constructor, but none of it should actually be used until they 'settings' should be a dict of key/value pairs specific to the activity.Īctivities should preload as much of their media/etc as possible in The activity will not be actually run until bs.tActivity() Methods:, continueOrEndGame(), end(), getSession(), handleMessage(), hasBegun(), hasEnded(), hasTransitionedIn(), isFinalized(), isTransitioningOut(), isWaitingForContinue(), onBegin(), onContinue(), onFinalize(), onPlayerJoin(), onPlayerLeave(), onTeamJoin(), onTeamLeave(), onTransitionIn(), onTransitionOut() Ĭreates an activity in the current bs.Session. Their own team in teams mode there are always 2 teams regardless of (at least in free-for-all mode where every player gets OnBegin() is called and is updated automatically as players join or The settings dict passed in when the activity was made. This gets populated justīefore onBegin() is called and is updated automatically as players Attributes: players, settings, teams players A bs.Session has one 'current' Activity atĪny time, though their existence can overlap during transitions. Happy modding!įunctions by Category: Game Flow Functions: If you come across something you feel should be included here or could be better explained, please let me know. Which are the ones most relevant to modding BombSquad. This page documents the Python classes and functions in the 'bs' module, last updated on for BombSquad version 1.4.153 build 14373 Since version 1.5, all BombSquad documentation can be found at. Is set once during the OUYA setup (Out Of Box Experience).This is out-of-date. GET parameters auth_tokenĭoes not seem to have any influence on the response. Usageĭuring the OUYA setup (Parameter oobe=true is set)Įvery 3 minutes unless an "Expires" header is set List the latest available firmware version. Ouya-Connection-Test HTTP response Status code The redirect location header seems to be ignored it does not get called.Ĭheck if the internet connection is working by fetching an empty file. Redirects to wpsuccess URL on with the OTT parameter. AcctName:Ĭredit card account holder name AcctNumber: Random one-time token from credit card POST request. Cookie2Ĭalled after fetching a one time token fromĪpplication/x-www-form-urlencoded User-Agent Probably hardware revision X-OUYA-Firmware-VersionįIXME: Why auth_token GET parameter when there are headers? Headers to ignore Cookie Serial number you see when running $ adb devices X-OUYA-Console-Wifi-MAC-Address The OUYA understands gzip compression Accept-LanguageĪuthentication token one got from logging in. The following HTTP headers are sent with nearly every HTTP requestįrom the OUYA console to the servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |