Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
SimTX Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
SimTX API v24/Packets/Banner
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{SimTX API v24 navigation}} {{SimTX packet v24 | name = Banner | id = 17 | hex = 0x11 | direction = s2c | session = [[SimTX API v24/Control session|Control]] | size = 11 + text length | permission = None | group = control }} '''Banner''' carries a server-wide notice for control clients to display, such as planned maintenance, a performance warning, or a ban notice. The server sends it when a control session starts, if a notice is active, and pushes it to every control session whenever a notice is set, replaced or cleared. == Layout == {| class="wikitable" ! Field !! Type !! Description |- | <code>packetId</code> || <code>u8</code> || Always <code>17</code>. |- | <code>level</code> || <code>u8</code> || <code>0</code> = information, <code>1</code> = ban notice. |- | <code>text</code> || <code>UTF</code> || Notice text, at most 512 characters. Empty means ''clear the current notice''. |- | <code>expiresAtEpochMillis</code> || <code>i64</code> || Unix time in milliseconds after which the notice should be hidden. <code>0</code> means no expiry. |} == Usage == * Show the text prominently, replacing any earlier banner. Each Banner supersedes the previous one. * Hide the banner when <code>text</code> is empty. * Hide it at <code>expiresAtEpochMillis</code>. The server does not send a clearing banner when a notice expires. * A level 1 banner is sent to control sessions from an address that has just been banned. The text explains the ban. Those control sessions stay connected so that the user can read it; new game connections from the address are refused. * The server also posts short automatic notices when it is overloaded. They clear themselves after about a minute. {{SimTX API v24 navbox}} [[Category:SimTX API v24]]
Summary:
Please note that all contributions to SimTX Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
SimTX Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:SimTX API v24 navbox
(
edit
)
Template:SimTX API v24 navigation
(
edit
)
Template:SimTX packet v24
(
edit
)