Profile image

Flight Recorder

113k hpgbproductions  4.3 years ago
8,151 downloads
Version 1.1 Tool

Dev Notes: Please read the "Notice about Data Sets" section, and the Commands Reference.

Flight Recorder (FLTREC) is a tool to save and load aircraft movement and control inputs. Through dev console commands, you can record yourself operating your machine, and replay and save it.

Numerous settings can be changed through the dev console, from recording quality to preview colors. These settings are autosaved when the game is closed. The Commands Reference provides information on every action and settings command included in the mod.

Demonstration - Loading, previewing, and playback of previously saved data
SharkTooth.FRC (movement data set only)

Notice about Download Options:
- The Source Code function is a link to the GitHub repository containing the assets and FLTSCR companion program. The reference material may be viewed there.

Warning! This mod contains file I/O functionality. To avoid the loss of any data, please do not use the NACHSAVE folder other than for storing mod files.

If you find any issues, please provide details in the comments.

Version 1.1 >
- [Addition] Added a command that prints the current settings to the dev console
- [Improvement] Optimization on recording when not all data sets are enabled
- Notice: Recording and settings file formats have NOT been changed. All recordings made on V1.0 or FLTSCR will be natively compatible with V1.1.

Version 1.0 >
- Initial release

What can you do with FLTREC?

  • Record videos without having to operate the aircraft and camera at the same time
  • Map and view flight paths
  • Create and share aircraft control macros

Notice about Data Sets:
This program splits the list of recorded information into four categories:
- M (Movement): Position and rotation. Default ON.
- S (Standard): Basic control axes, Throttle, and Brake. Default ON.
- E (Extra): Trim and VTOL sliders, and landing gear. Default OFF.
- A (Advanced): Weapons and activation groups. Default OFF.

Recording settings will determine which data sets are recorded. This setting is saved in each recording. During playback, this information is checked. A recorded data set will be locked from player input during playback.

The following information cannot be recorded:
- Start values of disabled data sets
- Switching of weapons, targets, or combat mode

Get Started

This will help you to familiarize yourself with FLTREC.
1. Install the mod and enter a map.
2. Use the dev console and run the command FltRec_Record. Fly around and this will be recorded.
3. Run FltRec_Stop, then FltRec_Preview. Your flight path will appear.
4. Run FltRec_Play. Your aircraft will follow the path from the beginning, and the main aircraft controls move accordingly.
5. Run FltRec_Save and enter a file name. Only use alphanumeric characters or underscores.
6. Close the game, then re-open it. Try to run FltRec_Play. You will notice that there is no replay data to load.
7. Run FltRec_Load with the same file name as in step 5, then run FltRec_Play. The effect is the same as in step 4.
8. You are ready to start using FLTREC! Take a look at the Commands Reference to view settings and gain access to more functionality.

Additional Software

The Flight Scripter (FLTSCR) companion program (downloadable separately) may be used to create macros from code. You will get greater control over timing and input precision. Check out the FLTSCR Reference for more information.

