Welcome Message posted twice. #66

Open
opened 4 months ago by fatihG · 23 comments
fatihG commented 4 months ago

https://upload.vaa.red/nBxmJ#446799f23157badc2e1666e3cfeedcbf

Hi,

Not sure if I somehow messed it up or what.
But TRBot is posted the welcome message twice.

https://upload.vaa.red/nBxmJ#446799f23157badc2e1666e3cfeedcbf Hi, Not sure if I somehow messed it up or what. But TRBot is posted the welcome message twice.
Owner

Does this happen every time? It appears that TRBot somehow connected to the same channel twice, thus outputting the message twice since this message is sent upon joining a channel. This could indicate a network issue.

Does this happen every time? It appears that TRBot somehow connected to the same channel twice, thus outputting the message twice since this message is sent upon joining a channel. This could indicate a network issue.
kimimaru added the
bug
label 4 months ago
Poster

Yes this happens every time that TRBot connects.

I reformatted my old Laptop just to run TRBot, so apart from anything I did for TRBot, no other modifications were made.

In case its a physical issue, routers/modems/hardware... I would have no idea where to start looking.

Yes this happens every time that TRBot connects. I reformatted my old Laptop just to run TRBot, so apart from anything I did for TRBot, no other modifications were made. In case its a physical issue, routers/modems/hardware... I would have no idea where to start looking.
Owner

@fatihG Is this issue still occurring? Does it happen on a fresh TRBot install?

@fatihG Is this issue still occurring? Does it happen on a fresh TRBot install?
Poster

Hi,

I wont be able to test or make any modifications for at least 2 weeks.

Ill play around again when things slow down for me.

Sorry.

Hi, I wont be able to test or make any modifications for at least 2 weeks. Ill play around again when things slow down for me. Sorry.
Owner

No need to apologize; I appreciate the quick reply!

No need to apologize; I appreciate the quick reply!
Poster

I went home today to grab the laptop.
I am currently at another location with the same laptop and I get the same issue.

Welcome message being posted twice.

I just updated to the latest version and did another build.
Ran the bot again, welcome message still being posted twice.

Set current working directory to: D:\Repos\TRBot3\TRBot\TRBot.Main\bin\Debug\net5.0
[23:09:14 INF] Validating database at: D:\Repos\TRBot3\TRBot\TRBot.Main\bin\Debug\net5.0\Data\TRBotData.db
[23:09:14 INF] Database path validated! Initializing database and importing migrations.
[23:09:15 INF] Checking to initialize default values for missing database entries.
[23:09:16 INF] Data version 2.3 is less than bot version 2.3.1. Updating version number and forcing database initialization for missing entries.
[23:09:16 INF] IMPORTANT: Run the UpdateEveryoneAbilitiesCommand (default: "!updateeveryoneabilities") to update all user abilities! Failure to do so may result in users being unable to perform actions that now have permissions.
[23:09:16 INF] force_init_defaults is true; initializing missing defaults in database.
[23:09:17 INF] Added 10 additional entries to the database.
[23:09:17 INF] Initializing client service
[23:09:17 INF] Setting up client service: Twitch
[23:09:17 INF] Setting up virtual controller manager.
[23:09:17 INF] vJoy driver found - Vendor: Shaul Eizikovich | Product: vJoy - Virtual Joystick | Version: 2.1.9
[23:09:17 INF] Using vJoy DLL version 536 and vJoy driver version 537 | Version Match: False
[23:09:17 INF] Acquired vJoy device ID 1!
[23:09:18 INF] Acquired vJoy device ID 2!
[23:09:18 INF] Setting up virtual controller vJoy and acquired 2 controllers!
[23:09:19 INF] Bot connected!
[23:09:19 INF] Joined channel "chatcommands"
[23:09:19 INF] Your friendly Twitch Plays bot has connected :D ! Use !inputs for all buttons, !tutorial to learn how to play, and !help for a list of bot commands! Original input parser by Jdog, aka TwitchPlays_Everything, rewritten and improved over time by the community.
[23:09:19 INF] Joined channel "chatcommands"
[23:09:19 INF] Your friendly Twitch Plays bot has connected :D ! Use !inputs for all buttons, !tutorial to learn how to play, and !help for a list of bot commands! Original input parser by Jdog, aka TwitchPlays_Everything, rewritten and improved over time by the community.

