API Feedback and Suggestions

Discussion in 'Empyrion API' started by Jascha, Mar 8, 2017.

  1. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    I would love if we could get an API to send a patrol ship to a certain location. IIRC, the yaml file lets one specify the patrol endpoints, but it would be cool to extend it to let one send them on a custom route.
     
    #261
  2. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Thanks,
    I wanted to say it would belong more into playfield design, but I see your point. I write it down.
     
    #262
  3. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    I've confirmed that Request_ConsoleCommand("remoteex ...") works.

    unfortunately aimanager adddronewave is broken, but you know, baby steps
     
    #263
  4. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    after looking at this, it would be great if we could get arguments for aimanager that included location, so we're not limited to spawning on players (which is problematic when players are underground, or there are existing planetary bases)
     
    #264
    Mortlath likes this.
  5. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Thanks for the test.
    Can you give more details why its broken and how to reproduce it?
     
    #265
  6. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    when I close an ItemExchange window, this is what I get when I log the information being received
    id= 3026
    title=
    desc=
    items= Eleon.Modding.ItemStack[]
    buttonText=

    three of the fields are blank and I Really need this information for what I'm trying to do.
     
    #266
  7. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Those 3 messages are only for sending it to the Game not to recieve them. Since you already knew them.
     
    #267
  8. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    aw poo, you mean I'm going to have to have my mod remember that information?
    I'm trying to make a mailbox mod; I need title to track who to send to, Message for the message and button text for when the player checks their mail (if it says "Next Message" it opens the next message, if it says "End of Messages" then it closes the window).
    I can work around it but I sure would have made this project a whole lot easier for me.
    Thank you
     
    #268
  9. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
  10. oshadow

    oshadow Commander

    Joined:
    Dec 10, 2015
    Messages:
    55
    Likes Received:
    21
    please add to Eleon.Modding.StatisticsType
    StructSpawned
    StructAttacked
    StructTouched
     
    #270
    Mortlath likes this.
  11. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    Can we get access to the events like the PDA does? Or have a way for the PDA to generate events for mods to consume?

    I'd really like to know if a user has flipped a switch, etc.
     
    #271
  12. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Its one of the next things on the list

    I'll write it down.
    Touched you can see already in the structure list, but the event not yet. But both attacked and touched could cause a flood of events.
     
    #272
  13. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    It would be great to have a way to disable the ability to warp for a specific ship, or disable the ability for all vessels in a defined bounding box.
     
    #273
  14. Mortlath

    Mortlath Commander

    Joined:
    Jul 26, 2017
    Messages:
    49
    Likes Received:
    26
    A way to add/edit inventory inside a structure. an API that takes a entity ID and a device name (or user's custom named device) string (if duplicate devices found, just pick the first one) and an item stack would be perfect.
     
    #274
  15. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    The following functions will be implemented in A7.3
    * Event_GameEvent: Game event (PDA)
    * Event_PdaStateChange: PDA Chapter activated / deactivated / completed event
    * Structure: PilotID
    * Structure: CoreType
    * Request_Entity_SetName (To change name of a structure)

    Sample project is/will be updated
     
    #275
  16. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Just heads up:
    * Event_GameEvent: Game event (PDA)
    Will be deactivated for A 7.3
    We need more time to test it and get it done. Maybe with A8.0

    The rest is implemented.
     
    #276
  17. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    Could Jascha or Eleon add a way to reload mods without having to restart the server?

    So we can upload new versions of mods and implement them without disrupting players.
     
    #277
  18. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    Request:

    ULONG for seqNr (not SHORT), and LONG for tick (not ULONG)

    having a ulong seqnr would allow use to use random without ever eeding to worry about collisions. we could also use cool LSH tricks to do payload checksums/validation

    right now, comparing two ticks is very hard, because you can't subtract them and get negative results. We would have to run a server for 106751991167 days at 1 tick/ms to get the benefit of ulong over long, but using longs would allow us to do easy tick comparison
     
    #278
  19. Florian Hirson

    Florian Hirson Ensign

    Joined:
    Dec 8, 2017
    Messages:
    10
    Likes Received:
    6
    It would be nice to add an max stack size in the Itemstack class, because I want to group 2 itemstack of the same id
     
    #279
  20. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    We have an open Item list online if you need to know the max Item Stack. We keep this always up to date.
     
    #280

Share This Page