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
    They could add new events, but they do have some they could already use.

    To receive messages, they can use ModInterface.Game_Event that is used for all other information we receive. To send, use ModGameAPI.Game_Request. This would work just as effectively as a separate event and method.
     
    #81
  2. cmwhee

    cmwhee Commander

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

    ..... :facepalm:

    right, the cmdIds are just a way of identifying the events

    I'm not on a window machine right now, so tracking down the actual cmdIds would take a bunch of work, but for instance:

    cmdId=100: Chat Event
    cmdId=101: Chat Request

    Handling them both through the same api makes things easier for the developers, separating them might have some benefit, but right now it's not clear that would be true, because no one has built anything yet
     
    #82
    joemorin73 likes this.
  3. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Exactly. It looks like it is what would make the most sense. The only problem I have with the CmdId is it contains both Requests and Events. I feel they should be two separate enums or the same cmdid is used for the request and the response.
     
    #83
  4. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    Meh, i kind of like the system as it stands, it provides a single interface and there's no way to screw up the data if you log it.

    To be honest I can see it both ways, but I don't think the current system deserves criticism until someone identifies a case where having a single enum actually prevents them from doing something. If the engine is structured in such a way that having one enum makes it more performant (maybe they have some cool bitmask trick that lets them do path selection) then it seems silly to say, "BUT IT'S NOT THE INTERFACE THAT SEEMS RIGHT"
     
    #84
    joemorin73 likes this.
  5. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    You're right. Damn you and your logic! ;)
     
    #85
  6. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    awww, we just had a forum conversation where there was a disagreement and it didn't devolve into a ****-slinging flame war.

    so much better than SE
     
    #86
  7. stimdealer0001

    stimdealer0001 Captain

    Joined:
    Sep 14, 2015
    Messages:
    159
    Likes Received:
    149
    any completed mods yet? anyone?
     
    #87
  8. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I have made a simple Death Messenger mod. It works without using Telnet, but doesn't use chat.
     
    #88
  9. stimdealer0001

    stimdealer0001 Captain

    Joined:
    Sep 14, 2015
    Messages:
    159
    Likes Received:
    149
    Oh sweet. Yeah I would love to dive into mod development, but need to brush up on my coding skills first. Too much hardware work lately.
     
    #89
  10. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    I'm checking in the code to the GitHub with the other sample. If people are interested, I can offer a compiled version.
     
    #90
  11. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    @Jascha
    Request for new Request and Event.

    Request_EntityID/Event_EntityID. Allow for the generic inquiry of EntityID to discover what it is. (Get the name and what it is. (Player, NPC, POI, Base/CV/SV/HV, etc...))

    We get information on EntityIDs, but no way to look up what they are.
     
    #91
    cmwhee likes this.
  12. cmwhee

    cmwhee Commander

    Joined:
    Oct 31, 2016
    Messages:
    118
    Likes Received:
    72
    approved!
     
    #92
    joemorin73 likes this.
  13. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Hey guys,

    am back again and will look into everything. Thanks a lot!

    Telnet...Yes... we had no time to do it before, but I put it on the top of the MOD/API Changes for 6.0.
    You definetly need the telnet at the moment, since there are a few vital function that are not possible over the api.

    Thats not a game feature but a EAH feature. so it cannt be accesed over the api

    Will provide the list soon on the wiki.
    Have to get through everything i missed first ;)
     
    #93
  14. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    New API Forum-Area implemented. Please see the new threads for bugs/feedback/modding :)
     
    #94
  15. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Perhaps close this thread and move to the new forum?
     
    #95
    cmwhee likes this.
  16. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Just saw we were already moved there. (Ignore me! ;) )
     
    #96
  17. joemorin73

    joemorin73 Captain

    Joined:
    Aug 24, 2016
    Messages:
    319
    Likes Received:
    170
    Perhaps we should allow everyone to create posts in this forum? This would allow mod creators to post their creations and support them?
     
    #97
    ButtonPusher likes this.
  18. Stinefelt

    Stinefelt Ensign

    Joined:
    Sep 1, 2016
    Messages:
    8
    Likes Received:
    8
    Yes!
     
    #98
  19. Frigidman

    Frigidman Rear Admiral

    Joined:
    Mar 19, 2016
    Messages:
    2,280
    Likes Received:
    3,715
    Might want to fix the OP of this thread. I normally browse the forums using the 'new posts', and didn't even notice the whole new category lol... so then I clicked on that and got an error. Found it though, but yeah... I nav weird.
     
    #99
  20. Stinefelt

    Stinefelt Ensign

    Joined:
    Sep 1, 2016
    Messages:
    8
    Likes Received:
    8
    Yep moving a thread sometimes breaks the links!
     
    #100

Share This Page