[MOD EXT] Empyrion Scripting - Scripts

Discussion in 'The Hangar Bay' started by Ephoie, Mar 22, 2020.

  1. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    The "teleporter" script only work on MP server setup. You can set up and use a dedicated Empyrion server in parallel on your computer.
     
    #781
  2. johnny1972

    johnny1972 Ensign

    Joined:
    Jul 11, 2019
    Messages:
    5
    Likes Received:
    0
    Thanks I will look into it. Great job on the scrpts. Great work.
     
    #782
  3. TOFFEL

    TOFFEL Ensign

    Joined:
    Oct 13, 2023
    Messages:
    8
    Likes Received:
    0
    Hello ASTIC,
    that helped! Thanks a lot.

    Any Idea how to align Numbers correctly? Like this without the underline _
    __1 Text
    _10 Text
    100 Text

    Tried these formats with no luck:

    [​IMG]
     
    #783
  4. johnny1972

    johnny1972 Ensign

    Joined:
    Jul 11, 2019
    Messages:
    5
    Likes Received:
    0
    Hello. Astic.
    I have been working on getting the auto harvest script to work. The LCD blink and they show when the crops are grown but it will not auto harvest the crops. I have over 20k credits in the fridge. I have your script that you wrote and 1 that comes with the astra mk2 hyrdo build and the game still not harvest the crops. I was able to stop blinking LCD but still they are not doing harvest. I started a co-op server if that matters. The LCDs show that crops are ready to harvest but nothing happens. Ok I started a new Co-Op game and the script will harvest the small crops but not harvest the hydro bay crops.
     
    #784
    Last edited: Nov 3, 2023
  5. Munin666

    Munin666 Ensign

    Joined:
    Mar 17, 2021
    Messages:
    9
    Likes Received:
    4
    Hallo,

    ich hätte gerne ein Script, welches von jedem CV in der Nähe meiner Base den Refill Container auffüllt.
    Ist sowas realisierbar?

    In den Schiffen selbst habe ich schon ein Script, welches vom Refill Container aus das Schiff befüllt, nun hätte ich dem entsprechend gerne die Möglichkeit diese Container der Schiffe zu befüllen, von einem zentralem Standort aus.

    Es wäre gut wenn man eine Maximale Menge angeben könnte, was in diese Container geht.

    Und gibt es eigentlich ein Refill Script, welches auch die Energykristalle berücksichtigt?
    Denn bei mir wird alles verwendet, nur die nicht.
     
    #785
  6. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Mal eine Verständnisfrage: Teleporter innerhalb der selben Basis untereinander verbinden geht nicht ? (Nicht Teleporternetzwerk)

    zB.
    im Godmode : gm iv

    TeleporterUG@Spaceport Omicron 3552:Omicron
    TeleporterWG@Spaceport Omicron 3552:Omicron
    Ich bekomme dann diese Meldung:

    [​IMG]
     
    #786
  7. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    Teleporter mit festem Ziel sind nur noch bei POIs erlaubt die vom Spiel erzeugt werden
     
    #787
  8. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Thx, da muß ich mir was anderes einfallen lassen. Ich wollte eben nicht quer zu Fuß duch die Basis(Flugfeld) laufen. ;)
    Portale funktionieren noch. :)
     
    #788
    Last edited: Nov 13, 2023
  9. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
     
    #789
    Palmeza likes this.
  10. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Ich hab jetzt ein wenig aufgeräumt und probiert, anscheinend läuft es jetzt rund..mal sehen. ;)
    Die Ordnerstruktur müßte so passen (?). :confused:
    [​IMG]
     
    #790
  11. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Hallo,
    da ja seid dem Update 1.10. die ID`s nicht mehr in den Cfg Dateien enthalten sind. (Config_Example.ecf fehlt ja) haben ich mal aus der letzten Config_Example.ecf aus der 1.9. die ID`s extrahiert. Die sind zwar ungeordnet, müßten aber alle verhanden sein. :);)
    Jetzt kommen noch die anderen sortiert hinzu.
     

    Attached Files:

    #791
    Last edited: Nov 21, 2023
  12. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    • Die "unteren" Nummern sind (relativ) fest, aber auf Grund der dynamischen Nummern arbeiten viele (leider nicht alle) Teile im Scripting z.B. ID Listen auch mit den symbolischen Namen
    • SP ist für das Scripting leider sehr undankbar weil die API des Spieles einige unschöne Fehler im SP hat. Besser einen Server zu nutzen oder selber einen "dedicated" parallel auf dem eigenen Rechner laufen zu haben
     
    #792
  13. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Bei der Vega AI mußte ich die Id`s ändern, sonnst gingen einige Scripte nicht, wie eben Ammo auffüllen oder Energiezellen. (was der der Aufüllen wollte--oha..lustig..:rolleyes:)

    "dedicated" Server, runtergeladen, noch einrichten..garnicht so einfach.
     
    #793
    Last edited: Nov 22, 2023
  14. BugiTree

    BugiTree Ensign

    Joined:
    Oct 3, 2022
    Messages:
    24
    Likes Received:
    0
    Geschafft...D-Server läuft..nur noch ein wenig anpassen. :)
     
    #794
    Last edited: Nov 25, 2023
  15. TOFFEL

    TOFFEL Ensign

    Joined:
    Oct 13, 2023
    Messages:
    8
    Likes Received:
    0
    Hello ASTIC,

    This code works.
    -----------------------------------------------------
    {{~#items @root.E.S 'Lager'}}
    Item: {{this/ID}} {{this/Name}}
    {{~split 'Text1;Text2' ';' true}}{{set 'ArrExcl' .}}{{/split}}
    {{~#loop @root.Data.ArrExcl}}
    {{~/loop}}
    {{~/items}}
    -----------------------------------------------------
    Item: {{this/ID}} {{this/Name}} in row 2 = correct (before the loop).

    This code does not work.
    -----------------------------------------------------
    {{~#items @root.E.S 'Lager'}}
    {{~split 'Text1;Text2' ';' true}}{{set 'ArrExcl' .}}{{/split}}
    {{~#loop @root.Data.ArrExcl}}
    Item: {{this/ID}} {{this/Name}}
    {{~/loop}}
    {{~/items}}
    -----------------------------------------------------

    When Item: {{this/ID}} {{this/Name}} comes within the loop (row 4) the variables from "items" are empty.
    Conclusion: A loop breaks the reference to "items ". Any Idea?
     
    #795
    Last edited: Dec 8, 2023
  16. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    In the loop, this is the individual objects from ArrExcl. To access objects above the scope, you must insert a ../ for each level. Since you want to go one level higher here
    Code:
    Item: {{../ID}} {{../Name}}
     
    #796
  17. Scrapper

    Scrapper Ensign

    Joined:
    Nov 30, 2023
    Messages:
    1
    Likes Received:
    0
    Hello ASTIC

    I'm not very good with scripts. I was wondering if it was possible for a script to give a real-time information on what a constructor is crafting and the time remaining on the item being crafted.
     
    #797
  18. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,085
    Likes Received:
    731
    Not yet, Eleon is working on an API for the constructor with which this will be possible
     
    #798
  19. lemenade

    lemenade Ensign

    Joined:
    Nov 28, 2023
    Messages:
    1
    Likes Received:
    0

    Hello there! I am sad to report that the file you have posted is unable to be accessed at this time. Is there an alternate method to access your script? I would love a variation to use in my future builds. I'm always impressed by the people who can directly create these kinds of things!

    EDIT: My apologies. It appears after posting my access was granted. Please disregard my post. I assume posting is a requirement before being allowed certain access to the forums.
     
    #799
    Last edited: Dec 10, 2023
  20. Mycroft_Groks

    Mycroft_Groks Lieutenant

    Joined:
    Aug 17, 2018
    Messages:
    51
    Likes Received:
    8
    Is there a way to tell when sundown is on a planet? I'd like to set up a script to turn on and off lights only when it's dark out.
     
    #800
    tanner782 likes this.

Share This Page