EDCD / EDDI

Companion application for Elite Dangerous
Other
444 stars 81 forks source link

EDDI 3.0.1 b2 missing rotational period #559

Closed hermattila closed 6 years ago

hermattila commented 6 years ago

Hi.I installed the latest beta. However the rotationalperiod being skipped as the returne each occasion is "0".

Reproducing just losd the default EDDI personality and it will skip the part Instead tell me "it has a slow rotational period of ×.× days.

However Test button occasonally works but not when in game.

Downgraded back to EDDI 3.0.0 but no luck.

Prior downgrade it was working.

Tkael commented 6 years ago

Hi. If this issue first began after you downgraded to a prior version of EDDI then that may be the cause. The database format for 3.0.1-b2 is not backwards compatible with earlier versions.

Please close completely out of EDDI and VoiceAttack, then delete eddi.sqlite from the %APPDATA%/EDDI folder. Then re-sync your EDSM flight logs and see if the same issue still occurs.

Tkael commented 6 years ago

Except for the database itself, I don't think there are any differences between the way we handle this event in 3.0.0 vs 3.0.1b2.

hermattila commented 6 years ago

If you want i send over my script to see why there are no output for that.might im wrong and my script is broken but dont think so.as if there would be a logical mistake EDDI would warn about it.Also sometimes during the script when i push Test from 100 in 3 has output which wierd....anyway once ive got home im send over my script.(Be aware it is a localized script for myself so expect hugh lines)but what is most annoying there no any other personality say anything about the rotational period.Im not using EDSM so it cant be synced.Im not sure it is just me or someone else as well as i havent got any comfirmation on Discord when i was asking.. .

Brian Wilson notifications@github.com ezt írta (időpont: 2018. máj. 15., Ke 18:34):

Except for the database itself, I don't think there are any differences between the way we handle this event in 3.0.0 vs 3.0.1b2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/559#issuecomment-389250357, or mute the thread https://github.com/notifications/unsubscribe-auth/AlU1NkugQZdkaoC8C2udJSibueSlONs9ks5tyxGjgaJpZM4T_iZT .

Tkael commented 6 years ago

If you are using the BodyDetails() function then you are accessing data from a remote server.

There are currently some differences between the way that you would write the script depending on whether you were using information from the event or from the BodyDetails() function. For example:

I've submitted a PR that will make either {event.rotationperiod}' or{event.rotationalperiod}` acceptable.

hermattila commented 6 years ago

So it is start to try access to eventdata and if it is fail then use Bodydetails().i was working all night so later this afternoon i share my script so...

Brian Wilson notifications@github.com ezt írta (időpont: 2018. máj. 16., Sze 7:58):

If you are using the BodyDetails() function then you are accessing data from a remote server.

There are currently some differences between the way that you would write the script depending on whether you were using information from the event or from the BodyDetails() function. For example:

  • You would access the event information from `{event.rotationperiod}'
  • You would access information passed to reportbody from the BodyDetails() function using {event.rotationalperiod}

