Free planetarium

 
User avatar
greenhand
Observer
Observer
Posts: 2
Joined: 13 Apr 2017

Help with creating Mods and Addons

13 Apr 2017 06:26

hey Xoran, here.  it's my first try.
Attachments
catalogs.zip
(3.67 KiB) Downloaded 14 times
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

13 Apr 2017 06:29

longname,
there is another bug in your script.
The orbit parameters of the two objects must be the same.
Except for 'ArgOfPericenter'. This parameter must differ by 180 degrees.
For example:
    Orbit
    {
        RefPlane        "Equator"
        SemiMajorAxis   0.000318534
        Period          0.00127163
        Eccentricity    0.2
        Inclination     -155.327
        AscendingNode   32.3193
        ArgOfPericenter -82.8347
        MeanAnomaly     -139.58
    }

    Orbit
    {
        RefPlane        "Equator"
        SemiMajorAxis   0.000318534
        Period          0.00127163
        Eccentricity    0.2
        Inclination     -155.327
        AscendingNode   32.3193
        ArgOfPericenter 97.1653             // -82 + 180
        MeanAnomaly     -139.58
    }
 
User avatar
longname
Space Tourist
Space Tourist
Posts: 24
Joined: 13 Apr 2017
Location: ∞/The Multiverse/The Universe/Local Cluster/The Milky Way/Orion Arm/Sol System/Earth-Moon/Earth/UK

Help with creating Mods and Addons

13 Apr 2017 06:36

JackDole wrote:
longname wrote:
Source of the post I am having trouble with my Binary Black Hole. Shows up in the catalogue list in-game, but does not show name of barycenter in the parents list, and SE cannot find them. What's wrong?

You have wrong quotes for the name and for the class in your 'StarBarycenter'.
It is:
StarBarycenter    “Black Whirl”
{

RA       19 50 18  // right ascension
Dec      28 18 47  // declination
Dist     42.4242   // distance from the Sun
Class   “X”        // spectral class – black hole
Lum      275       // luminosity of the whole system (accretion disk)

}

And it must be:
StarBarycenter    "Black Whirl"
{
    RA       19 50 18  // right ascension
    Dec      28 18 47  // declination
    Dist     42.4242   // distance from the Sun
    Class   "X"        // spectral class – black hole
    Lum      275       // luminosity of the whole system (accretion disk)
}


Thank you very much. How did you get those quotation marks?
Previously as "connorneal2005"
"I am a futurist. I don't want to believe humans won't become futuristic." - Me
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

13 Apr 2017 07:00

greenhand,
your editor uses the wrong font code page. You must use the font code page 1252.
Your star script looks with me like this:
/// Create a new object – a solitary star.
Star    “Gentle”
{
    RA       16 10 45  // right ascension
    Dec     -25 12 11  // declination
    Dist     100.0     // distance from the Sun
    Class   “G5V”      // spectral class
    Lum      0.86      // luminosity, or
    //AbsMagn  5.31    // absolute magnitude, or
    //AppMagn  10.31   // visual magnitude
    RadSol   0.95      // radius in Solar radii
    MassSol  0.91      // mass in Solar masses
    Teff     5200      // surface temperature in Kelvins
}

// Create a new object – a solitary star (black hole) with extra
// parameters (accretion disk) in the planets catalog. Note
// what it’s name here is “Hole system”, read below why.
StarBarycenter    “Hole system”
{

    RA       09 31 14  // right ascension
    Dec      64 16 38  // declination
    Dist     250.0     // distance from the Sun
    Class   “X”        // spectral class – black hole
    Lum      150       // luminosity of the whole system (accretion disk)// That’s enough, accretion disk will be described in the planets catalog (see below).
}

// Remove solitary stars from the older catalogs.
Remove “Bin A”
Remove “Bin B”

// Create a new object – a barycenter of a binary star system,
// which components will be described in the planets catalog (see below).
StarBarycenter    “Bin”
{

    RA       19 50 18  // right ascension
    Dec      28 18 47  // declination
    Dist     251.652   // distance from the Sun
    // That’s enough, StarBarycenter tag may not have other parameters (see below).
}

It must look like this:
// Create a new object - a solitary star.
Star    "Gentle"
{
    RA       16 10 45  // right ascension
    Dec     -25 12 11  // declination
    Dist     100.0     // distance from the Sun
    Class   "G5V"      // spectral class
    Lum      0.86      // luminosity, or
    //AbsMagn  5.31    // absolute magnitude, or
    //AppMagn  10.31   // visual magnitude
    RadSol   0.95      // radius in Solar radii
    MassSol  0.91      // mass in Solar masses
    Teff     5200      // surface temperature in Kelvins
}

// Create a new object - a solitary star (black hole) with extra
// parameters (accretion disk) in the planets catalog. Note
// what it's name here is "Hole system", read below why.
StarBarycenter    "Hole system"
{

    RA       09 31 14  // right ascension
    Dec      64 16 38  // declination
    Dist     250.0     // distance from the Sun
    Class   "X"        // spectral class - black hole
    Lum      150       // luminosity of the whole system (accretion disk)// That's enough, accretion disk will be described in the planets catalog (see below).
}

// Remove solitary stars from the older catalogs.
Remove "Bin A"
Remove "Bin B"

// Create a new object - a barycenter of a binary star system,
// which components will be described in the planets catalog (see below).
StarBarycenter    "Bin"
{

    RA       19 50 18  // right ascension
    Dec      28 18 47  // declination
    Dist     251.652   // distance from the Sun
    // That's enough, StarBarycenter tag may not have other parameters (see below).
}