I went home today to grab the laptop. I am currently at another location with the same laptop and I get the same issue. Welcome message being posted twice. I just updated to the latest version and did another build. Ran the bot again, welcome message still being posted twice. ``` Set current working directory to: D:\Repos\TRBot3\TRBot\TRBot.Main\bin\Debug\net5.0 [23:09:14 INF] Validating database at: D:\Repos\TRBot3\TRBot\TRBot.Main\bin\Debug\net5.0\Data\TRBotData.db [23:09:14 INF] Database path validated! Initializing database and importing migrations. [23:09:15 INF] Checking to initialize default values for missing database entries. [23:09:16 INF] Data version 2.3 is less than bot version 2.3.1. Updating version number and forcing database initialization for missing entries. [23:09:16 INF] IMPORTANT: Run the UpdateEveryoneAbilitiesCommand (default: "!updateeveryoneabilities") to update all user abilities! Failure to do so may result in users being unable to perform actions that now have permissions. [23:09:16 INF] force_init_defaults is true; initializing missing defaults in database. [23:09:17 INF] Added 10 additional entries to the database. [23:09:17 INF] Initializing client service [23:09:17 INF] Setting up client service: Twitch [23:09:17 INF] Setting up virtual controller manager. [23:09:17 INF] vJoy driver found - Vendor: Shaul Eizikovich | Product: vJoy - Virtual Joystick | Version: 2.1.9 [23:09:17 INF] Using vJoy DLL version 536 and vJoy driver version 537 | Version Match: False [23:09:17 INF] Acquired vJoy device ID 1! [23:09:18 INF] Acquired vJoy device ID 2! [23:09:18 INF] Setting up virtual controller vJoy and acquired 2 controllers! [23:09:19 INF] Bot connected! [23:09:19 INF] Joined channel "chatcommands" [23:09:19 INF] Your friendly Twitch Plays bot has connected :D ! Use !inputs for all buttons, !tutorial to learn how to play, and !help for a list of bot commands! Original input parser by Jdog, aka TwitchPlays_Everything, rewritten and improved over time by the community. [23:09:19 INF] Joined channel "chatcommands" [23:09:19 INF] Your friendly Twitch Plays bot has connected :D ! Use !inputs for all buttons, !tutorial to learn how to play, and !help for a list of bot commands! Original input parser by Jdog, aka TwitchPlays_Everything, rewritten and improved over time by the community. ```
Owner

Does it happen with a fresh database file? Back up your TRBotData.db and rename or move it out of the folder, then run TRBot again to generate a new one.

Does it happen with a fresh database file? Back up your `TRBotData.db` and rename or move it out of the folder, then run TRBot again to generate a new one.
Owner

@fatihG Any luck reproducing this on a fresh database file with the above instructions?

@fatihG Any luck reproducing this on a fresh database file with the above instructions?
Poster

Hi, sorry.

Whenever I have time to update the bot I will give this a quick shot!

Hi, sorry. Whenever I have time to update the bot I will give this a quick shot!
Poster

hi, sorry for the late reply.

Tested this right now. On the build that I had running from like 2 months ago.
New database, welcome message posted twice.

Just cloned a new project, with the latest build from master.
Totally fresh build, only thing I copied over was the twitchlogin file.
Same issue, welcome message posted twice.

--edit--

Did a quick test and pulled from the develop branch.
Same thing happens with a fresh database.
The welcome message gets posted twice.

hi, sorry for the late reply. Tested this right now. On the build that I had running from like 2 months ago. New database, welcome message posted twice. Just cloned a new project, with the latest build from master. Totally fresh build, only thing I copied over was the twitchlogin file. Same issue, welcome message posted twice. --edit-- Did a quick test and pulled from the develop branch. Same thing happens with a fresh database. The welcome message gets posted twice.
Owner

Unfortunately, I'm still unable to replicate this on my end.

I noticed in the initial screenshot that the build is Debug in a "Debug/net5.0" folder, which indicates it was built with dotnet build or dotnet run, or built in an IDE. Sometimes, previous builds will be cached if the output directory hasn't been cleaned and the bin and obj folders have the same files.

Can you try with a Release self-contained build output to a separate folder? Official builds are created with a Release configuration.

