DESCRIPTION

Vizzy++ is a mod containing additional expression, instruction, and event blocks.

Version: 0.5

Vizzy++ Elements

Craft Information Expressions

  • Orbital Element¹ ...

    • Right Ascension - The angle between the reference direction and the ascending node.

    • Inclination - The degree of tilt.

    • Argument of Periapsis - The angle between the ascending node and the direction of periapse.

    • True Anomaly - The angle between the direction of the periapse and the current position from the main focus of the orbital ellipse.

    • Semi-Major Axis - Half of the sum of the apoapse and periapse distances.

    • Eccentricity - The shape of the orbit, from circular (0), to parabolic (1), to hyperbolic (>1).

    • Period - The period of the orbit in seconds.

  • Advanced Orbital Element¹ ...

    • Angular Momentum - A vector representing the body's rate of rotation around its parent.

    • Apoapse - A vector representing the apoapse of the orbit.

    • Periapse - A vector representing the periapse of the orbit.

    • Orbital Plane Normal - A unit vector perpendicular to the orbital plane.

    • Eccentricity Vector - A vector pointing toward the periapsis of the orbit with a magnitude equal to the eccentricity.

    • Eccentric Anomaly - The current eccentric anomaly. See: https://en.wikipedia.org/wiki/Eccentric_anomaly

    • Mean Anomaly - The faction of an orbit's period that has elapsed since the orbit passed periapsis in degrees from 0 to 360.

    • Mean Motion - The average angular speed of the orbit in degrees.

  • Cartesian State Vector¹ ...

    • Position - The position of the craft or planet relative to its parent.

    • Velocity - The velocity of the craft or planet.

  • Get Craft ID - Gets the ID of a specific craft: Targeted, Current, or Active. Craft names are sometimes duplicated, so this is more reliable for use with the other expressions.

¹ These expressions can take a Planet Name, a Craft Name, or a Craft Id and return the specified value for that object's orbit. If the specified value is blank or a negative number, then the value for the current craft will be returned.

Text Expressions

  • Text Comparison - Compares pieces of text.
  • Text Transform - Returns the result of a transform of a single text value.
  • Split Text - Returns a list of strings by splitting the input on the specified separators.

Math Expressions

  • Advanced Unary Math

    • exp - Returns the Euler's Number raised to the specified exponent.

    • sinh - Hyperbolic Sine

    • cosh - Hyperbolic Cosine

    • tanh - Hyperbolic Tangent

    • asinh - Inverse Hyperbolic Sine

    • acosh - Inverse Hyperbolic Cosine

    • atanh - Inverse Hyperbolic Tangent

Constant Expressions

  • p - The mathematical constant PI, 3.14159...
  • G - The Universal Gravitation Constant (in cubic meters per kilogram per seconds squared).
  • e - Euler's Number (base of natural logarithms).
  • c - The speed of light in meters per second.

Flow Instructions

  • Continue - Stops the execution of the current iteration through a loop, and continues executing the loop from the top, starting with any state change or condition checks.

GENERAL INFO

  • Mod Version: 0.5
  • Required SR2 Version: 0.9.50x.x
  • Published: 5/20/2020
  • Downloads: 848

DOWNLOADS

TAGS


