pblop / twitch-chat

Minecraft-Twitch bridge for Fabric!
MIT License
22 stars 14 forks source link

Not receiving messages #4

Closed iMcFly closed 4 years ago

iMcFly commented 4 years ago

Hi!

I'm able to enable the twitch chat and it shows that it connects, I can send a message to my Twitch chat using the prefix I set up (and have verified that works), but the chat itself does not appear in Minecraft. So I'm effectively able to send messages but not receive them.

pblop commented 4 years ago

Hey, which Minecraft version are you on? And you're on the latest mod version on CurseForge, b0.5.1, right?

iMcFly commented 4 years ago

Hey! Thanks for the support! Yes, I'm up to date on everything.

I'm running;

pblop commented 4 years ago

Could you keep the launcher console open while you run your game and send me a copy of the log (it should display any messages you receive and errors the mod runs into).

You can keep the launcher open by going to settings and clicking "Keep the Launcher open while games are running".

iMcFly commented 4 years ago

See attached. For context; I started up the game, connected to the world on my server, connected to the twitch chat and sent a test message both via the game and via twitch.tv. Then quit the game. latest.log

pblop commented 4 years ago

I'm gonna be honest, I have no clue why your client is not receiving any messages. Could you try using this build and doing the same you just did on your last message?

iMcFly commented 4 years ago

Getting the same behaviour with the new build. So weird. The only thing that I can think of is that I'm on a Mac; I figure that shouldn't make any difference with it being Java but not sure if it's expecting any Windows-dependencies of some sort? (Not a software developer so no idea - shot in the dark).

pblop commented 4 years ago

Yeah, it's the same build, just added a little more console output when it receives messages, could you send me a log of that?

It should work on macOS, I develop the mod on a Mac so I don't thinking that's a problem. BTW, which Java version are you on?

iMcFly commented 4 years ago

Oh excellent! And sorry I didn't even think to send the latest.log.

java version "12" 2019-03-19 Java(TM) SE Runtime Environment (build 12+33) Java HotSpot(TM) 64-Bit Server VM (build 12+33, mixed mode, sharing)

pblop commented 4 years ago

Ok, I can't recreate your environment because Java 12 is no longer supported, could you upgrade to Java 13?

iMcFly commented 4 years ago

Sure!

Now on java version "13.0.2" 2020-01-14 Java(TM) SE Runtime Environment (build 13.0.2+8) Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

Rebooted after installation. Issue persists. Here's the latest.log

pblop commented 4 years ago

I've noticed you have some other mods, I don't think my mod does something specific enough to make it non-compatible with any mods, but it's giving me enough of a headache as is, so, could you rename the mods to something like *.jar.disabled before running the test?

I want you to test this build, it logs a bunch more stuff (sometimes even three times...). But before you send the log file, make sure to remove your oauth key (you can find it by searching for "oauth:" with notepad, there should be three occurrences).

I'd also like you to send me your config.json file in .minecraft/config, make sure to remove your oauth key here as well.

iMcFly commented 4 years ago

Absolutely! I've done as requested and so now the only mods that are active are the Fabric API, Mod Menu, and your latest build.

Here's the latest.log with the oauth keys removed.

And this is the contents of my config.json file;

{"channel":"AlastairMcFly","username":"AlastairMcFly","oauthKey":"oauth:[redacted]","prefix":":"}

pblop commented 4 years ago

Could you try on another channel? I've tested on your channel and it doesn't work for me either. I'm looking into why it doesn't work, though.

pblop commented 4 years ago

Ha! Catched the bug! When you send messages to channels (which you can do without joining them), Twitch doesn't care about cAsE, but when you want to join a channel (to listen to messages on it), it does care. I had always tested with my Twitch channel, which for some reason worked fine with case, but yours doesn't. Anyways, it now works. Gonna clean up the code a bit, push it to git and put it on CurseForge.

pblop commented 4 years ago

Before closing this, could you try using this build? Just to make sure it works before releasing on CurseForge. No need to send logs.

iMcFly commented 4 years ago

That latest build works! Nice bug catch. Thank you so much!!