SimTX API/Packets/CatalogEntry: Difference between revisions
Appearance
Clanker moved page SimTX API/Packets/CatalogEntry to SimTX API v24/Packets/CatalogEntry: Archive the v24 protocol reference Tag: New redirect |
Remove development history and server internals |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
# | {{SimTX API navigation}} | ||
{{SimTX packet | |||
| name = CatalogEntry | |||
| frame = ServerFrame | |||
| field = 37 | |||
| member = catalog_entry | |||
| direction = s2c | |||
| session = [[SimTX API/Extension catalog protocol|Control (catalog)]] | |||
| roles = <code>ROLE_CONTROL</code>. | |||
| permission = None | |||
| answers = [[SimTX API/Packets/CatalogFetch|CatalogFetch]] | |||
| group = catalog | |||
| file = control.proto | |||
}} | |||
'''CatalogEntry''' returns the files of one catalog entry requested with [[SimTX API/Packets/CatalogFetch|CatalogFetch]]. An unknown entry is answered with [[SimTX API/Packets/Error|Error]] instead. | |||
== Definition == | |||
<syntaxhighlight lang="protobuf"> | |||
message CatalogEntry { | |||
reserved 3; | |||
int64 request_id = 1; | |||
int32 entry_id = 2; | |||
string kind = 4; | |||
string name = 5; | |||
int32 revision = 6; | |||
repeated CatalogFile files = 7; | |||
} | |||
</syntaxhighlight> | |||
== Fields == | |||
{| class="wikitable" | |||
! # !! Field !! Type !! Description | |||
|- | |||
| 1 || <code>request_id</code> || <code>int64</code> || The request this answers. | |||
|- | |||
| 2 || <code>entry_id</code> || <code>int32</code> || The entry ID. | |||
|- | |||
| 4 || <code>kind</code> || <code>string</code> || <code>extension</code> or <code>preset</code>. | |||
|- | |||
| 5 || <code>name</code> || <code>string</code> || Entry name. | |||
|- | |||
| 6 || <code>revision</code> || <code>int32</code> || Revision number. | |||
|- | |||
| 7 || <code>files</code> || <code>repeated</code> [[SimTX API/Data types#CatalogFile|CatalogFile]] || The entry's files, at most 1,000. | |||
|} | |||
Field number 3 is reserved; do not use it. | |||
== Usage == | |||
* For an extension, the files form a package as described in [[Lua extension manifest]]. Install it by writing each file to its path below an extension directory. | |||
* For a preset, there is exactly one <code>.stxpreset</code> file. | |||
== See also == | |||
* [[SimTX API/Packets/CatalogFetch|CatalogFetch]] | |||
{{SimTX API navbox}} | |||
[[Category:SimTX API]] | |||
Latest revision as of 17:16, 24 October 2026
| Frame | ServerFrame, field 37
|
|---|---|
| Member | catalog_entry
|
| Direction | Server → client |
| Session | Control (catalog) |
| Roles | ROLE_CONTROL.
|
| Permission | None |
| Answers | CatalogFetch |
| Defined in | control.proto
|
CatalogEntry returns the files of one catalog entry requested with CatalogFetch. An unknown entry is answered with Error instead.
Definition[edit | edit source]
message CatalogEntry {
reserved 3;
int64 request_id = 1;
int32 entry_id = 2;
string kind = 4;
string name = 5;
int32 revision = 6;
repeated CatalogFile files = 7;
}
Fields[edit | edit source]
| # | Field | Type | Description |
|---|---|---|---|
| 1 | request_id |
int64 |
The request this answers. |
| 2 | entry_id |
int32 |
The entry ID. |
| 4 | kind |
string |
extension or preset.
|
| 5 | name |
string |
Entry name. |
| 6 | revision |
int32 |
Revision number. |
| 7 | files |
repeated CatalogFile |
The entry's files, at most 1,000. |
Field number 3 is reserved; do not use it.
Usage[edit | edit source]
- For an extension, the files form a package as described in Lua extension manifest. Install it by writing each file to its path below an extension directory.
- For a preset, there is exactly one
.stxpresetfile.