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/CatalogUpload
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 = CatalogUpload | id = 22 | hex = 0x16 | direction = c2s | session = [[SimTX API v24/Extension catalog protocol|Control (catalog)]] | size = Variable | permission = <code>catalog.publish</code> | reply = [[SimTX API v24/Packets/CatalogUploadResult|CatalogUploadResult]] | group = catalog }} '''CatalogUpload''' publishes an extension or preset to the server's [[SimTX API v24/Extension catalog protocol|extension catalog]], or publishes a new revision of an entry the account already owns. It requires an authenticated control session whose account holds <code>catalog.publish</code>. The server answers with [[SimTX API v24/Packets/CatalogUploadResult|CatalogUploadResult]]. == Layout == {| class="wikitable" ! Field !! Type !! Description |- | <code>packetId</code> || <code>u8</code> || Always <code>22</code>. |- | <code>kind</code> || <code>UTF</code> || <code>extension</code> or <code>preset</code>. At most 16 characters. |- | <code>name</code> || <code>UTF</code> || Entry name, 1β64 characters after trimming. |- | <code>description</code> || <code>UTF</code> || At most 500 characters. |- | <code>categoryCount</code> || <code>i32</code> || 0β12. |- | <code>categories</code> || <code>categoryCount Γ UTF</code> || Each 1β32 characters, no commas or control characters. |- | <code>fileCount</code> || <code>i32</code> || 1β64 (presets: exactly 1). |- | <code>files</code> || <code>fileCount Γ { UTF path, UTF content }</code> || Path at most 128 characters; content at most 60,000 characters and 60,000 UTF-8 bytes. |} == Validation == The server checks the upload against the rules in [[SimTX API v24/Extension catalog protocol#Upload rules|Upload rules]] and reports the first problem it finds in [[SimTX API v24/Packets/CatalogUploadResult|CatalogUploadResult]]. Field lengths beyond the limits in the layout above close the connection instead, because the server stops reading the packet. Without <code>catalog.publish</code>, the body is read and discarded, and the result is ''Publishing requires catalog.publish''. == Revisions == Uploading an entry with the name of an entry the same account already owns replaces it: the ID stays the same and the revision increases. Names are compared without regard to case. {{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
)