I've submitted a PR that will make either {event.rotationperiod}' or{event.rotationalperiod}` acceptable.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/559#issuecomment-389415202, or mute the thread https://github.com/notifications/unsubscribe-auth/AlU1NuK3iF0fNZ42ZJZsqvx8Z8JNGvIYks5ty84CgaJpZM4T_iZT .

hermattila commented 6 years ago

so here it goes.Sry to be so big but that because the material names. { Set reportbody to event data } {set reportbody to event} {set eventdata to true}

{ Fallback to BodyDetails if no event data } {if !reportbody.name || reportbody.name = "": {set reportbody to BodyDetails(state.eddi_context_body_name, state.eddi_context_body_system)} {set eventdata to false} }

{ Second fallback if BodyDetails fails with system argument above } {if !reportbody.name || reportbody.name = "": {set reportbody to BodyDetails(state.eddi_context_body_name)} {set eventdata to false} }

{_ Begin the report }

{if !reportbody.name || reportbody.name = "": { If it's still not possible to get the body name... } {OneOf("nem vagyok biztos benne","nem vagyok bizonyos abban")} melyik objektumról {OneOf("érdeklodik","referál", "kíván infót szerezni")}.

|else: {set shortBodyName to reportbody.name} {set systemName to state.eddi_context_body_system} {set sysNameLen to len(systemName)} {if len(shortBodyName) > sysNameLen && eq(systemName, slice(shortBodyName, 0, sysNameLen)): {set shortBodyName to cat("Body", Spacialise(slice(shortBodyName, sysNameLen)))} }

{if event.name:
    {if state.eddi_context_body_shortname:
        {set shortname to Occasionally(3,

state.eddi_context_body_shortname)} } {if !shortname: ez |else: {shortname} } |else: {reportbody.name} } egy {if reportbody.gravity < 0.5: alacsony gravitációval rendelkezó |elif reportbody.gravity <2: közepes gravitációval rendelkezo |elif reportbody.gravvity < 4: magas gravitációval rendelkezo |else: extrém gravitációval rendelkezo }

{if reportbody.tidallylocked:
    kötött tengelyforgású
}

{if reportbody.terraformstate = "Terraformable":
    terraformálásra alkamas
|elif reportbody.terraformstate = "Terraformed":
    terraformált
}

{if !reportbody.bodyclass: {set bodyclass to planettype} }
{if find(reportbody.bodyclass, "Class") >= 0 &&
find(reportbody.bodyclass, "gas giant") >= 0: {set sudarsky to Occasionally(2, "Szuddarszki")} {if find(reportbody.bodyclass, "Class V") >= 0: {Occasionally(2, "{Sudarsky} class five")} elif find(reportbody.bodyclass, "Class IV") >= 0: {Occasionally(2, "{Sudarsky} class four")} elif find(reportbody.bodyclass, "Class III") >= 0: {Occasionally(2, "{Sudarsky} class three")} elif find(reportbody.bodyclass, "Class II") >= 0: {Occasionally(2, "{Sudarsky} class two")} elif find(reportbody.bodyclass, "Class I") >= 0: {Occasionally(2, "{Sudarsky} class one")} } gáz óriás elif reportbody.bodyclass: {if reportbody.bodyclass: {if reportbody.bodyclass = "Metal rich body" : Fémben gazdag bolygó elif reportbody.bodyclass = "High metal content body" : Magas fémtartalmú bolygó elif reportbody.bodyclass = "Rocky body" : Sziklás bolygó elif reportbody.bodyclass = "Icy body" : Jeges bolygó elif reportbody.bodyclass = "Rocky ice body" : Sziklás jég bolygó elif reportbody.bodyclass = "Eartlike body" : Föld típusú bolygó elif reportbody.bodyclass = "Water world" : Víz bolygó elif reportbody.bodyclass = "Ammonia world" : Ammónia bolygó elif reportbody.bodyclass = "Water giant" : Víz óriás elif reportbody.bodyclass = "Water giant with life" : Víz óriás élettel elif reportbody.bodyclass = "Gas giant with water based life" : Gáz óriás víz alapú élettel elif reportbody.bodyclass = "Gas giant with ammonia based life" : Gáz óriás ammónia alapú élettel elif reportbody.bodyclass = "Sudarsky class I gas giant" : 1es osztályú gáz óriás ez a bodzclass változó elif reportbody.bodyclass = "Sudarsky class II gas giant" : 2es osztályú gáz óriás elif reportbody.bodyclass = "Sudarsky class III gas giant" : 3as osztályú gáz óriás elif reportbody.bodyclass = "Sudarsky class IV gas giant" : 4es osztályú gáz óriás elif reportbody.bodyclass = "Sudarsky class V gas giant" : 5ös osztályú gáz óriás elif reportbody.bodyclass = "Helium rich gas giant" : Héliumban gazdag gáz óriás elif reportbody.bodyclass = "Helium gas giant" : Hélium gáz óriás }} else: {if reportbody.planettype: {if reportbody.planettype = "Metal rich body" : Fémben gazdag bolygó elif reportbody.planettype = "High metal content body" : Magas fémtartalmú bolygó elif reportbody.planettype = "Rocky body" : Sziklás bolygó elif reportbody.planettype = "Icy body" : Jeges bolygó elif reportbody.planettype = "Rocky ice body" : Sziklás jég bolygó elif reportbody.planettype = "Eartlike body" : Föld típusú bolygó elif reportbody.planettype = "Water world" : Víz bolygó elif reportbody.planettype = "Ammonia world" : Ammónia bolygó elif reportbody.planettype = "Water giant" : Víz óriás elif reportbody.planettype = "Water giant with life" : Víz óriás élettel elif reportbody.planettype = "Gas giant with water based life"
           Gáz óriás víz alapú élettel
        |elif reportbody.planettype = "Gas giant with ammonia based

life" : Gáz óriás ammónia alapú élettel |elif reportbody.planettype = "Sudarsky class I gas giant" : 1es osztályú gázóriás ez a planettype változő |elif reportbody.planettype = "Sudarsky class II gas giant" : 2es osztályú gáz óriás |elif reportbody.planettype = "Class III gas giant" : 3as osztályú gáz óriás |elif reportbody.planettype = "Sudarsky class IV gas giant" : 4es osztályú gáz óriás |elif reportbody.planettype = "Sudarsky class V gas giant" : 5ös osztályú gáz óriás |elif reportbody.planettype = "Helium rich gas giant" : Héliumban gazdag gáz óriás |elif reportbody.planettype = "Helium gas giant" : Hélium gáz óriás }} }

{if len(reportbody.rings) > 1:
  gyűrűs

}

{if reportbody.terraformstate = "Terraforming":

ami éppen Terraformálás alatt van. }

{if !find(reportbody.planettype, "gas giant"):
    {if reportbody.landable = 1:
        amely alkalmas a landolásra
    |elif reportbody.landable = 0:
        amely alkalmatlan a landolásra
    }
}.

{Pause(1000)} { Orbital characteristics } {if reportbody.rotationalperiod: {Pause(100)} {if reportbody.rotationalperiod < -20.0: ez a bolygó lassú, a földdel ellentétes forgást végez a saját tengelye körül, |elif reportbody.rotationalperiod < -0.5: ez a bolygó a földdel ellentétes forgást végez a saját tengelye körül, |elif reportbody.rotationalperiod < 0: ez a bolygó gyors, a földdel ellentétes forgást végez a saját tengelye körül, |elif reportbody.rotationalperiod <= 0.5: ez a bolygó gyors, a földdel megegyező forgást végez a saját tengelye körül, |elif reportbody.rotationalperiod > 20.0: ez a bolygó lassú, a földdel megegyező forgást végez a saját tengelye körül, } Egy nap {Humanise(reportbody.rotationalperiod)} földi napnak felel meg ezen a planétán. {if reportbody.tidallylocked: és kötött tengelyforgású }. } { Create a comparison function for radius and mass comparisons} {set compare(stat) to: {if stat > 0.95 && stat < 1.05: {OneOf("körülbelül","durván","közel")} egyenlo |elif stat > 1: {if stat > 1000: több ezerszerese |else : {Humanise(stat)} szer nagyobb } |elif stat < 1: {if stat > 0.89: {OneOf("éppen hogy csak","csak")}} kevesebb mint } {if stat < 0.01: 1% |elif stat < 0.1: 10% |elif stat < 0.2: egyötöde |elif stat < 0.3: egyharmada |elif stat < 0.4: 40% |elif stat < 0.5: fele |elif stat < 0.6: kétharmada |elif stat < 0.7: 70% |elif stat < 0.8: 80% |elif stat < 0.9: 90% } }

{_ Radius _}
{if reportbody.radius:
    {if eventdata:
        {_ if data came from event, it is in m & needs to be converted

to km } {set radius to reportbody.radius/1000} |else: { if data came from BodyDetails, it is in km _} {set radius to reportbody.radius} } a {OneOf("bolygó","planéta")} sugara {round(radius,0)} kilométer, {set compare_radius to radius / 6371} {if compare_radius != 0: {compare(compare_radius)} a föld méretéhez{OneOf("képest,","viszonyitva,")} } }

{_ Earth Mass _}
{if reportbody.earthmass:
    {if reportbody.radius:
        illetve a  {OneOf("súlyát","suruségét")} tekintve ez a

{reportbody.bodyclass} |else: A bolygó {OneOf("súlya","surusége")} } {compare(reportbody.earthmass)} A Föld {OneOf("súlyához","suruségéhez")} viszonyitva. } {Pause(1000)} {_ Volcanism} {if len(reportbody.volcanism) > 0: Ezen a bolygón {OneOf("geológia","Vulkanikus","tektonikus")} aktívítást {OneOf("jeleit","nyomait")} {OneOf("észlelem.","észleltem.","érzékelem.","érzékeltem,")}{Pause(1000)} {if reportbody.volcanism.type = 'Geysers': {if reportbody.volcanism.amount = "Major": Nagy számban talalálhatók |elif reportbody.volcanism.amount = "Minor": Alacsony számban találhatók } aktív {if reportbody.volcanism.composition: {if reportbody.volcanism.composition = "Water" : Viz |elif reportbody.volcanism.composition = "Carbon dioxide" : Szén dioxid |elif reportbody.volcanism.composition = "Ammonia" : Ammónia |elif reportbody.volcanism.composition = "Methane" : Metán |elif reportbody.volcanism.composition = "Nitrogen" : Nitrogén |elif reportbody.volcanism.composition = "Helium" : Hélium |elif reportbody.volcanism.composition = "Silicate vapour" : Szilikon}} gejzírek formájában {Occasionally(3, "A felszínen")} |else: {if reportbody.volcanism.amount = "Major": Nagy számban talalálhatók |elif reportbody.volcanism.amount = "Minor": Alacsony számban találhatók } aktív {if reportbody.volcanism.composition: {if reportbody.volcanism.composition = "Water" : Víz |elif reportbody.volcanism.composition = "Sulphur dioxide" Szulfúr dioxid |elif reportbody.volcanism.composition = "Ammonia" : Ammónia |elif reportbody.volcanism.composition = "Methane" : Metán |elif reportbody.volcanism.composition = "Nitrogen" : Nitrogén |elif reportbody.volcanism.composition = "Silicate" : Szilikát |elif reportbody.volcanism.composition = "Metallic" : Fémes }} magma folyam formájában {Occasionally(3, "A felszínen")} }. } {Pause(100)}

{_Atmosphere }
{if len(reportbody.atmosphere) > 0:
    {F('Body atmosphere')}
}
{Pause(100)}

{if reportbody.landable :

    {Pause(100)}
     {set goodmaterials to []}
    {set greatmaterials to []}
    {for material in reportbody.materials:
        {if material.percentage >=

MaterialDetails(material.material).greatpctbody: {set greatmaterials to cat(greatmaterials, [material])} |elif material.percentage >= MaterialDetails(material.material).goodpctbody: {set goodmaterials to cat(goodmaterials, [material])} } }

    {if len(greatmaterials) > 0:
        ez a bolygó nagy mennyiségben tartalmaz
        {if len(greatmaterials) = 1:
           {if greatmaterials[0].material:
              {if greatmaterials[0].material = "Antimony" :
                 Antimont
              |elif greatmaterials[0].material = "Arsenic" :
                 Arzént
              |elif greatmaterials[0].material = "Boron" :
                 Bórt
              |elif greatmaterials[0].material = "Cadmium" :
                 Kadmiumot
              |elif greatmaterials[0].material = "Carbon" :
                 Szént
              |elif greatmaterials[0].material = "Chromium" :
                 Krómot
              |elif greatmaterials[0].material = "Germanium" :
                 Germániumot
              |elif greatmaterials[0].material = "Iron" :
                 Vasat
              |elif greatmaterials[0].material = "Lead" :
                 Ólmot
              |elif greatmaterials[0].material = "Manganese" :
                 Magnéziumot
              |elif greatmaterials[0].material = "Mercury" :
                 Higanyt
              |elif greatmaterials[0].material = "Molybdenum" :
                 Molbdént
              |elif greatmaterials[0].material = "Nickel" :
                 Nikkelt
              |elif greatmaterials[0].material = "Niobium" :
                 Nióbiumot
              |elif greatmaterials[0].material = "Phosphorus" :
                 Foszfort
              |elif greatmaterials[0].material = "Polonium" :
                 Pollóniumot
              |elif greatmaterials[0].material = "Rhenium" :
                 Réniumot
              |elif greatmaterials[0].material = "Ruthenium" :
                 Ruténiumot
              |elif greatmaterials[0].material = "Selenium" :
                 Szelént
              |elif greatmaterials[0].material = "Sulphur" :
                 Ként
              |elif greatmaterials[0].material = "Technetium" :
                 Technéciumot
              |elif greatmaterials[0].material = "Tellurium" :
                 Tellúrt
              |elif greatmaterials[0].material = "Tin" :
                 Ónt
              |elif greatmaterials[0].material = "Tungsten" :
                 Volfrámot
              |elif greatmaterials[0].material = "Vanadium" :
                 Vanádiumot
              |elif greatmaterials[0].material = "Yttrium" :
                 Ittriumot
              |elif greatmaterials[0].material = "Zinc" :
                 Cinket
              |elif greatmaterials[0].material = "Zirconium" :
                 Cirkóniumot

} } |elif len(greatmaterials) = 2: {if greatmaterials[0].material: {if greatmaterials[0].material = "Antimony" : Antimont |elif greatmaterials[0].material = "Arsenic" : Arzént |elif greatmaterials[0].material = "Boron" : Bórt |elif greatmaterials[0].material = "Cadmium" : Kadmiumot |elif greatmaterials[0].material = "Carbon" : Szént |elif greatmaterials[0].material = "Chromium" : Krómot |elif greatmaterials[0].material = "Germanium" : Germániumot |elif greatmaterials[0].material = "Iron" : Vasat |elif greatmaterials[0].material = "Lead" : Ólmot |elif greatmaterials[0].material = "Manganese" : Magnéziumot |elif greatmaterials[0].material = "Mercury" : Higanyt |elif greatmaterials[0].material = "Molybdenum" : Molbdént |elif greatmaterials[0].material = "Nickel" : Nikkelt |elif greatmaterials[0].material = "Niobium" : Nióbiumot |elif greatmaterials[0].material = "Phosphorus" : Foszfort |elif greatmaterials[0].material = "Polonium" : Pollóniumot |elif greatmaterials[0].material = "Rhenium" : Réniumot |elif greatmaterials[0].material = "Ruthenium" : Ruténiumot |elif greatmaterials[0].material = "Selenium" : Szelént |elif greatmaterials[0].material = "Sulphur" : Ként |elif greatmaterials[0].material = "Technetium" : Technéciumot |elif greatmaterials[0].material = "Tellurium" : Tellúrt |elif greatmaterials[0].material = "Tin" : Ónt |elif greatmaterials[0].material = "Tungsten" : Volfrámot |elif greatmaterials[0].material = "Vanadium" : Vanádiumot |elif greatmaterials[0].material = "Yttrium" : Ittriumot |elif greatmaterials[0].material = "Zinc" : Cinket |elif greatmaterials[0].material = "Zirconium" : Cirkóniumot } } és {if greatmaterials[1].material: {if greatmaterials[1].material = "Antimony" : Antimont |elif greatmaterials[1].material = "Arsenic" : Arzént |elif greatmaterials[1].material = "Boron" : Bórt |elif greatmaterials[1].material = "Cadmium" : Kadmiumot |elif greatmaterials[1].material = "Carbon" : Szént |elif greatmaterials[1].material = "Chromium" : Krómot |elif greatmaterials[1].material = "Germanium" : Germániumot |elif greatmaterials[1].material = "Iron" : Vasat |elif greatmaterials[1].material = "Lead" : Ólmot |elif greatmaterials[1].material = "Manganese" : Magnéziumot |elif greatmaterials[1].material = "Mercury" : Higanyt |elif greatmaterials[1].material = "Molybdenum" : Molbdént |elif greatmaterials[1].material = "Nickel" : Nikkelt |elif greatmaterials[1].material = "Niobium" : Nióbiumot |elif greatmaterials[1].material = "Phosphorus" : Foszfort |elif greatmaterials[1].material = "Polonium" : Pollóniumot |elif greatmaterials[1].material = "Rhenium" : Réniumot |elif greatmaterials[1].material = "Ruthenium" : Ruténiumot |elif greatmaterials[1].material = "Selenium" : Szelént |elif greatmaterials[1].material = "Sulphur" : Ként |elif greatmaterials[1].material = "Technetium" : Technéciumot |elif greatmaterials[1].material = "Tellurium" : Tellúrt |elif greatmaterials[1].material = "Tin" : Ónt |elif greatmaterials[1].material = "Tungsten" : Volfrámot |elif greatmaterials[1].material = "Vanadium" : Vanádiumot |elif greatmaterials[1].material = "Yttrium" : Ittriumot |elif greatmaterials[1].material = "Zinc" : Cinket |elif greatmaterials[1].material = "Zirconium" : Cirkóniumot } } |else: {set cur to 0} {while cur < len(greatmaterials): {if cur = 0: {if greatmaterials[cur].material: {if greatmaterials[cur].material = "Antimony" : Antimont |elif greatmaterials[cur].material = "Arsenic" : Arzént |elif greatmaterials[cur].material = "Boron" : Bórt |elif greatmaterials[cur].material = "Cadmium" : Kadmiumot |elif greatmaterials[cur].material = "Carbon" : Szént |elif greatmaterials[cur].material = "Chromium" : Krómot |elif greatmaterials[cur].material = "Germanium" : Germániumot |elif greatmaterials[cur].material = "Iron" : Vasat |elif greatmaterials[cur].material = "Lead" : Ólmot |elif greatmaterials[cur].material = "Manganese" : Magnéziumot |elif greatmaterials[cur].material = "Mercury" : Higanyt |elif greatmaterials[cur].material = "Molybdenum" : Molbdént |elif greatmaterials[cur].material = "Nickel" : Nikkelt |elif greatmaterials[cur].material = "Niobium" : Nióbiumot |elif greatmaterials[cur].material = "Phosphorus" : Foszfort |elif greatmaterials[cur].material = "Polonium" : Pollóniumot |elif greatmaterials[cur].material = "Rhenium" : Réniumot |elif greatmaterials[cur].material = "Ruthenium" : Ruténiumot |elif greatmaterials[cur].material = "Selenium" : Szelént |elif greatmaterials[cur].material = "Sulphur" : Ként |elif greatmaterials[cur].material = "Technetium" : Technéciumot |elif greatmaterials[cur].material = "Tellurium" : Tellúrt |elif greatmaterials[cur].material = "Tin" : Ónt |elif greatmaterials[cur].material = "Tungsten" : Volfrámot |elif greatmaterials[cur].material = "Vanadium" : Vanádiumot |elif greatmaterials[cur].material = "Yttrium" : Ittriumot |elif greatmaterials[cur].material = "Zinc" : Cinket |elif greatmaterials[cur].material = "Zirconium" : Cirkóniumot } } |elif cur < len(greatmaterials) - 1: , {if greatmaterials[cur].material: {if greatmaterials[cur].material = "Antimony" : Antimont |elif greatmaterials[cur].material = "Arsenic" : Arzént |elif greatmaterials[cur].material = "Boron" : Bórt |elif greatmaterials[cur].material = "Cadmium" : Kadmiumot |elif greatmaterials[cur].material = "Carbon" : Szént |elif greatmaterials[cur].material = "Chromium" : Krómot |elif greatmaterials[cur].material = "Germanium" : Germániumot |elif greatmaterials[cur].material = "Iron" : Vasat |elif greatmaterials[cur].material = "Lead" : Ólmot |elif greatmaterials[cur].material = "Manganese" : Magnéziumot |elif greatmaterials[cur].material = "Mercury" : Higanyt |elif greatmaterials[cur].material = "Molybdenum" : Molbdént |elif greatmaterials[cur].material = "Nickel" : Nikkelt |elif greatmaterials[cur].material = "Niobium" : Nióbiumot |elif greatmaterials[cur].material = "Phosphorus" : Foszfort |elif greatmaterials[cur].material = "Polonium" : Pollóniumot |elif greatmaterials[cur].material = "Rhenium" : Réniumot |elif greatmaterials[cur].material = "Ruthenium" : Ruténiumot |elif greatmaterials[cur].material = "Selenium" : Szelént |elif greatmaterials[cur].material = "Sulphur" : Ként |elif greatmaterials[cur].material = "Technetium" : Technéciumot |elif greatmaterials[cur].material = "Tellurium" : Tellúrt |elif greatmaterials[cur].material = "Tin" : Ónt |elif greatmaterials[cur].material = "Tungsten" : Volfrámot |elif greatmaterials[cur].material = "Vanadium" : Vanádiumot |elif greatmaterials[cur].material = "Yttrium" : Ittriumot |elif greatmaterials[cur].material = "Zinc" : Cinket |elif greatmaterials[cur].material = "Zirconium" : Cirkóniumot } } |else: , és {if greatmaterials[cur].material: {if greatmaterials[cur].material = "Antimony" : Antimont |elif greatmaterials[cur].material = "Arsenic" : Arzént |elif greatmaterials[cur].material = "Boron" : Bórt |elif greatmaterials[cur].material = "Cadmium" : Kadmiumot |elif greatmaterials[cur].material = "Carbon" : Szént |elif greatmaterials[cur].material = "Chromium" : Krómot |elif greatmaterials[cur].material = "Germanium" : Germániumot |elif greatmaterials[cur].material = "Iron" : Vasat |elif greatmaterials[cur].material = "Lead" : Ólmot |elif greatmaterials[cur].material = "Manganese" : Magnéziumot |elif greatmaterials[cur].material = "Mercury" : Higanyt |elif greatmaterials[cur].material = "Molybdenum" : Molbdént |elif greatmaterials[cur].material = "Nickel" : Nikkelt |elif greatmaterials[cur].material = "Niobium" : Nióbiumot |elif greatmaterials[cur].material = "Phosphorus" : Foszfort |elif greatmaterials[cur].material = "Polonium" : Pollóniumot |elif greatmaterials[cur].material = "Rhenium" : Réniumot |elif greatmaterials[cur].material = "Ruthenium" : Ruténiumot |elif greatmaterials[cur].material = "Selenium" : Szelént |elif greatmaterials[cur].material = "Sulphur" : Ként |elif greatmaterials[cur].material = "Technetium" : Technéciumot |elif greatmaterials[cur].material = "Tellurium" : Tellúrt |elif greatmaterials[cur].material = "Tin" : Ónt |elif greatmaterials[cur].material = "Tungsten" : Volfrámot |elif greatmaterials[cur].material = "Vanadium" : Vanádiumot |elif greatmaterials[cur].material = "Yttrium" : Ittriumot |elif greatmaterials[cur].material = "Zinc" : Cinket |elif greatmaterials[cur].material = "Zirconium" : Cirkóniumot } } } {set cur to cur + 1} } } } {if len(goodmaterials) > 0: {if len(greatmaterials) > 0: továbbá felelheto nagyobb mennyiségben |else: ez a bolygó nagy mennyiségben tartalmaz } {if len(goodmaterials) = 1: {if goodmaterials[0].material: {if goodmaterials[0].material = "Antimony" : Antimont |elif goodmaterials[0].material = "Arsenic" : Arzént |elif goodmaterials[0].material = "Boron" : Bórt |elif goodmaterials[0].material = "Cadmium" : Kadmiumot |elif goodmaterials[0].material = "Carbon" : Szént |elif goodmaterials[0].material = "Chromium" : Krómot |elif goodmaterials[0].material = "Germanium" : Germániumot |elif goodmaterials[0].material = "Iron" : Vasat |elif goodmaterials[0].material = "Lead" : Ólmot |elif goodmaterials[0].material = "Manganese" : Magnéziumot |elif goodmaterials[0].material = "Mercury" : Higanyt |elif goodmaterials[0].material = "Molybdenum" : Molbdént |elif goodmaterials[0].material = "Nickel" : Nikkelt |elif goodmaterials[0].material = "Niobium" : Nióbiumot |elif goodmaterials[0].material = "Phosphorus" : Foszfort |elif goodmaterials[0].material = "Polonium" : Pollóniumot |elif goodmaterials[0].material = "Rhenium" : Réniumot |elif goodmaterials[0].material = "Ruthenium" : Ruténiumot |elif goodmaterials[0].material = "Selenium" : Szelént |elif goodmaterials[0].material = "Sulphur" : Ként |elif goodmaterials[0].material = "Technetium" : Technéciumot |elif goodmaterials[0].material = "Tellurium" : Tellúrt |elif goodmaterials[0].material = "Tin" : Ónt |elif goodmaterials[0].material = "Tungsten" : Volfrámot |elif goodmaterials[0].material = "Vanadium" : Vanádiumot |elif goodmaterials[0].material = "Yttrium" : Ittriumot |elif goodmaterials[0].material = "Zinc" : Cinket |elif goodmaterials[0].material = "Zirconium" : Cirkóniumot }} |elif len(goodmaterials) = 2: {if goodmaterials[0].material: {if goodmaterials[0].material = "Antimony" : Antimont |elif goodmaterials[0].material = "Arsenic" : Arzént |elif goodmaterials[0].material = "Boron" : Bórt |elif goodmaterials[0].material = "Cadmium" : Kadmiumot |elif goodmaterials[0].material = "Carbon" : Szént |elif goodmaterials[0].material = "Chromium" : Krómot |elif goodmaterials[0].material = "Germanium" : Germániumot |elif goodmaterials[0].material = "Iron" : Vasat |elif goodmaterials[0].material = "Lead" : Ólmot |elif goodmaterials[0].material = "Manganese" : Magnéziumot |elif goodmaterials[0].material = "Mercury" : Higanyt |elif goodmaterials[0].material = "Molybdenum" : Molbdént |elif goodmaterials[0].material = "Nickel" : Nikkelt |elif goodmaterials[0].material = "Niobium" : Nióbiumot |elif goodmaterials[0].material = "Phosphorus" : Foszfort |elif goodmaterials[0].material = "Polonium" : Pollóniumot |elif goodmaterials[0].material = "Rhenium" : Réniumot |elif goodmaterials[0].material = "Ruthenium" : Ruténiumot |elif goodmaterials[0].material = "Selenium" : Szelént |elif goodmaterials[0].material = "Sulphur" : Ként |elif goodmaterials[0].material = "Technetium" : Technéciumot |elif goodmaterials[0].material = "Tellurium" : Tellúrt |elif goodmaterials[0].material = "Tin" : Ónt |elif goodmaterials[0].material = "Tungsten" : Volfrámot |elif goodmaterials[0].material = "Vanadium" : Vanádiumot |elif goodmaterials[0].material = "Yttrium" : Ittriumot |elif goodmaterials[0].material = "Zinc" : Cinket |elif goodmaterials[0].material = "Zirconium" : Cirkóniumot }} és {if goodmaterials[1].material: {if goodmaterials[1].material = "Antimony" : Antimont |elif goodmaterials[1].material = "Arsenic" : Arzént |elif goodmaterials[1].material = "Boron" : Bórt |elif goodmaterials[1].material = "Cadmium" : Kadmiumot |elif goodmaterials[1].material = "Carbon" : Szént |elif goodmaterials[1].material = "Chromium" : Krómot |elif goodmaterials[1].material = "Germanium" : Germániumot |elif goodmaterials[1].material = "Iron" : Vasat |elif goodmaterials[1].material = "Lead" : Ólmot |elif goodmaterials[1].material = "Manganese" : Magnéziumot |elif goodmaterials[1].material = "Mercury" : Higanyt |elif goodmaterials[1].material = "Molybdenum" : Molbdént |elif goodmaterials[1].material = "Nickel" : Nikkelt |elif goodmaterials[1].material = "Niobium" : Nióbiumot |elif goodmaterials[1].material = "Phosphorus" : Foszfort |elif goodmaterials[1].material = "Polonium" : Pollóniumot |elif goodmaterials[1].material = "Rhenium" : Réniumot |elif goodmaterials[1].material = "Ruthenium" : Ruténiumot |elif goodmaterials[1].material = "Selenium" : Szelént |elif goodmaterials[1].material = "Sulphur" : Ként |elif goodmaterials[1].material = "Technetium" : Technéciumot |elif goodmaterials[1].material = "Tellurium" : Tellúrt |elif goodmaterials[1].material = "Tin" : Ónt |elif goodmaterials[1].material = "Tungsten" : Volfrámot |elif goodmaterials[1].material = "Vanadium" : Vanádiumot |elif goodmaterials[1].material = "Yttrium" : Ittriumot |elif goodmaterials[1].material = "Zinc" : Cinket |elif goodmaterials[1].material = "Zirconium" : Cirkóniumot }} |else: {set cur to 0} {while cur < len(goodmaterials): {if cur = 0: {if goodmaterials[cur].material: {if goodmaterials[cur].material = "Antimony" : Antimont |elif goodmaterials[cur].material = "Arsenic" : Arzént |elif goodmaterials[cur].material = "Boron" : Bórt |elif goodmaterials[cur].material = "Cadmium" : Kadmiumot |elif goodmaterials[cur].material = "Carbon" : Szént |elif goodmaterials[cur].material = "Chromium" : Krómot |elif goodmaterials[cur].material = "Germanium" : Germániumot |elif goodmaterials[cur].material = "Iron" : Vasat |elif goodmaterials[cur].material = "Lead" : Ólmot |elif goodmaterials[cur].material = "Manganese" : Magnéziumot |elif goodmaterials[cur].material = "Mercury" : Higanyt |elif goodmaterials[cur].material = "Molybdenum" : Molbdént |elif goodmaterials[cur].material = "Nickel" : Nikkelt |elif goodmaterials[cur].material = "Niobium" : Nióbiumot |elif goodmaterials[cur].material = "Phosphorus" : Foszfort |elif goodmaterials[cur].material = "Polonium" : Pollóniumot |elif goodmaterials[cur].material = "Rhenium" : Réniumot |elif goodmaterials[cur].material = "Ruthenium" : Ruténiumot |elif goodmaterials[cur].material = "Selenium" : Szelént |elif goodmaterials[cur].material = "Sulphur" : Ként |elif goodmaterials[cur].material = "Technetium" : Technéciumot |elif goodmaterials[cur].material = "Tellurium" : Tellúrt |elif goodmaterials[cur].material = "Tin" : Ónt |elif goodmaterials[cur].material = "Tungsten" : Volfrámot |elif goodmaterials[cur].material = "Vanadium" : Vanádiumot |elif goodmaterials[cur].material = "Yttrium" : Ittriumot |elif goodmaterials[cur].material = "Zinc" : Cinket |elif goodmaterials[cur].material = "Zirconium" : Cirkóniumot } } |elif cur < len(goodmaterials) - 1: , {if goodmaterials[cur].material: {if goodmaterials[cur].material = "Antimony" : Antimont |elif goodmaterials[cur].material = "Arsenic" : Arzént |elif goodmaterials[cur].material = "Boron" : Bórt |elif goodmaterials[cur].material = "Cadmium" : Kadmiumot |elif goodmaterials[cur].material = "Carbon" : Szént |elif goodmaterials[cur].material = "Chromium" : Krómot |elif goodmaterials[cur].material = "Germanium" : Germániumot |elif goodmaterials[cur].material = "Iron" : Vasat |elif goodmaterials[cur].material = "Lead" : Ólmot |elif goodmaterials[cur].material = "Manganese" : Magnéziumot |elif goodmaterials[cur].material = "Mercury" : Higanyt |elif goodmaterials[cur].material = "Molybdenum" : Molbdént |elif goodmaterials[cur].material = "Nickel" : Nikkelt |elif goodmaterials[cur].material = "Niobium" : Nióbiumot |elif goodmaterials[cur].material = "Phosphorus" : Foszfort |elif goodmaterials[cur].material = "Polonium" : Pollóniumot |elif goodmaterials[cur].material = "Rhenium" : Réniumot |elif goodmaterials[cur].material = "Ruthenium" : Ruténiumot |elif goodmaterials[cur].material = "Selenium" : Szelént |elif goodmaterials[cur].material = "Sulphur" : Ként |elif goodmaterials[cur].material = "Technetium" : Technéciumot |elif goodmaterials[cur].material = "Tellurium" : Tellúrt |elif goodmaterials[cur].material = "Tin" : Ónt |elif goodmaterials[cur].material = "Tungsten" : Volfrámot |elif goodmaterials[cur].material = "Vanadium" : Vanádiumot |elif goodmaterials[cur].material = "Yttrium" : Ittriumot |elif goodmaterials[cur].material = "Zinc" : Cinket |elif goodmaterials[cur].material = "Zirconium" : Cirkóniumot } } |else: , és {if goodmaterials[cur].material: {if goodmaterials[cur].material = "Antimony" : Antimont |elif goodmaterials[cur].material = "Arsenic" : Arzént |elif goodmaterials[cur].material = "Boron" : Bórt |elif goodmaterials[cur].material = "Cadmium" : Kadmiumot |elif goodmaterials[cur].material = "Carbon" : Szént |elif goodmaterials[cur].material = "Chromium" : Krómot |elif goodmaterials[cur].material = "Germanium" : Germániumot |elif goodmaterials[cur].material = "Iron" : Vasat |elif goodmaterials[cur].material = "Lead" : Ólmot |elif goodmaterials[cur].material = "Manganese" : Magnéziumot |elif goodmaterials[cur].material = "Mercury" : Higanyt |elif goodmaterials[cur].material = "Molybdenum" : Molbdént |elif goodmaterials[cur].material = "Nickel" : Nikkelt |elif goodmaterials[cur].material = "Niobium" : Nióbiumot |elif goodmaterials[cur].material = "Phosphorus" : Foszfort |elif goodmaterials[cur].material = "Polonium" : Pollóniumot |elif goodmaterials[cur].material = "Rhenium" : Réniumot |elif goodmaterials[cur].material = "Ruthenium" : Ruténiumot |elif goodmaterials[cur].material = "Selenium" : Szelént |elif goodmaterials[cur].material = "Sulphur" : Ként |elif goodmaterials[cur].material = "Technetium" : Technéciumot |elif goodmaterials[cur].material = "Tellurium" : Tellúrt |elif goodmaterials[cur].material = "Tin" : Ónt |elif goodmaterials[cur].material = "Tungsten" : Volfrámot |elif goodmaterials[cur].material = "Vanadium" : Vanádiumot |elif goodmaterials[cur].material = "Yttrium" : Ittriumot |elif goodmaterials[cur].material = "Zinc" : Cinket |elif goodmaterials[cur].material = "Zirconium" : Cirkóniumot } } } {set cur to cur + 1} } } } {if len(greatmaterials) > 0 || len(goodmaterials) > 0: . } } }

2018-05-16 9:34 GMT+01:00 Attila Hermann hermannattila88@gmail.com:

So it is start to try access to eventdata and if it is fail then use Bodydetails().i was working all night so later this afternoon i share my script so...

Brian Wilson notifications@github.com ezt írta (időpont: 2018. máj. 16., Sze 7:58):

If you are using the BodyDetails() function then you are accessing data from a remote server.

There are currently some differences between the way that you would write the script depending on whether you were using information from the event or from the BodyDetails() function. For example:

  • You would access the event information from `{event.rotationperiod}'
  • You would access information passed to reportbody from the BodyDetails() function using {event.rotationalperiod}

I've submitted a PR that will make either {event.rotationperiod}' or{event.rotationalperiod}` acceptable.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/559#issuecomment-389415202, or mute the thread https://github.com/notifications/unsubscribe-auth/AlU1NuK3iF0fNZ42ZJZsqvx8Z8JNGvIYks5ty84CgaJpZM4T_iZT .

Tkael commented 6 years ago

PR merged.

hermattila commented 6 years ago

Thx i noticed.😄😉

Brian Wilson notifications@github.com ezt írta (időpont: 2018. máj. 20., Vas 22:48):

Closed #559 https://github.com/EDCD/EDDI/issues/559.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EDCD/EDDI/issues/559#event-1636062202, or mute the thread https://github.com/notifications/unsubscribe-auth/AlU1Nj_RMtGoGgL8E-8rje3hgJWelD6dks5t0eSagaJpZM4T_iZT .