Skip to content

feat: include config side in :VEHICLE:CREATE: command#82

Merged
fank merged 1 commit intomainfrom
feat/vehicle-create-side
Feb 23, 2026
Merged

feat: include config side in :VEHICLE:CREATE: command#82
fank merged 1 commit intomainfrom
feat/vehicle-create-side

Conversation

@fank
Copy link
Member

@fank fank commented Feb 23, 2026

Summary

  • Adds str side _x as index [6] to the _newVehicleData array sent via :VEHICLE:CREATE: to the extension
  • Provides the vehicle's configured faction side (WEST, EAST, GUER, CIV) at creation time

Context

Vehicles in the JSON export had side: "UNKNOWN" because :VEHICLE:CREATE: never included a side field. The web frontend derived vehicle side from crew members, but when crew was empty the side was null, rendering vehicles as black (dead) icons.

The per-frame :VEHICLE:STATE: already sends side at index [10], but the entity-level side was hardcoded to "UNKNOWN" in the extension's export builder since no creation-time side was available.

Companion PR

  • OCAP2/extension — parses the new field and uses it in JSON export

Test plan

  • Verify vehicles show correct faction color in playback even when crew is empty
  • Verify backward compatibility with older extension versions (new field is appended, not inserted)

Adds `str side _x` as index [6] to the vehicle creation data sent to the
extension. This provides the vehicle's configured faction side (WEST,
EAST, GUER, CIV) at creation time, so the extension and web frontend
can display correct faction colors for vehicles even when their crew is
empty.

Previously, vehicle side was only available per-frame in :VEHICLE:STATE:
(index 11), and the JSON export hardcoded it as "UNKNOWN" on the entity
definition. This caused vehicles to render as black (dead) icons
whenever no crew was present.
@gemini-code-assist
Copy link

Summary of Changes

Hello @fank, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses an issue where vehicle side information was missing during creation, causing vehicles to display incorrectly (e.g., as black icons) when their crew was empty. By including the vehicle's faction side in the initial :VEHICLE:CREATE: command, the system can now accurately represent vehicle affiliations from the outset, improving playback visualization and data consistency.

Highlights

  • Vehicle Creation Data: Added the vehicle's configured faction side (WEST, EAST, GUER, CIV) to the _newVehicleData array sent via the :VEHICLE:CREATE: command. This ensures vehicles have their correct side information from creation.
Changelog
  • addons/recorder/fnc_captureLoop.sqf
    • Appended the vehicle's side (str side _x) to the _newVehicleData array at index [7] for the :VEHICLE:CREATE: command.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request successfully adds the vehicle's side to the :VEHICLE:CREATE: command, which addresses the issue of vehicles appearing with an unknown side when empty in the playback UI. The implementation uses str side _x, which is consistent with the existing logic for units and provides the expected side string (e.g., "WEST", "EAST") to the extension. The change is straightforward and follows the repository's established patterns.

@fank fank merged commit 6e31c86 into main Feb 23, 2026
1 check passed
@fank fank deleted the feat/vehicle-create-side branch February 23, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant