API Feedback and Suggestions

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

  1. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Documentation is limited. I think we'll need to start a Wiki to document the methods.
     
    #41
    Marty, Jascha and dustinduse like this.
  2. geostar1024

    geostar1024 Rear Admiral

    Joined:
    Jan 24, 2016
    Messages:
    1,483
    Likes Received:
    2,459
    Would modifying block properties be possible with this?
     
    #42
  3. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Not optimistic, but can you give an example? (Devs can tell you if it is possible now or in the future.)
     
    #43
  4. geostar1024

    geostar1024 Rear Admiral

    Joined:
    Jan 24, 2016
    Messages:
    1,483
    Likes Received:
    2,459
    Most basically, changing the mass of an existing block; for example, making all L Steel Blocks have a mass of 10 tons rather than 1 ton.
     
    #44
  5. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I'm going to guess no. @Jascha can give more specifics.
     
    #45
  6. dustinduse

    dustinduse Commander

    Joined:
    May 18, 2016
    Messages:
    31
    Likes Received:
    17
    To be honest. Have not had a chance to check this out yet. But I'm hoping I can modify turret AI.
     
    #46
    Marty likes this.
  7. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Did some testing of this and found a few comments and issues.
    • Drowning never occurs. When you drown, Oxygen is triggered.
    • Suicide appears as 0, not 8 as it should.
    • Death from wildlife appears as a 10.
    • Bleedouts also appear as 0.
     
    #47
    Last edited: Mar 10, 2017
    Jascha likes this.
  8. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I see how to send messages on the server. I don't see how to listen for them though.
     
    #48
  9. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Every time an event is fired from game.
    This could be:
    - Playfield loaded/unloaded
    - Change of faction
    - Death of player
    - Structure core removed
    - Structure turned on/off
    - ...
    Thanks we will think about it. Might make sence. We will also change the forum in the next days to have our own section g

    Exactly. For now we dont have anything, but the thought is to do a wiki. Until then we could gather all infos in preperation.

    Not yet. That might be something for a "MOD" in general... I'l note it maybe we could also do something in that direction.

    Not yet.

    nice thanks. Will give it furhter

    Not yet possible. Still telnet needed. Mabye with 6.0. Its on our list to completly "replace" telnet.
     
    #49
    joemorin73 likes this.
  10. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I have to say, I am a little excited about this now. The availability of the API is nice, but I also feel it is being well supported. This is definitely appreciated!
     
    #50
  11. Our Grid

    Our Grid Captain

    Joined:
    Nov 2, 2016
    Messages:
    100
    Likes Received:
    59
    This is an exciting step forward!

    It appears you can Get, Read or Set properties with direct interaction, but I do not yet see anything for Listening, Waiting and Executing code based on a given event. Is that an intended direction for the tool in the future?

    Of course I'm on the seat of my chair thinking of scripting events based on triggers; core attacked in a POI triggers a big reinforcement spawn headed to attack the player/ship that damaged it GetDamagingObject(oCore); and all that sort of stuff.

    This game (the playfields) would literally come alive overnight if we were able to start defining functions and the tool was listening - even running 100 lines every 10 heartbeats or, Whatever! I'd take whatever I can get! :D
     
    #51
  12. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Most of the plumbing is already there. All that is needed is more events. In this case, an event triggered when a structure is damaged.
     
    #52
    banksman45 likes this.
  13. dustinduse

    dustinduse Commander

    Joined:
    May 18, 2016
    Messages:
    31
    Likes Received:
    17
    If this is going towards being a flow blown API. can we draw inspiration from these guys?
     
    #53
    Daede and banksman45 like this.
  14. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    #54
    Marty, RexXxuS, Jascha and 2 others like this.
  15. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    @Jascha
    More info.

    Death from Disease or Parasite returns a 0.

    Int3 returns the entityID of who killed you. You don't need to change anything.
     
    #55
    RexXxuS likes this.
  16. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    When using CmdId.Request_InGameMessage_AllPlayers, the timeout value doesn't appear to be working. (IdMsgPrio nTime)
     
    #56
  17. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Thanks a lot.
    I'm quite busy the next days and just online via phone. Will look into the things and create the new forum/Git/Licence later and will contribute more to the docu already. Also some more infos like Item IDs/Names and so on.

    But keep on posting :).

    Thanks a lot for all the feedback
     
    #57
    Last edited: Mar 11, 2017
  18. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I'll keep flooding while you are gone. ;)

    New issue some may not know. It appears Empyrion only permits on Telnet connection. This might cause some problems until the API supports the commands internally.
     
    #58
  19. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    has anyone gotten this working? I'm unable to get the client app to connect
     
    #59
  20. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    in case anyone else is confused by this:

    you must start the mod server before you start the empyrion dedicated server
     
    #60

Share This Page