Jump to content

[WIP][1.8.1, 1.9.1, 1.10.1, 1.11.0–2, 1.12.2–5] Principia—version ‎‎Kronecker, released 2024-11-01—n-Body and Extended Body Gravitation


eggrobin

Recommended Posts

On 8/25/2020 at 9:06 AM, epicfailure2020 said:

start a save with principia installed my game crashes. im playing with RSS and RO

check the Principia logs for insights about the crash...those logs are in  your %KSP181's root directory%\glog\Principia\ folder...I usually start with the error log...

xCT8RQH.png

Link to comment
Share on other sites

6 hours ago, epicfailure2020 said:

which one?

Anyone. One of each INFO, WARNING, ERROR and FATAL log is created for every KSP session. The name contains the date and time when the log was created (alternatively you can also sort the folder by date modified).

Also, go through the troubleshooting section of FAQ on github.

Link to comment
Share on other sites

14 hours ago, epicfailure2020 said:

which one?

to add to scimas' insights above...in this case I would actually check several of the Fatal logs first to see if they are all the same type of crash...

also, if you are using a windows platform AstroGrepPortable (lots of bloatware installer versions on the www...but the one that just downloaded for the link I added here showed as clean in VirusTotal...still make sure to check it yourself) has been extremely useful for me with troubleshooting KSP mods...I use it to search the KSP.log, .cfg files, MM logs,  kopernicus, & principia logs all the time...those usually help reveal what is not playing nice together...

For example, these mods in your list have me wondering...I would temporarily drag those out of gamedata, reload, & then see if you can successfully create a new principia based save...though for me crashes on save creation generally have been kopernicus related so will be interesting to see what is leading to your crash...

Telemachus Reborn "A 3D navball (huge thanks to Lokaltog/KeRD for an awesome implementation)"

Persistent Thrust - 1.7.5 "a plugin that allows propulsion systems to operate during timewarp"
Precise Maneuver - 2.4.4

if that does not work, then the info logs are helpful to see what Principia was trying to process/create leading up to the crash...if you upload your principia logs to a google drive folder or something I could take a quick peak for you...

Edited by AloE
Link to comment
Share on other sites

On 8/20/2020 at 12:35 PM, DA299 said:

Is a PML file same as a log file?

PML file is described in the instructions pasted below which come from the link pleroy gave you re: "Please follow the steps here and give us a PML file tracing what KSP is doing and what is happening on your machine.":

fyi...Getting familiar with Process Monitor is worth the effort ;-)

MBWhOLx.png

EDIT: also I was thinking...if you do not have the 2015-2019 x64 already installed...you could grab that & install it also & see if that helps clear up any .dll path issues:

https://aka.ms/vs/16/release/vc_redist.x64.exe

from: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

(here is my list...I have a few picky old tools that seem to complain if I remove some of the older distributions...so ignore the clutter) 

zxa2giB.png

Edited by AloE
Link to comment
Share on other sites

5 hours ago, AloE said:

PML file is described in the instructions pasted below which come from the link pleroy gave you re: "Please follow the steps here and give us a PML file tracing what KSP is doing and what is happening on your machine.":

fyi...Getting familiar with Process Monitor is worth the effort ;-)

MBWhOLx.png

EDIT: also I was thinking...if you do not have the 2015-2019 x64 already installed...you could grab that & install it also & see if that helps clear up any .dll path issues:

https://aka.ms/vs/16/release/vc_redist.x64.exe

from: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

(here is my list...I have a few picky old tools that seem to complain if I remove some of the older distributions...so ignore the clutter) 

zxa2giB.png

Sorry my bad.

I'm gonna try installing the "microsoft visual studio.." once more and if that doesn't help, then I'll download Process Monitor. Thanks.

Link to comment
Share on other sites

6 hours ago, DA299 said:

I'm gonna try installing the "microsoft visual studio.." once more

for clarity, in case someone else encounters this thread in the future...all that needed is the Visual C++ redistributable library = x64: vc_redist.x64.exe rather than all of Visual Studio.

https://github.com/mockingbirdnest/Principia/wiki/Installing,-reporting-bugs,-and-frequently-asked-questions#windows-users

"Windows users

If you get the message "Dependencies, namely the Microsoft Visual C++ 2015-2019 Redistributable, were not found", well, you need to install the Microsoft Visual C++ 2015-2019 Redistributable."

_______________________________________________

(However, & mostly for amusement, I will also include one of my favorite posts about windows .dlls by @Lisias  ;-)

Link to comment
Share on other sites