Known Issues

  • Aircraft sometimes suddenly enters a spin at the end of playback, if movement data is included.

  • Log in to leave a comment
  • Profile image

    [Recording Settings] FltRSet_RecordQuality (int size, int interval)
    - Recording quality.
    - size: Maximum number of data points that can be recorded before the recording is automatically stopped. Default 3000.
    - interval: Number of FixedUpdate frames between each recorded data point. Default 10.

    [Playback Settings] FltRSet_PlayDebug (bool active)
    - Show or hide the debug message during data playback. Useful for testing FLTSCR output data.
    - active: Debug message visibility. Default false.

    [Playback Settings] FltRSet_PlaySpace (bool pos, bool rot)
    - Set the space options for playback. If true, a start position and rotation in recording data is used. If false, the current position and rotation of the aircraft is used.
    - pos: Position relativity. Default true.
    - rot: Rotation relativity. Default true.

    [Previewer Settings] FltRSet_PreviewColor (float r, float g, float b, float a)
    - Color of the preview line.
    - r: Red. Default 0.
    - g: Green. Default 1.
    - b: Blue. Default 0.
    - a: Alpha (opacity). Default 0.5f.

    [Previewer Settings] FltRSet_PreviewQuality (float width, float interval, int cvert)
    - Other appearance factors of the preview line.
    - width: Line thickness. Default 0.5f.
    - interval: Recording's simulation time between each point of the preview. Default 0.1f.
    - cvert: Amount of rounding applied to corners. Default 0.

    3 days ago
  • Profile image

    @FlightClipper I use GitHub since I don't have any place to upload code or long info posts. Also, this mod is outdated and no longer supported by me. I would want to make a funky trees version but I haven't got to it yet.
    The following is the text from the GitHub link:


    Commands Reference

    Notice about Data Sets:
    This program splits the list of recorded information into four categories:
    - M (Movement): Position and rotation.
    - S (Standard): Basic control axes, Throttle, and Brake.
    - E (Extra): Trim and VTOL sliders, and landing gear.
    - A (Advanced): Weapons and activation groups.

    Recording settings will determine which data sets are recorded. This setting is saved in each recording. During playback, this information is checked. A recorded data set will be locked from player input during playback.

    The following information cannot be recorded:
    - Start values of disabled data sets
    - Switching of weapons, targets, or combat mode

    Commands

    [Actions] FltRec_ClearSet (char set)
    - Delete a data set from the currently loaded data.
    - set: Character corresponding to the data set. May be M, S, E, or A.

    [Actions] FltRec_Load (string filename)
    - Load a recording file into internal memory.
    - filename: File name.

    [Actions] FltRec_Play (void)
    - Play data currently in memory.

    [Actions] FltRec_Preview (void)
    - Generate a preview of the path taken. The data set M must be present. Note that the path is retained even if new data is loaded.

    [Actions] FltRec_Record (void)
    - Begin recording aircraft movement and inputs. Be sure to adjust recorder settings first.

    [Actions] FltRec_Save (string filename)
    - Save the data currently in memory to a file.
    - filename: File name.

    [Actions] FltRec_Stop (void)
    - Manually stop the current recording or playback.

    [Actions] FltRec_TogglePreview (void)
    - Toggle visibility of the preview. The preview must be generated first. Note that leaving the sandbox will automatically hide the preview.

    [Check Settings] FltRSet_Check (void) (added in V1.1)
    - Prints the current settings in the dev console.

    [Recording Settings] FltRSet_RecordControls (bool m, bool s, bool e, bool a)
    - Choose whether certain data sets are recorded.
    - m: Movement. Default true.
    - s: Standard. Default true.
    - e: Extra. Default false.
    - a: Advanced. Default false.

    [Recording Settings] FltRSet_RecordQuality (int size, int interval)
    - Recording quality.
    - size: Maximum number of data points that can be recorded before the

    3 days ago
  • Profile image

    @hpgbproductions And the GitHub is same, Chinese player can't see the GitHub, Our government is banned that site🤨

    3 days ago
  • Profile image

    @hpgbproductions Hello Sir/Madame,This mod is very good, But In China,All people can't use YouTube, So we can't see that video, And the Chinese player can't understand how to use this mod, please tell us in there, thanks.

    3 days ago
  • Profile image
    141 NGC543

    Can i have that plane

    1.1 years ago
  • Profile image

    @hpgbproductions thanks

    1.2 years ago
  • Profile image

    @Cisccinoje when there are multiple arguments, they are separated by spaces, e.g.,
    FltRSet_RecordControls false false false true

    1.2 years ago
  • Profile image

    @hpgbproductions but i can't get it to works it says unvalid number of commands

    1.2 years ago
  • Profile image

    @Crypter no mom it's only 10.30 am

    1.2 years ago
  • Profile image

    @hpgbproductions go to sleep... Sweet dreams

    1.2 years ago
  • Profile image

    @Cisccinoje check commmands reference --> FltRSet_RecordControls

    1.2 years ago
  • Profile image

    @hpgbproductions and how to activate the a set? can u give me the command?

    1.2 years ago
  • Profile image

    @Cisccinoje AGs are in the A set. You cannot record explosions.

    1.2 years ago
  • Profile image

    @hpgbproductions Such As AG Commands

    1.2 years ago
  • Profile image

    @hpgbproductions how tho to record also explosion and parts deatachments?

    1.2 years ago
  • Profile image

    @Cisccinoje dev console command
    I went to update the quick start guide to clarify this

    1.2 years ago
  • Profile image

    @hpgbproductions how do i run it, where do i find the FltRec_Record????

    1.2 years ago
  • Profile image
    0 XYRUS

    this is really cool, but i have also that it is veeeery slow for something with many parts (at just over 1000 parts I got what, 1 fps)

    1.5 years ago
  • Profile image

    @FlyingPotato_131 i have no idea why but setting the aircraft's location every frame is just very laggy

    1.5 years ago
  • Profile image

    this is really cool, but it is veeeery slow for something with many parts (at just over 1000 parts I got what, 0.5fps?) and moving parts seem to be broken in places (though I haven't experimented enough to be sure)

    1.5 years ago
  • Profile image
    13.5k Mahoots

    @hpgbproductions aight, thanks for the answer tho and i do look forward to that next one

    1.6 years ago
  • Profile image

    @Mahoots unfortunately no
    I may or may not make a different recorder in the future that uses input controllers. (if other modders see this, you can do it too)

    1.6 years ago
  • Profile image
    13.5k Mahoots

    Does this also include weapon firing/launches, as well as AG activations?

    1.6 years ago
  • Profile image

    @ItapilotSP2023 uh yea ik I'm telling you to DEAL WITH IT you don't need any mods to have fun.

    1.6 years ago
  • Profile image

    @ItapilotSP2023 uh yea ik I'm telling you to DEAL WITH IT you don't need any mods to have fun.

    1.6 years ago
  • Log in to see more comments