[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,015
    Likes Received:
    712
    Found another divide by Amount :-(
    https://github.com/GitHub-TC/EmpyrionScripting/releases/tag/13.0.6
    should work now.
    Sorry for the inconvenience
     
    #841
  2. ctthespian

    ctthespian Ensign

    Joined:
    Jul 13, 2022
    Messages:
    6
    Likes Received:
    0
    Any answer to why the configuration.json is being created in the save folders with the default amounts instead of the values set in the config file in the mods\empyrionscripting folder? Should the value be "ItemId": 4344 or "ItemName": "MoneyCard" for the salary lines in the \Mod\EmpyrionScripting\configuration.json? Seems regardless there is a configuration.json that is created with the Salary lines with the default cost values in the saves folder ie Empyrion - Galactic Survival\Saves\Games\NewGame_4\Mod
     
    #842
  3. Mycroft_Groks

    Mycroft_Groks Lieutenant

    Joined:
    Aug 17, 2018
    Messages:
    47
    Likes Received:
    7
    Astic,
    Is there anything in the API to allow scripts to post messages in the ingame chat? Maybe elevated so it has to be from an admin core structure?
     
    #843
  4. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,015
    Likes Received:
    712
    The configuration.json in the content/mod directory is overwritten with every mod update and is also not in the (normal) backup of many servers.
    Hence the mod configuration in the savegame. This does not usually change that often on a server.
    But I'll see if I can find a directory for "templates"
     
    #844
  5. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,015
    Likes Received:
    712
    You can currently open dialogs, but I'll see if I can also include a chat/info output.
    In any case, this would be limited to the global (admin) channels and only the faction channel would be accessible for players
     
    #845
  6. Mycroft_Groks

    Mycroft_Groks Lieutenant

    Joined:
    Aug 17, 2018
    Messages:
    47
    Likes Received:
    7
    Ok. that's what I'm looking for. Admin posting in global is exactly what I'm looking to do
     
    #846
  7. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,015
    Likes Received:
    712
    First steps...

    [​IMG]

    [​IMG]
    [​IMG]
     
    #847
  8. Mycroft_Groks

    Mycroft_Groks Lieutenant

    Joined:
    Aug 17, 2018
    Messages:
    47
    Likes Received:
    7
    Very appreciative!! This is great!
     
    #848
  9. m1ckeyten

    m1ckeyten Ensign

    Joined:
    Jul 9, 2019
    Messages:
    19
    Likes Received:
    5
    Hey, any way to disable the mod while the server is on
     
    #849
  10. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,015
    Likes Received:
    712
    No
    What is the "use case" for this? Why would you want to deactivate the mod, the DLL is loaded into the process and blocked by it.
    Replacing the mod via ModLoader, as with my other mods, is unfortunately not possible with the new ModAPI
     
    #850
  11. m1ckeyten

    m1ckeyten Ensign

    Joined:
    Jul 9, 2019
    Messages:
    19
    Likes Received:
    5
    I just wanted the idname and iconid json files created by the mod for the EWA, but i dont want the mod to be active

    edit :
    NameIdMapping.json
    IdIconMapping.json
     
    #851
  12. ASTIC

    ASTIC Rear Admiral

    Joined:
    Dec 11, 2016
    Messages:
    1,015
    Likes Received:
    712
    Switching off the mod while the server is running is not implemented or planned
     
    #852
    m1ckeyten likes this.

Share This Page