Comments

  • Log in to leave a comment
  • Profile image
    Mod sflanker

    This is a beta, so the set of things this adds is pretty limited, and I may make breaking changes in the future.


    I am happy to take requests for additional functionality, within reason. Please keep requests restricted to general purpose functionality, I'm not going to be implementing monolithic super complex vizzy instructions as part of this. If those happen they should be separate mods.

    Pinned 11 months ago
  • Profile image
    1,963 MVP13

    @sflanker Where my V#
    :D

    one month ago
  • Profile image
    Mod sflanker

    @JPQed Looks like I hadn't uploaded the update for 0.9.50x. It is updated now. You can also check the releases page on GitHub where I will post updates for beta versions of SimpleRockets2 (as you can see I sometimes forget to update this page once the beta becomes stable).

    3 months ago
  • Profile image
    Mod sflanker

    @JPQed I updated it recently but I'll have to double check the latest version and let you know. I'll post an update if it is broken.

    3 months ago
  • Profile image
    0 JPQed

    Does this work on 0.9.503 or am I doing something wrong here? Not showing up in vizzy for me

    3 months ago
  • Profile image
    Mod sflanker

    @Staticalliam7 heh, this mod doesn’t add pointers or objects, so it’s not particularly C++ like. However if you’re looking for a Tex based Vizzy, you might check out Lizpy although it uses Lisp rather than C/C++ syntax.

    4 months ago
  • Profile image

    C++ mod for sr2 vizzy

    4 months ago
  • Profile image
    Mod sflanker

    New version release: v0.4

    • Fixes Crash Bug w/ Mod Requirement Checking
    • Fixes issues with some orbital elements.
    • Adds advanced unary math expression (exp, hyperbolic trig functions)
    • Adds continue flow instruction.
    • Unity and ModAPI versions have been updated.
    8 months ago
  • Profile image
    Mod sflanker

    I've published a new release with new expressions for working with text. Also the Target Craft ID expression has been replaced with an expression containing a dropdown with the options Target, Current (craft running the program), and Active (player controlled craft).

    10 months ago
  • Profile image
    Mod sflanker

    @Deanolt yes, any craft that uses Vizzy++ will only function properly if the user also has Vizzy++ installed. This is because the mod is not just for convenience but adds things that aren't possible in the stock game.

    10 months ago
  • Profile image
    4,588 Deanolt

    And if you build the code on this mod and laid out the craft with it, then the loader will need to install this mod?

    10 months ago
  • Profile image

    Can you get a craft's drift acceleration? It can be Accelration - Gravity in orbit, or gee-force. I made the formula but it doesn't give me a clean data; it has noises.

    10 months ago
  • Profile image
    7,207 crowxe

    This thing should be in future game update instead of being a mod, it's not luxury, it's a must. Maybe the constants are cool luxury but not the orbital elements. No more "NaN" for perigee, negative value can be concluded from the semi-major which is not available in the game.

    11 months ago
  • Profile image
    Mod sflanker

    @socialist Thanks!

    Unfortunately I think mods are not currently supported on android.

    11 months ago
  • Profile image
    2,870 socialist

    @sflanker I make you blue!By the way,it will be on android?

    11 months ago
  • Profile image
    1,963 MVP13

    Vizzy#

    +1 11 months ago
  • Profile image
    19.1k Rafaele

    @CPSU3417 Have you ever wondered whenmobilewhenmobilewhenwhenmobilemobilewhenwhenmobilewhenmobilewhenwhenmobilewhenwhenmobilemobilewhen?

    +1 11 months ago
  • Profile image
    Mod sflanker

    @undefined1 Missing option: Fizzy (Functional Vizzy, a text based representation of Vizzy with Lisp syntax)! 😅

    +2 11 months ago
  • Profile image

    One month after:
    V#, Vython, Vava, VavaScript.

    +4 11 months ago
  • Profile image
    19.1k Rafaele

    Very cool, idk how to use Vizzy but I'm sure this will be super useful for a lot of people, good job!

    +1 11 months ago
  • Profile image
    6,569 BarsikKT

    Interesting

    11 months ago
  • Profile image
    14.6k Rizkyman

    This is what I need !

    11 months ago
  • Profile image
    Mod sflanker

    @s5ehfr9 I totally agree, and I'm sure more Vizzy capabilities will be added before long, but I am impatient 😅. For what it's worth all of my mods are released as public domain so if @AndrewGarrison wants to take the code and add it to the core game 👍. Admittedly there's not a ton here yet, but I do hope to add more.

    +4 11 months ago
  • Profile image
    Mod sflanker

    Here is a simple example of the usage of this mod.

    +1 11 months ago
  • Profile image
    5,597 s5ehfr9

    All these features should have been in vizzy by default!

    +3 11 months ago
  • Log in to see more comments

41 Upvotes

Log in in to upvote this post.