Coder Social home page Coder Social logo

tiltem's Introduction

PayPal Chat on discord

KSP forum post

Latest release Total downloads Total hits

Gif


Tilt'Em

This mod adds planetary axial tilt for Kerbal Space Program (KSP)

There might be issues when switching the rotating frame, so take this mod as a proof of concept and not as a fully released mod!

Installation

  1. Go to the latest release page and download the zip file
  2. Decompress the downloaded .zip into your KSP folder
  3. If you want to edit the default tilts, you need to install Kopernicus and edit the GameData\TiltEm\TiltEm.cfg file. It follows the same rules as any Kopernicus .cfg file

Status:

Branch Build
master AppVeyor

Email: gavazquez@gmail.com License

tiltem's People

Contributors

gavazquez avatar hebarusan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiltem's Issues

Engine shutdown when passing invertRotAltitudeThreshold

When you pass invertRotAltitudeThreshold (originally written at 145000m for Earth), engine will suddenly be off.
I'm currently playing it for my (unofficial) customized RSSRO, and this will waste 1 ignition.
("Vapor in feedline" is not shown, however)
now temporary solution is to adjust it to 800km which is by no means to be passed during normal Earth stage 2 burn, or periapsis kick.

Kraken forces on Vessel far in solar orbit when one of the planetary tilt is applied and on rail time warp is off

When I toggled rotating frame of Uranus on when I'm testing a ship at 3652Tm and speed being 3.8m/s (so the Sun periapsis is very low and are sensitive to speed, good for detecting kraken existance), the ship are changing speed by about 0.1m/s2(judge by eyes) but with G-force gauge being full and ship unable to warp (will tell you it is in acceleration)
When time warp is on, no orbital kraken detected, just navball wobbling, simply, in an angle range of roughly 10 degrees.

Line of nodes randomly changing.

I've found a problem. The line of nodes of the equator randomly changes from one game launch to the next. For instance, put a satellite in an equatorial orbit (you'll have to figure out the LAN by trial and error). Shut the game down and restart. The planet's axis will now be pointed in a different direction and the satellite will no longer be orbiting around the equator. I did it three times. First time the LAN was 84.54 degrees, second time it was 198.33, and the third time it was 266.13.

It looks just like a problem we use to have with planetary rings. Any time we tried to incline rings, the LAN kept randomly changing. Kopernicus eventually added a longitudeOfAscendingNode parameter for rings that locked down their orientation. It looks like you may have to do something similar with axial tilt.

Build of the latest version

Hi!

Is it possible to make new release of the mod? The published version of mod is 1.3.0 (in 'Releases' section). And it kinda doesn't work with KSP v1.12.3.

I've tried building project on my own. Sadly, with no success. So new release would be pretty much appreciated…

Use community-distributed Harmony to avoid inter-mod conflicts

I have released the community distributed Harmony v2 lib available here : https://github.com/KSPModdingLibs/HarmonyKSP

I've also pushed a Kerbalism release using it. Sorry for not waiting for everyone to be ready, but I won't be around much in the next months to take care of the situation.

Note that the CKAN people have done a great job at sorting the compatibility issues by updating the metadata for CKAN indexed mods, but of course that won't help for manual installs.

In the current state of things, mods that bundle Harmony 1 will break when HarmonyKSP is installed, as the KSP assembly loader will always load it first : from my tests, due to the HarmonyKSP folder being named 000_Harmony, any subsequent load of another version will redirect to that first loaded version.

The HarmonyKSP distribution include a basic install checker that will notify end-users during loading when other Harmony versions are installed :
image

As far as I know, outside of Kerbalism, the following mods are currently bundling Harmony :

  • Tilt'em : bundling Harmony 1, not updated since ~1 year
  • AirlockPlus : bundling Harmony 1, seems abandoned (last version is for KSP 1.7)
  • ConformalDecals : bundling Harmony 1 through the Shabby library
  • LMP : latest release is bundling Harmony 1, but master seems to have been updated to use Harmony 2
  • KSPW00tNow : bundling Harmony 2

I'm copy-pasting this issue in all those repositories for awareness. For details about the how and why, please refer to the initial discussion on the CKAN repository here : KSP-CKAN/NetKAN#8288 (comment)

Navball turn does change direction : in-depth bug test

KSP_x64.2021-11-04.22-16-13-193.mp4

