EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Tools (https://www.eqemulator.org/forums/forumdisplay.php?f=593)
-   -   DiscordEQ - OOC <=> Discord Chat (https://www.eqemulator.org/forums/showthread.php?t=40390)

Shin Noir 02-10-2016 12:16 AM

DiscordEQ - OOC <=> Discord Chat
 
Discord is an all-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone. Stop paying for TeamSpeak servers and hassling with Skype. Simplify your life.

tl;dr: This tool takes Discord and makes it able to communicate with everquest's OOC chat. It can be accomplished without needing to restart your EQEMU server.

You'll need: a static zone and the know-how of adding a quest script. very basic SQL understanding. how to edit the eqemu_config.xml file. The ability to follow instructions.

Instructions are rough, but are here: http://xackery.github.io/discordeq/.

I have no guarantees this will work for you, feel free to post issues on the github.

You can join my discord server by following this link > here < and talk for other support.


Picture:
http://i.imgur.com/ngO4RZV.jpg

zerjz3 02-10-2016 02:16 AM

We use this on Sanctuary, and love it! It's great being able to read and talk ingame from my phone wherever I am

N0ctrnl 02-10-2016 07:15 PM

The rule name should be "PlayerLogChat" :)

Shin Noir 02-10-2016 07:41 PM

Updated, thanks for the catch.

N0ctrnl 02-10-2016 07:45 PM

Sure :) Don't suppose you can tell me specifically which roles and channel permissions the relay account needs, can ya? I can't seem to pinpoint it and I get this annoying echo when it does work.

Shin Noir 02-10-2016 07:47 PM

I'm at work, but I can maybe help. Shoot me a discord invite?

Shin Noir 02-15-2016 07:18 AM

I'm working on improving this with a method that lets you cause broadcasts to go into discord #channels beyond just normal OOC style.

zerjz3 04-07-2016 02:31 AM

Quote:

Originally Posted by Shin Noir (Post 247134)
I'm working on improving this with a method that lets you cause broadcasts to go into discord #channels beyond just normal OOC style.

Did anything ever come of this idea?

Is there any chance of getting the source to this? Reason I ask, I have changed the name of the 'out of character' channel on my server and would like to update my discordeq.exe to append something other than 'OOC' to the player name in Discord

Shin Noir 04-07-2016 03:16 PM

Quote:

Originally Posted by zerjz3 (Post 248214)
Did anything ever come of this idea?

Is there any chance of getting the source to this? Reason I ask, I have changed the name of the 'out of character' channel on my server and would like to update my discordeq.exe to append something other than 'OOC' to the player name in Discord

The source is on github. https://github.com/Xackery/discordeq
you'll need Go to compile it, I was working on the custom channel support.

When you say you changed the name of the out of character channel on your server, are you referring to the discord server channel? If so, you can simply edit your eqemu_config.xml file to redirect to the new channel id.

As far as the OOC prefix change, yeah, that'd require a recompile of the source since I hard coded it for the time being.

zerjz3 04-07-2016 04:27 PM

Quote:

Originally Posted by Shin Noir (Post 248216)
The source is on github. https://github.com/Xackery/discordeq
you'll need Go to compile it, I was working on the custom channel support.

When you say you changed the name of the out of character channel on your server, are you referring to the discord server channel? If so, you can simply edit your eqemu_config.xml file to redirect to the new channel id.

As far as the OOC prefix change, yeah, that'd require a recompile of the source since I hard coded it for the time being.

I actually changed the in-game ooc channel to be called "general chat" so yup I will have to edit and recompile - thank you much for the source!

zerjz3 04-07-2016 05:42 PM

So here's what I've done.... in eqstr_us I have changed the string for "out of character" to read "in general chat" , which works fine to change how /ooc appears ingame.. instead of Zerjz says out of character, now it says Zerjz says in general chat.. great. Perfect!

These messages are still being parsed in Discord like always..

What DOESN'T work now, is Discord->EQ ... and I can't figure out why. I've searched through the source files of discordeq and I'm not finding any strings that say "out of character" for me to simply change to say "in general chat" , which is what I suspected would be my fix. I'm also not at all seeing where "OOC" is being appended to player names in the Discord channel. What am I missing here, Shin?

http://imgur.com/PvbWyub

Shin Noir 04-07-2016 08:20 PM

Most of the heavy lifting for Discord=>EQ is done on the script.
The script is parsing entries in your qs_playerspeech DB table.

