DESCRIPTION

SR2LoggerPlus is a derivative of SR2Logger by WNP78.

The purpose of this mod is to send data from a Flight Program to an external receiver, or to a text file. This mod adds a part called "Orange Black Box Plus" in the Gizmo section. Once connected to your craft, you can add a Flight Program to the "Orange Black Box Plus." Any variables in that Flight Program starting with log_ will automatically be sent to the UDP receiver, and/or the specified log file. Also, if enabled, any log messages your Flight Program generates will be sent to the receiver and log file.

When using the log file, if you specify a relative path (not starting with a / on mac, or a C:\ on windows), the file will be saved to the location where SimpleRockets2 stores UserData, but you can also specify an absolute path. The directory you specify must already exist. The file name you specify will have the craft id added to it for uniqueness. If the file already exists data will be appended to it. If you prefer to use the UDP service, see the receiver.py script in the GitHub repository.

Note: the "Orange Black Box Plus" part starts out deactivated. It will not begin recording data until it is activated.

This "Orange Black Box Plus" has a few additional capabilities compared to the original "Orange Black Box":

  • There is now a part property setting for sampling frequency instead of using a special variable.
  • There is now a part property setting to enable logging to a file.
  • There is now a part property setting to include all log messages.
  • Variable sampling now works in time warp mode (with a scaled frequency).
  • A timestamp is now included with each sample.
  • The receiver script is now python 2.7 and 3 compatible, and outputs valid yaml documents.

Note: The default UDP port has changed to 2837 to avoid confusion.

GENERAL INFO

  • Mod Version: 0.2-beta
  • Required Juno: New Origins Version: 0.9.30x.x
  • Published: 5/6/2020
  • Downloads: 1118

DOWNLOADS

TAGS


13 Comments

  • Log in to leave a comment
  • Profile image

    Is there a way to read from log files to vizzy?
    I was hopping to log information and then display it later on mfds on another craft

    1.2 years ago
  • Profile image
    7,441 Hannah1212

    thanks, I just realized it does actually log components like I wanted it too, it just didn't work when I was using a vector variable passed through funk, but that's the game's problem. @sflanker

    +2 2.3 years ago
  • Profile image
    Mod sflanker

    @Hannah1212 should be doable. But I don't have a lot of time to work on this at the moment. Contributions welcome: https://github.com/sflanker/SR2Logger

    2.3 years ago
  • Profile image
    7,441 Hannah1212

    This is really nice, I got the python receiver working and I'm planning on using it to make some graphs. But one question, for variables that are vectors it seems to just take the length, is there a way to make it not do that or no? If not I'll just log the components individually.

    +1 2.3 years ago
  • Profile image
    3,494 vghfr

    Would it be possible to build a external map based off of raw trajectory data from the Orange Black Box

    2.5 years ago
  • Profile image
    Mod sflanker

    @thenewme I'm sorry to hear it's not going well. Are you trying to learn coding for writing mods (i.e. C#/Unity) or Vizzy? Let me know if there are any specific challenges you are struggling with. You can also try asking questions on the SimpleRockets Chat Discord.

    3.2 years ago
  • Profile image

    Hello. Would it be possible to have a video explaining how to set this up. I'm kinda really finding it difficult to do so. Thanks. Love your work by the way.

    3.5 years ago
  • Profile image
    8,398 crowxe

    lol..i got it now, i'll try it :)

    3.9 years ago
  • Profile image
    5,769 SelectAKey

    oh man this is probably the first real mod i would want for mobile.

    4.0 years ago
  • Profile image
    8,398 crowxe

    I've asked for something like this months ago, this a great tool, not just for accidents analysis lol but if I can put to spreadsheet then I can use equations for analysing things like atmospheric drag, fuel consumption efficacy and much more that I won't know until I start using this tool. Thanks a lot flanker

    +2 4.0 years ago
  • Profile image
    Mod sflanker

    Good point @zeropol thank you for mentioning that!

    4.0 years ago
  • Profile image
    358 zeropol

    I had trouble outputing the log, before figuring out the orange black box start deactivated ^_^
    Yes I'm dumb, but if your craft don't output the file, make sure you activate the orange box inflight.

    +2 4.0 years ago
  • Profile image

    This is the coolest mod on the site

    +2 4.0 years ago

28 Upvotes

Log in in to upvote this post.