ok so after a day of screaming at my computer and a couple broken keyboards i finally found this.

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0824 09:43:25.130014  9252 interface.cpp:697] Initialized Google logging for Principia
E0824 09:43:25.142066  9252 interface.cpp:698] Principia version 2020081903-Galois-0-gcaa676d5d9d951abe92a5ce06f3c5a5df31d6965 built on 2020-08-15T16:16:30Z by Microsoft Visual C++ version 192628806 for Windows x86-64
E0824 09:43:25.146944  9252 interface.cpp:711] Base address is 00007FFB17670000
    @   00007FFB18686360      google::LogMessageFatal::~LogMessageFatal [0x00007FFB1868635F+47]
    @   00007FFB1770C643      principia__LogFatal [0x00007FFB1770C642+322]
    @   00000167678C9915      (No symbol) [0x00000167678C9914]
F0824 10:01:14.727067  9252 ksp_plugin_adapter.cs:2454] missing gravity model for Eeloo

Edited by epicfailure2020
Link to comment
Share on other sites

On 8/25/2020 at 3:06 PM, epicfailure2020 said:

im playing with RSS and RO

47 minutes ago, epicfailure2020 said:

Eeloo

If we look for a gravity model for Eeloo, this means Eeloo is present. If Eeloo is present with RSS, this means RSS is improperly installed.

Link to comment
Share on other sites

4 hours ago, epicfailure2020 said:

missing gravity model for Eeloo

Since this appears to be a RSS/kopernicus/configuration related issue rather than Principia related...if you still end up with trouble after deleting & resetting up the RSS/kopernicus folders (I'm hoping you use CKAN in combination with manually verifying folders are fully removed) ...& would like some pointers, you are welcome to send me a private message...since I am working on getting Trappist1 working for myself in KSP1.9.1 this weekend anyway...

Spoiler

fyi...I use windows junctions (via "Link Shell Extension" pick & drop) to CKAN, GameData,  saves, & Ships folders

stored by config in relevantly named folders in folder 1Var which makes it easier to troubleshoot & manage dozens of different modded configs & saves since KSP1.3.1...

at this point of trouble shooting I would just quickly:

create a fresh KSP 1.8.1 GameData with just the Squad folder in it,

use CKAN to install Real Solar System with the texture resolution of your choice,

launch KSP to verify RSS loads properly

if so, then add Principia folder to that clean GameData, then close & relaunch & create a new Sandbox save

I just followed the above procedure and as of 2020 Aug 29 I get a proper functional config on my machine as seen in this screenshot:

wD6ql6o.png

 

if the above does not work for you then that suggests you might be encountering something like corrupted downloads, drive read errors, or memory errors or something wrong with CKAN's metadata, etc., etc....(I have encountered all of those at one time or other over the past 4 years...)

As a management example, here is the file structure for one of my machine's KSP1.8.1 folder...

41VkvlR.png

 

Edited by AloE
added verification screenshot of correct Principia function using the test procedure described in the spoiler.
Link to comment
Share on other sites

so after re installing RSS and all its dependencies the problem is still there and this is what it says. 

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
E0829 19:50:53.034090 10892 interface.cpp:697] Initialized Google logging for Principia
E0829 19:50:53.281987 10892 interface.cpp:698] Principia version 2020081903-Galois-0-gcaa676d5d9d951abe92a5ce06f3c5a5df31d6965 built on 2020-08-15T16:16:30Z by Microsoft Visual C++ version 192628806 for Windows x86-64
E0829 19:50:53.324090 10892 interface.cpp:711] Base address is 00007FFB230F0000
    @   00007FFB5B4C6360      google::LogMessageFatal::~LogMessageFatal [0x00007FFB5B4C635F+47]
    @   00007FFB2318C643      principia__LogFatal [0x00007FFB2318C642+322]
    @   000002422D4FDA65      (No symbol) [0x000002422D4FDA64]
F0829 20:00:00.546667 10892 ksp_plugin_adapter.cs:2454] missing gravity model for TRAPPIST1

possibly a real exoplanets or RSS expansion problem?
 

Edited by epicfailure2020
Link to comment
Share on other sites

1 hour ago, epicfailure2020 said:

possibly a real exoplanets or RSS expansion problem?

Principia does not work with exoplanetary systems...there is only a nice model TRAPPIST-1 patch made for SLIPPIST-1.