First check if the table shows your discord chat in it. (It should have a From field entry of !discord). If those are in the DB, it has to do with the script file.

Shin Noir 10-06-2016 03:34 PM

New update on this, version 0.4

http://i.imgur.com/nWDXs2B.png

You can now set itemlinks if you have an alla clone, and it also now uses telnet, meaning setup is easier, and performance is more realtime

SouthernOgre 01-30-2017 08:11 PM

*edit*
As is appropriate, I tested again without any change and I no longer receive that error when sending a message from discord into ooc.

However, the messages still do not display in game. Looking at the eqdiscord window, it looks like it succeeds.

Hi Shin,

Really cool tool. I'm a big fan of Discord, and having this integration is a really great way to bring a server community together.

I'm having some trouble setting it up. I can get the ooc chat to appear in Discord, however I cannot get Discord chat to appear in game. The error I'm receiving is:

Code:

[discord] Error getting roles: HTTP 403 FOrbidden, {"code": 50013, "message": "Missing Permissions"}
Any guidance you can provide would be appreciated!

atomic 03-27-2017 01:35 AM

I think i have this 99% working but my problem is my speech in database is always empty. I have chatlogging = true and i'm restarted server many times. Could this be disabled in akka's build even if rules have been changed?

Akkadius 03-27-2017 11:35 AM

It doesn't require that anymore, new setup should be on his Github

atomic 03-27-2017 12:24 PM

ok thanks akkadius i've got his git hub. maybe something is still on me thats old file. ill have another look

Akkadius 03-27-2017 12:36 PM

New releases are on the github as well

atomic 03-27-2017 12:39 PM

thats what was wrong. i used the link at the top for windows server, it wasn't version 0.44. Problem now is it says telnet isnt enabled when it is.
</loginserver2>

<tcp ip="192.168.0.20" port="9000" telnet="enable"/>

Akkadius 03-27-2017 12:40 PM

Needs to be "enabled" not "enable"

atomic 03-27-2017 12:49 PM

hehe yeah works now. many thanks

Shin Noir 06-20-2017 01:37 AM

Tossed out v0.46, to support the latest master.

Toony 08-12-2017 06:10 PM

Hmm, I'm getting

Code:

2017/08/12 18:11:45 Starting DiscordEQ v0.45
[ERROR] 2017/08/12 18:11:45 I don't see a username set in your <discord><username> section of eqemu_config.xml, please adjust.

when I startup the app but here's what I have in my eqemu_config.xml

Code:

        <!-- Discord Configuration -->
                <discord>
                        <username>my@email.com</username>
                        <password>mypass</password>
                        <telnetusername>mygmlogin</telnetusername>
                        <telnetpassword>mygmloginpass</telnetpassword>       
                            <serverid>230281221039587328</serverid>
                            <channelid>345993576783806465</channelid>
                        <refreshrate>5</refreshrate>
                </discord>


Sturm 08-15-2017 11:12 PM

Mine keeps disconnecting, I'm having to use an older version.

Warning while checking for messages: Error reading: EOF

and I'm getting a warning about to many messages and that seems to break it as well.

Worked great for a couple days. lol

Sturm 08-22-2017 10:55 PM

Still getting the:
Warning while checking for messages: Error reading: EOF
Except now it reconnects automatically and am using the latest version.

Shin Noir 10-22-2017 11:37 AM

I don't really track this topic, sorry, I should probably say contact me on discord, best bet, assuming you're in it. EQemu discord channel, you'll see me there as Shin Noir

Shin Noir 02-12-2018 05:21 AM

Added bot support
https://github.com/xackery/discordeq/releases/

Toony 07-09-2022 10:50 PM

Sorry for necroing...

Anyone else that's gotten this to work willing to lend a hand?

I copied the info to my eqemu_config.json

But I still get errors like

Code:

2022/07/09 22:15:41 Starting DiscordEQ 0.52.0
[ERROR] 2022/07/09 22:15:41 error while loading eqemu_config to start: failed to load json: failed to unmarshal config: invalid character '"' after object key:value pair,  xml: failed to open config: open : The system cannot find the file specified.

The file works otherwise, I pasted the new code in right after
Code:

{
 "server": {
  "chatserver": {
  "host": "",
  "port": "7778"


fryguy 07-09-2022 11:16 PM

DiscordEQ was replaced by https://github.com/xackery/talkeq


All times are GMT -4. The time now is 05:00 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.