The manual seems to use a different codepage. Therefore, the quotation marks (") must be corrected when you copy code from the manual. Possibly also hyphens (-) and apostrophes (').
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

13 Apr 2017 07:06

longname wrote:
Source of the post How did you get those quotation marks?

On my keyboard it is 'Shift 2'. Maybe your editor uses an incorrect font code page. It must be 1252. Or ANSI.
 
User avatar
longname
Space Tourist
Space Tourist
Posts: 24
Joined: 13 Apr 2017
Location: ∞/The Multiverse/The Universe/Local Cluster/The Milky Way/Orion Arm/Sol System/Earth-Moon/Earth/UK

Help with creating Mods and Addons

13 Apr 2017 07:10

JackDole wrote:
longname wrote:
Source of the post How did you get those quotation marks?

On my keyboard it is 'Shift 2'. Maybe your editor uses an incorrect font code page. It must be 1252. Or ANSI.

The guide uses 66 & 99 quotation marks, while my keyboard uses shift+2 for straight quote marks.
Previously as "connorneal2005"
"I am a futurist. I don't want to believe humans won't become futuristic." - Me
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

13 Apr 2017 07:20

longname wrote:
Source of the post The guide uses 66 & 99 quotation marks, while my keyboard uses shift+2 for straight quote marks.

That is the reason. The manual uses the wrong quotation marks. They must be corrected when you copy the code.
 
User avatar
longname
Space Tourist
Space Tourist
Posts: 24
Joined: 13 Apr 2017
Location: ∞/The Multiverse/The Universe/Local Cluster/The Milky Way/Orion Arm/Sol System/Earth-Moon/Earth/UK

Help with creating Mods and Addons

13 Apr 2017 07:47

JackDole wrote:
longname,
there is another bug in your script.
The orbit parameters of the two objects must be the same.
Except for 'ArgOfPericenter'. This parameter must differ by 180 degrees.
For example:
    Orbit
    {
        RefPlane        "Equator"
        SemiMajorAxis   0.000318534
        Period          0.00127163
        Eccentricity    0.2
        Inclination     -155.327
        AscendingNode   32.3193
        ArgOfPericenter -82.8347
        MeanAnomaly     -139.58
    }

    Orbit
    {
        RefPlane        "Equator"
        SemiMajorAxis   0.000318534
        Period          0.00127163
        Eccentricity    0.2
        Inclination     -155.327
        AscendingNode   32.3193
        ArgOfPericenter 97.1653             // -82 + 180
        MeanAnomaly     -139.58
    }


Black holes are next to each other.
Previously as "connorneal2005"
"I am a futurist. I don't want to believe humans won't become futuristic." - Me
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

13 Apr 2017 08:09

longname,
your system looks with your script with me like this:
scr00013.png

That is not correct.

It should look something like this.
scr00015.png
 
User avatar
Xoran
Pioneer
Pioneer
Posts: 378
Joined: 17 Jan 2017
Location: Copenhagen, Denmark

Help with creating Mods and Addons

13 Apr 2017 08:52

greenhand,  i think i got Gentle 1 to stop being black :)
Put mysystem.sc in addons/catalogs/planets
Put mystars.sc in addons/catalogs/stars

Also, it works now  :)
Attachments
mysystem.sc
(7.08 KiB) Downloaded 10 times
mystars.sc
(1.44 KiB) Downloaded 10 times
Space is too big to understand, so do not try to understand.
 
cameronbodart1
Observer
Observer
Posts: 19
Joined: 02 Nov 2016
Location: vedrin
Contact:

Help with creating Mods and Addons

13 Apr 2017 09:25

Merci
Attachments
myplans.sc
(2.34 KiB) Downloaded 9 times
mystars.sc
(1.44 KiB) Downloaded 9 times
myplans.sc
(2.34 KiB) Downloaded 10 times
mysystem.sc
(7.08 KiB) Downloaded 9 times
 
jasperhb
Space Tourist
Space Tourist
Posts: 38
Joined: 03 Feb 2017
Location: Orlando, FL
Contact:

Help with creating Mods and Addons

13 Apr 2017 16:55

How do I put the name of a star if it has a non-Latin or Cyrillic name? (Such as Zeta Reticuli)
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

14 Apr 2017 00:39

jasperhb wrote:
Source of the post How do I put the name of a star if it has a non-Latin or Cyrillic name? (Such as Zeta Reticuli)

'ZET Reticuli'
The first three letters. If the name has only two letters, such as 'MU', of course only two.
 
User avatar
Mosfet
Pioneer
Pioneer
Posts: 578
Joined: 24 Oct 2016
Location: Italy

Help with creating Mods and Addons

14 Apr 2017 02:08

Yep. Also for the constellation name you need three, in your case "ZET Ret", assuming you're referring to scripts.
Last edited by Mosfet on 14 Apr 2017 09:42, edited 1 time in total.
"Time is illusion. Lunchtime doubly so". Douglas N. Adams
My mods | My specs: Asus x555ub - cpu i5-6200u, ram 4gb, gpu nvidia geforce 940m 2gb vram | IRC freenode.net canale ##SpaceEngineITA
 
User avatar
JackDole
Pioneer
Pioneer
Posts: 421
Joined: 02 Nov 2016
Location: Terra

Help with creating Mods and Addons

14 Apr 2017 03:06

Mosfet wrote:
Source of the post Also for the constellation name you need three, in your case "ZET Ret"

If you want that the constellation name is translated into your language.
scr00011b.png

Who is online

Users browsing this forum: No registered users and 1 guest