RE: "RSS expansion" Principia only supports very specific celestial bodies  "No other celestial bodies are supported, so if you do install pozine's pack, make sure you remove all other bodies: if RealSolarSystem is installed and unsupported celestials are found, the game will crash." (also note: those supported 'pozine's pack' celestials listed at that wiki link are now included in RSS by default.)

From my message above...please see the procedure in the spoiler that verified proper KSP1.8.1 Principia RSS behavior via RealSolarSystem CKAN install just an hour ago or so...beyond that it would be better for you to request further help by creating a new thread in Gameplay Questions and TutorialsGameplay Questions and Tutorials (or send me a private message):

1 hour ago, AloE said:

Since this appears to be a RSS/kopernicus/configuration related issue rather than Principia related...& if you would like some pointers, you are welcome to send me a private message

 

Edited by AloE
Link to comment
Share on other sites

7 hours ago, JonasP said:

I don't know how to exactly install principia. Can somebody help me please. I want to play RP-1.

Download the zip - links are on both the first post of this thread and the README on github. Extract the zip and copy / merge the folder like any other mod. If you have never installed any mod before, read the thread linked by Entropian.

Link to comment
Share on other sites

On 8/30/2020 at 8:28 AM, epicfailure2020 said:

are asteroids considered celestial bodies? 

if you add an "asteroid" or any celestial that requires Kopernicus (i.e not as a KSP "potatoroid" asteroid 'vessel' or other vessel model)...

then, yes that creates a problem if you have not also created a patch that tells ModuleManager to add the required parameters ( for this same new Kopernicus generated celestial body(s) ) to the respective Principia gravity model & initial state for the specific solar system you are using.

For example, if you use "Real Expansion => Real Asteroids 1.2" , while it is discussed in their thread, I do not yet see a patch released by that modder for Principia & there is on that thread a June request for Principia support

This mod uses Eeloo based Kopernicus bodies (you can see this in the config file in the screenshot in the second spoiler below).

Again: that way of creating "asteroids" etc. will crash Principia if you add those bodies along with RSS without adding configs for them to the Principia gravity model & initial state...something like the configs shown in the spoiler below.  These examples use a GitHub user "WC12366" posted zip that contains Principia configs for a bunch of minor bodies.

In that comment's zip, Principia gravity model & initial state data is only available for Juno, Pallas, Ida, & Dactyl...so disable Gaspra & the other two for now....

here is a caution note & the two .cfg  made from that data as a test which indeed KSP & Principia does at least load (e.g. see screenshot at the bottom of this post):

Spoiler

however, please note

if you look at the SLIPPIST1 to TRAPPIST1 trappist_gravity_model_slippist1.cfg patch, in addition to the 2 config files below, an additional kopernicus patch config file should be created to delete body mass & insert gravity parameter (and make any other corrections to match the kopernicus rendering to the data in the configs fed to Principia...

which for this test, I have not done because I also have not verified the jpl horizons data to see if it was pulled for the correct epoch & frame).

gravity model: note the change from NEEDS{RealSolarSystem] to NEEDS[RealExpansion] if you edit the original files yourself

GravityModel_RealAsteroids.cfg


@principia_gravity_model:NEEDS[RealExpansion]:FOR[Principia] 
{  
body {
    name                    = Juno
    gravitational_parameter =  1.781424000009 m^3/s^2
    reference_instant       = JD2451545.000000000
    mean_radius             =  116.960 km
    axis_right_ascension    = 0.0 deg
    axis_declination        = 90.0 deg
    reference_angle         = 0 deg
    angular_frequency       = 1198.335 deg / d
  }

body {
    name                    = Pallas
    gravitational_parameter = 1.407792000010 m^3/s^2
    reference_instant       = JD2451545.000000000
    mean_radius             =  272 km
    axis_right_ascension    = 0.0 deg
    axis_declination        = 90.0 deg
    reference_angle         = 0 deg
    angular_frequency       = 1105.84 deg / d
  }

body {
    name                    = Ida
    gravitational_parameter = 2.802240000006  m^3/s^2
    reference_instant       = JD2451545.000000000
    mean_radius             = 15.7  km
    axis_right_ascension    = 0.0 deg
    axis_declination        = 90.0 deg
    reference_angle         = 0 deg
    angular_frequency       = 1866.0907 deg / d
  }

body {
    name                    = Dactyl
    gravitational_parameter = 2.531356800002 m^3/s^2
    reference_instant       = JD2451545.000000000
    mean_radius             = 0.7  km
    axis_right_ascension    = 0.0 deg
    axis_declination        = 90.0 deg
    reference_angle         = 0 deg
    angular_frequency       = 233.5030181 deg / d
  }

}

 

initial state: note the change from NEEDS{RealSolarSystem] to NEEDS[RealExpansion] & AFTER to FOR if you edit the original files yourself

InitialStates_RealAsteroids.cfg


//@principia_initial_state:NEEDS[RealSolarSystem]:AFTER[Principia]
@principia_initial_state:NEEDS[RealExpansion]:FOR[Principia]
{
body {
    name = Juno
    x    = -3.77350968575998e+08 km
    y    = 1.20138185617765e+08 km
    z    = 3.57922877260130e+07 km
    vx   =-1.00190101200558e+01 km/s
    vy   =-1.51302441584666e+01 km/s
    vz   = -2.48204833544167e+00 km/s
  }
  body {
    name = Pallas
    x    = -3.45979934412250e+08 km
    y    = -1.19925536702231e+08 km
    z    = 4.60515278789679e+07 km
    vx   = 2.75497872663329e+00 km/s
    vy   = -1.94294949515899e+01 km/s
    vz   = 3.67262371643582e+00 km/s
  }

  body {
    name = Ida
    x    = -3.90792825935079e+08 km
    y    = -1.83765372169890e+08 km
    z    =-8.81549031480573e+07 km
    vx   =7.36330289250052e+00 km/s
    vy   =-1.40699943429910e+01 km/s
    vz   = -6.28989976931574e+00 km/s
  }
   
  body {
    name = Dactyl
    x    = -3.90792715165946e+08 km
    y    = -1.83765367206227e+08 km
    z    = -8.81549198336007e+07 km
    vx   = 7.36319822252899e+00 km/s
    vy   = -1.40653241946407e+01 km/s 
    vz   = -6.28841014429814e+00 km/s
  }
}

 

 

also, here you can see Eeloo is used as a template in the configs:

Spoiler

cGxH7zN.png

To get more experience you can study the required parameters for RSS bodies in the contents of:

GameData/Principia/real_solar_system/gravity_model.cfg 

principia_gravity_model:NEEDS[RealSolarSystem]  {...}

GameData/Principia/real_solar_system/initial_state_jd_2433282_500000000.cfg

principia_initial_state:NEEDS[RealSolarSystem] {
  game_epoch = JD2433647.5
  solar_system_epoch = JD2433282.500000000 ... }

There is a useful description in the Principia github wiki::

The principia_gravity_model configuration

The principia_initial_state configuration

also useful are the notes at GitHub:

eggrobin's explanation: "pozine and orbital elements"  via jpl horizons system (also & some RSSnotes ) 

& for the initial_state vectors: here are screenshots of the settings for jpl horizons which generate the values that match the numbers seen in Principia/real_solar_system/initial_state_jd_2433282_500000000.cfg = principia_initial_state:NEEDS[RealSolarSystem] {..}

Spoiler

 

bmdDrQE.png

 

WfJtkqF.png

 

 

& notes about data sources for gravity_model in the comments: sol_gravity_model.proto.txt 

Interesting to see a celestial so small as dactyl (700 m radius for this model) ...

kCl7kI4.png
Edited by AloE
Link to comment
Share on other sites

  • 2 weeks later...

For the new moon (lunation number 256), the new release (Gateaux) is out.

  • Support for 1.10.1 has been added. Note that the behaviour of Principia in the presence of comets is hard to test; users who encounter problems when comets are present are invited to report bugs.

See the change log for more details.

For the convenience of our Chinese users, the binaries can be downloaded either from Google Drive or from 腾讯微云.

Link to comment
Share on other sites

Just a quick shout out to those who DON'T want to trust comets to "maybe just work" with a fresh Principia install...

Kopernicus Bleeding Edge (the one for 1.10.1) presently has an option in the file config/Kopernicus_Config.cfg called "UseStockAsteroidGenerator = true"

If you set this to false, the Kopernicus asteroid generator takes over.  At present, that means no comets, so at least for now, any potential crashes would vanish with them.

I know, that doesn't help for bug reporting but if you are in a game where stability really is important to you, this could help.   Just thought someone might find this tidbit useful.

FYI, I have not had a comet related crash yet, but I don't play as much as I should.

Edited by R-T-B
Link to comment
Share on other sites

2 hours ago, I love ksp said:

Can you optimize it? It's not friendly to my computer.

Actually, Principia is pretty amazingly optimized as it stands.  It even multithreads when possible, I believe.

The issue is, the math it is trying to solve, known as the "n-body problem" has no closed form solution known to man.  Thus, it is inherently a slow and difficult simulation to run.  There isn't any answer known to modern science to make it cheaper than they have really.

So if you are having trouble running it I would advise either you upgrade, or don't run it.  Don't expect miracles sadly.

Edited by R-T-B
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...