Difference between revisions of "IS AII"
From LFS Manual
Jump to navigationJump to searchBokujishin (talk | contribs) (Created page with "== Introduction == The '''AI''' '''I'''nfo packet is used to get information about an AI car. {| class="wikitable" |+ IS_AII packet properties |- ! Type !! Name !! Descripti...") |
|||
| Line 1: | Line 1: | ||
| − | == | + | {{Infobox InSim packet |
| + | | description = Info about AI car | ||
| + | | size = 96 | ||
| + | | type_key = ISP_AII | ||
| + | | type_value = 69 | ||
| + | | direction = in | ||
| + | | prev = [[IS_AIC]] | ||
| + | }} | ||
The '''AI''' '''I'''nfo packet is used to get information about an AI car. | The '''AI''' '''I'''nfo packet is used to get information about an AI car. | ||
| + | |||
| + | == Packet details == | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 40: | Line 49: | ||
| unsigned || SPU3 || | | unsigned || SPU3 || | ||
|} | |} | ||
| − | |||
| − | |||
=== Size === | === Size === | ||
| Line 84: | Line 91: | ||
The dash lights currently switched on (see [[InSim_enumerations#DL|DL_]] enumeration). | The dash lights currently switched on (see [[InSim_enumerations#DL|DL_]] enumeration). | ||
| + | |||
| + | {{InSim packets}} | ||
[[Category:InSim packets]] | [[Category:InSim packets]] | ||
Latest revision as of 11:37, 14 February 2026
| IS_AII | |
|---|---|
| Info about AI car | |
| Overview | |
| Size | 96 |
| Type | ISP_AII (69) |
| Usage | info |
| Previous packet IS_AIC |
|
The AI Info packet is used to get information about an AI car.
Packet details
| Type | Name | Description |
|---|---|---|
| byte | Size | 96 |
| byte | Type | ISP_AII |
| byte | ReqI | ReqI from the SMALL_AII request packet |
| byte | PLID | |
| OSMain | OSData | |
| byte | Flags | AIFLAGS_x below |
| byte | Gear | Reverse:0, Neutral:1, First:2... |
| byte | Sp2 | |
| byte | Sp3 | |
| float | RPM | RPM |
| float | SpF0 | |
| float | SpF1 | |
| unsigned | ShowLights | Dash lights currently switched on (see DL_x in OutGauge section below) |
| unsigned | SPU1 | |
| unsigned | SPU2 | |
| unsigned | SPU3 |
Size
The size of the packet is always 96 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_AII.
ReqI
The value is the same as the one set in the packet request (IS_AIC with CS_SEND_AI_INFO or SMALL_AII).
PLID
The unique ID of the AI driver.
OSData
Identical to the data found in OutSimMain, this contains the car's position, velocity, acceleration, orientation, and angular velocity, all as vectors of floats (or ints for position).
Flags
A combination of the following AI flags:
#define AIFLAGS_IGNITION 1 // detect if engine running // #define AIFLAGS_CHUP 4 // upshift lever currently held #define AIFLAGS_CHDN 8 // downshift lever currently held
Gear
The current gear, where 0 is reverse, 1 is neutral, 2 and up are the forward gears.
RPM
The current RPM of the engine.
ShowLights
The dash lights currently switched on (see DL_ enumeration).
| Initialisation | IS_ISI | ||
|---|---|---|---|
| Version Information | IS_VER | ||
| General Purpose | IS_TINY · IS_SMALL · IS_TTC | ||
| State Reporting and Requests | IS_STA · IS_SFP · IS_ISM | ||
| Text Messages and Key Presses | IS_SCH · IS_MSO · IS_III · IS_MST · IS_MTC · IS_MSX · IS_MSL | ||
| Voting | IS_VTN | ||
| Race Tracking | IS_RST · IS_REO | ||
| Autocross | IS_AXI · IS_AXO · IS_UCO · IS_OCO · IS_AXM | ||
| Connection Tracking | IS_NCN · IS_CNL · IS_CPR · IS_ACR · IS_NCI · IS_SLC · IS_CIM | ||
| Car Tracking | IS_NPL · IS_PLP · IS_PLL · IS_LAP · IS_SPX · IS_PIT · IS_PSF · IS_PLA · IS_PEN · IS_TOC · IS_FLG · IS_PFL · IS_FIN · IS_RES · IS_NLP · IS_MCI · IS_CRS · IS_CON · IS_OBH · IS_HLV · IS_CSC | ||
| Camera Control | IS_SCC · IS_CPP | ||
| Replay Control | IS_RIP | ||
| Screenshots | IS_SSH | ||
| InSim Buttons | IS_BFN · IS_BTN · IS_BTC · IS_BTT | ||
| AI Control | IS_AIC · IS_AII | ||
| Other packets | IS_MOD · IS_CCH · IS_PLC · IS_HCP · IS_JRR · IS_MAL · IS_PLH · IS_IPB | ||