You can see, after every 2 toggles, the direction of ship just changed (shouldn't change every tilt-on-off cycle)

KSP_x64.2021-11-04.22-19-43-718.mp4

however not seems to be harmful in space.

By the way, a few days ago when I submitted issue #13 , I found that even not introduced invertRotAltitudeThreshold on Saturn, it works properly (after atmospheric deceleration V_surface 0 horizontal; instead in a test before, using jupiter, deceleration make V_orbit 0 horizontal) . Not knowing how it works, actually.

Find a way to get the correct "Correction value"

Whenever you switch to inverse rotation and tilt the planetarium the orbits of the unloaded vessels are adjusted automatically.

Unfortunately, they are not perfect and I had to use a "correction value"

Images:

With the planetarium not rotated:

image

On the next image the planetarium is rotated and as you can see the orbit is not the same, even tough the orbital parameters are

image

Finally, manually searching for a fixed value, the orbit matches

image

--

This value is specific for a savegame so it might be related with the game time or some other value.
Unfortunately I didn't find a way to get it automatically

Ingame edit

will be of much convenience for developers.
The requirements are:

  1. allow ingame edit for these data (no need to restart ksp) and save it into config file.
  2. display equator, 180/0 and 270/90 meridians and axis on the scene(each can be toggled independently, in flight and map view).

58 m/s of surface speed on the pad

screenshot77
Loaded a new vessel, 58 m/s of speed on the pad. No idea why, but its definitely this mod. I got 83.9 in a planet pack i'm making. This also seems to prevent vessel recovery

Axial Tilt Not Working from the Perspective of New Vessels

I left a comment about this on your forum thread. Basically, I'm having an issue where Kerbin will be tilted, but its axis of rotation will still be vertical. From the tracking station, everything will seem to be working correctly, but from vessels it will not work correctly. The sun will, regardless of the time of year, trace the same exact path through the sky and the axis of rotation no longer passes through the poles.

I'll try testing this some more and see if I can figure out what's causing this or if it's another mod or what.

Fix small error when switching from/to inverse rotation

Whenever you have an active vessel and you switch to/from inverse rotation. There are small rounding errors in some of the orbital parameters.

Image to clarify:

image

The LAN orbit value also changes.

Somehow it seems that the method Orbit.UpdateFromStateVectors needs some adjustments

Related documentation: https://github.com/LunaMultiplayer/TiltEm/wiki/
Related code: https://github.com/LunaMultiplayer/TiltEm/blob/master/TiltEm/TiltEm.cs#L122-L142

Latitude Error when Rotated Planetarium=False

When having one of my vessels orbiting equatorially for configured Uranus, the KER readout of latitude is always 0 which is correct (expected). However, on-rail setting tilt to false lead to problem, then the latitude will not be 0. (the vessel is on-rail, so there is no change in vessel orbit because of other possible bugs involve)
For Saturn, Jupiter, this is negliable (not greater than 0.5deg); however it randomly distribules and make a 20deg peak for Uranus whose original inclination is close to 90 degrees.
And I can sure it's not fault of KER readout, since the brown dot on Uranus north pole has changed its position.
Note that at the beginning of KSP loading, the maximum latitude recorded is 22°7'46'' (or by pressing reset)
KSP.log
The TiltX and TiltZ are made based on there regular satelites' orbit (their orbit plane is almost same as planet equator, and I've got the equation of TiltX&TiltZ versus LAN&inclination of an Equatorial orbit.
The data and formula are shown here (inclination shortened as i)
sin(tiltZ)=sin(i)*sin(LAN), cos(tiltX)=cos(i)/cos(tiltZ)
then use trial and error to determine whether this is an acute or obtuse angle, positive or negative angle
and data gathered from this method

   @Body[Jupiter]
    {
        @Properties
        {
            tiltx = -1.90762
            tiltz = 0.829245
        }
    }
    @Body[Saturn]
    {
        @Properties
        {
            tiltx = 27.638
            tiltz = -4.6761
        }
    }
    @Body[Uranus]
    {
        @Properties
        {
            tiltx = -82.0191
            tiltz = 12.18444
        }
    }

Orbit randomly changing on latest appveyor.

Only running stock + latest appveyor build + kopernicus.

When starting a time warp, sometimes (maybe 30% of the time) the orbit seems to randomly jump inclination and ascending node position.

Parent/Child relative axial tilt

for childs (satelites), when tilt of parent is on, the childs should deducted tiltX and tiltZ of parent
for same level or parent with tilt of one of childs on, the parent should add tiltX and tiltZ of child

note that I'm currently not been able to directly programming, but testing and assistance could be done.

Occasional sharp navball visual turn at 145km@Earth

I'm using TiltEm with my custom RSS settings (I remade RSS to be Eclieptic=0 for sake of interplanetary travel convenience, data grabbed from Horizons 8 year mean value of orbital elements), and during a test I made Earth to be tilted in different params
During the test of TiltX=23.44,TiltZ=90, it happens
JE~ 40%8 AS( DU DR71QX5
}KM3AIVSX5Z)U5F YAO{Z88
this is only taken within a range of a few seconds.
the navball has undergone a sharp turn at 145000m.
Note: this is occasional, I didn't trigger it in next 10 tries (including setorbit and reload save after KSP restart)
Is tiltem rotating space like Principia? (However not likely, when I'm stationary on launchpad, the launchpad inclination is keep changing in a high range confirming planetary space is still relative to eclieptic)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.