Unfortunately, I'm still unable to replicate this on my end. I noticed in the initial screenshot that the build is Debug in a "Debug/net5.0" folder, which indicates it was built with `dotnet build` or `dotnet run`, or built in an IDE. Sometimes, previous builds will be cached if the output directory hasn't been cleaned and the `bin` and `obj` folders have the same files. Can you try with a [Release self-contained build](https://codeberg.org/kimimaru/TRBot/src/branch/master/Wiki/Building.md#building-from-source) output to a separate folder? Official builds are created with a Release configuration.
Poster

I am building it directly in Visual Studio 2019.

Whenever I want to update the project, for testing purpose, I just clone a new project.
Everytime I do that I set up a new directory.

Not sure if that is what you mean.

https://upload.vaa.red/zNqmy#b8e6713e54a29ae559dffb6ad034fdc8

I am building it directly in Visual Studio 2019. Whenever I want to update the project, for testing purpose, I just clone a new project. Everytime I do that I set up a new directory. Not sure if that is what you mean. https://upload.vaa.red/zNqmy#b8e6713e54a29ae559dffb6ad034fdc8
Owner

Great, thanks for confirming. Next, build a Release configuration in Visual Studio. If you're still experiencing the same issue, build with the dotnet publish command I linked above.

Great, thanks for confirming. Next, build a Release configuration in Visual Studio. If you're still experiencing the same issue, build with the `dotnet publish` command I linked above.
Owner

Hi @fatihG, have you had a chance to test on a Release build?

Hi @fatihG, have you had a chance to test on a Release build?
Poster

Sorry, I havent yet.

I will try that later today!

Sorry, I havent yet. I will try that later today!
Poster

Hi, I am not sure what is different.

But I am unable to build the project at all now.

https://upload.vaa.red/22Lvj8#d28d95fbc79468f6be13878c90646237

I tried both master and develop branches.
I tried both debug and release builds.

Hi, I am not sure what is different. But I am unable to build the project at all now. https://upload.vaa.red/22Lvj8#d28d95fbc79468f6be13878c90646237 I tried both master and develop branches. I tried both debug and release builds.
Owner

I forgot to add the TRBot.Events project to the solution file. It's fixed now in develop. However, there's only a need to build the TRBot.Main project, which already has a reference to that project. Let me know if this doesn't solve the issue.

I forgot to add the `TRBot.Events` project to the solution file. It's fixed now in `develop`. However, there's only a need to build the `TRBot.Main` project, which already has a reference to that project. Let me know if this doesn't solve the issue.
Poster
https://upload.vaa.red/2q5x2C#ba502340d043029a9153a2725eaacfe9 Still posting it twice
Owner

This is very strange and I'm unfortunately not sure what could be going on aside from something with the channel or a network nuance. Can you try with another channel (your personal Twitch account works too)?

This is very strange and I'm unfortunately not sure what could be going on aside from something with the channel or a network nuance. Can you try with another channel (your personal Twitch account works too)?
Poster

I've tried with my personal twitch channel, the same things happens.

I tried using my phone as a mobile hotspot, in case it might be something with my local network, doesnt seem to make any change.

I copied the entire directory of the project to my main desktop to run it there.
Same thing, double welcome message.

I am not sure what else I can do to help with this.
TwitchPlaysSpeedruns sent over his version of TRBot a while ago and I get the same thing with his setup as well. So it definitely seems like an issue on my end.
I am just not sure what could be causing it.

I've tried with my personal twitch channel, the same things happens. I tried using my phone as a mobile hotspot, in case it might be something with my local network, doesnt seem to make any change. I copied the entire directory of the project to my main desktop to run it there. Same thing, double welcome message. I am not sure what else I can do to help with this. TwitchPlaysSpeedruns sent over his version of TRBot a while ago and I get the same thing with his setup as well. So it definitely seems like an issue on my end. I am just not sure what could be causing it.
Owner

One more thing to try. Upgrade TwitchLib to the latest version. You can do this by opening the TRBot.Connection > TRBot.Connection.csproj file, then change the following line:

<PackageReference Include="TwitchLib" Version="3.2.0" />

To this:

<PackageReference Include="TwitchLib" Version="3.3.0" />

Rebuild TRBot, then run it and let me know if that changes anything for you. I'm sorry you've been experiencing this issue for so long.

One more thing to try. Upgrade TwitchLib to the latest version. You can do this by opening the **TRBot.Connection > TRBot.Connection.csproj** file, then change the following line: `<PackageReference Include="TwitchLib" Version="3.2.0" />` To this: `<PackageReference Include="TwitchLib" Version="3.3.0" />` Rebuild TRBot, then run it and let me know if that changes anything for you. I'm sorry you've been experiencing this issue for so long.
Poster

Sorry for the late reply... as always...

I tried setting it to 3.3.0 and it still happens after building.

Sorry for the late reply... as always... I tried setting it to 3.3.0 and it still happens after building.
Owner

No worries! I'll have to look into how to get more detailed logs from TwitchLib to see what's really going on. Thanks again for testing!

No worries! I'll have to look into how to get more detailed logs from TwitchLib to see what's really going on. Thanks again for testing!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.