1. Jascha

    Jascha Administrator

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

    so you found the discord information?
    What mistake did you find with the token? If you mean that it does not show again... its since its encrypted, just a protection.
     
    #41
  2. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Hello Jascha, i found token but my discord bot stay disconnected on my discord server....

    I created a bot, found channels id's etc...
     
    #42
    Last edited: Dec 21, 2017
  3. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Did you click "Reload Discord" or restarted the tool?
    Do you see any erros in the log? Maybe the permissions are not right or firewall?
     
    #43
  4. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Thank you for your answer.
    Yes i did it and nothing particular in logs.

    But when i close EAH, i have an error microsoft.
     
    #44
  5. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Well, i think microsoft errors become when i click lot of time on "reload discord" and after cut off EAH.
    I have no errors anymore but nothing is working....
     
    #45
  6. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Could you send me your logs please. Would like to take a look.
    Maybe reenter the token again and klick on reload. It should work quite easy.
     
    #46
  7. xXDeathXx

    xXDeathXx Commander

    Joined:
    Aug 31, 2017
    Messages:
    87
    Likes Received:
    67
    hello, would or could you show an example of how the faction restriction works, i know theres a button but where do i put the information in and if you could just give me an example that would be great, thanks for the features.
     
    #47
  8. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Hello, Jascha,

    Before sending logs, i can say that there is no errors about Discord problems. Witch log can i send ?

    I edited Settings.XML and it seems that discord parameters are in it. (discord token seems to be encoded). Is there a problem with some dll ?
    Do i need a specific visual c++ ? (i have 2005, 2008, 2010, 2013, 2015 and .NET 4.7)

    Something missed on my bot creation ?
     
    #48
  9. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Do we need to put "public bot" ?
    Do we need "Oauth2 code grant" ?
     
    #49
  10. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    First you need to set the Channel ID and the Token

    Token ID = From your Discord API Dashboard
    Channel ID = Channel right click > Copy ID (if activated in your settings > appearance)

    Important: DO NOT edit the Settings.xml! the token is crypted.

    upload_2017-12-22_12-55-7.png

    If you don't want to use Public or Admin channel, then enter a 0.
    Click on "Set Discord token" and enter the token. Click ok. Do not click again and lick ok without entering anything, it will overwrite your token with nothing.

    Then enter Faciton channel IDs
    upload_2017-12-22_12-56-53.png

    Then go to config and click on "Reload Discord".
    Then start to write in public/faction depending on what you set up.
    If it does not work click Reload "Discord again"
    Try to chat again

    Public Channel: Only global chat is shown in discord
    Admin Channel: Only alerts like "ADMIN" will be send to discord and vice versa.
    Faction chanel: Only Faction chat of that faction will be send to discord and vice versa.

    If that does not work. restart the tool. If that still does not wortk, please send me the tool logs: You find them in the tool folder "Logs\" and the files are called something like: "Log_20171222.txt" The numbers represent the date.


    Not sure what you mean with that.
     
    #50
    Last edited: Dec 24, 2017
  11. Jascha

    Jascha Administrator

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

    First, set up the restrictions in the "Playfields" list
    upload_2017-12-22_13-4-15.png

    Belongs to Origin should be 999 if not set. there is a button on the bottom to reset them all in case they are on 0.
    If you want to set up a restricted Playfield for a origin:
    Enter the Origin Number in "Belongs to Origin"

    If you want to set up a restricted Playfield for a faction:
    Enter the Faction abbreviation in "Belongs to Faction"

    If you want to set up a restricted Playfield for a player:
    Enter the player Steam ID in "Belongs to Player"

    If you want to allow multiple player/factions just sepperate them with #

    If you want to allow a certain faction, but also some extra players enter the faction abrv. in the "Belongs to Faction" column and also the Player Steam Id in the "Belongs to Player" column.

    Then go to config and activate "Playfield Faction Restrictions"

    upload_2017-12-22_13-2-8.png

    That should be all.

    Keep in mind: Admins are protected. So if you want to test it you should set your role to "Player" to feel it ;).

    Hope that helps. If not let me know.

    I'll add it soon to the docu.
     
    #51
  12. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
  13. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Jascha,

    Thank you very much for all.
    Well i did it again and again and no way.
    I tried to open EAH on windows firewall. Do i need to start it on admin ? (i'll try it)
    Bot stay offline and no chat in any way. I leave faction discord to 0 (no need for now).

    Here is my log. I replaced my steam 64 id with 0.
     

    Attached Files:

    #53
  14. Jascha

    Jascha Administrator

    • Moderator
    Joined:
    Jan 22, 2016
    Messages:
    1,141
    Likes Received:
    713
    Thanks
    hm no Error. Can you try and use a wrong token. Does it give you any error?
    Then try with correct token and try a wrong channel ID. Do you get an Error?
    If those two give you an Error, then something is not set up right on your discord. But I don't know discord that well :(
     
    #54
  15. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Jascha,
    You was right !

    Lot of errors with wrong token and when token is wrong, i also have errors from channels id's.
    I progress, thank you.

    It mean that connection is established correctly. I will investigate from discord, but where ???
     
    #55
  16. xXDeathXx

    xXDeathXx Commander

    Joined:
    Aug 31, 2017
    Messages:
    87
    Likes Received:
    67
    Patwar goto your discordapp.com >>> goto your bot >>> when your done making it you'll see somewhere that says

    APP BOT USER
    Username: example#1234
    Token: click to reveal <---- click this and copy it for your token
     
    #56
  17. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    Yes, i did it but after i create bot... but i think at something....
    Is it necessary to add bot with this link : https://discordapp.com/oauth2/authorize?etcetcetc..... ?

    EDIT :
    I answer to me. Yes, we need to do this otherwise we have not bot started when EAH start and an beautiful 403 error.

    So why my bot stay offline ???
     
    #57
    Last edited: Dec 22, 2017
  18. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    OK.
    I used an other bot already on line on my Discord server (used his token).

    It is working. It seems to work on half.
    Empyrion to Discord : OK.
    Discord to Empyrion : NoK.

    It is perhaps the 443 port used by textual part.
    I have a problem because this port is mapped to go on my Linux server. Not to my game server.

    I think bot don't connect because there is an half connection established.
    So i obtain an half working by using a bot already connected.

    Will have to verify it and how to use an other port...
    If i understand right, to have a full use of this feature, we actually have to open 443 port to go to empyrion server (EAH)...

    To be confirmed...
     
    #58
  19. Taelyn

    Taelyn Guest

    Your bot stays offline since it isnt programmed. All u did is made a bot. U didnt use any special program code to make it run.
    Should not matters tho if its online or offline. All u need is the Token from it for EAH
     
    #59
  20. Patwar

    Patwar Commander

    Joined:
    Dec 6, 2015
    Messages:
    161
    Likes Received:
    25
    You didn't read my last post.... :D

    And if bot is disconnected, there is no activity. It's completly normal.

    EDIT :

    So, for testing, i redirected port 443.
    No result.
    Bot stay offline. So, no text dialog.

    I used again the connected bot. Same result. half working.
    So there is two problems : Bot connecting "ON LINE" on Discord and two ways dialog not working.

    Waiting for a solution (if there is one).
     
    #60
    Last edited: Dec 22, 2017

Share This Page