blakepell / AvalonMudClient

A Windows MUD client written in C#/WPF for .NET 8.
Other
31 stars 7 forks source link

AutoExec profile setting sometimes not firing. #41

Closed blakepell closed 3 years ago

blakepell commented 3 years ago

Rethink this, it's not currently very useful. The issue is that commands aren't processed currently if the profile's connection to the game is open. If the game auto connects the autoexec sometimes fires and works and sometimes fired and aren't processed because the connection to the game isn't open (race condition).

One of two things should occur (or, both):

1.) Convert this to be a Lua Event instead that gets executed. This would skip the command interpreter unless lua.Send was called but would allow the user to run setup commands. 2.) Allow commands to process even if the connection isn't open and just let the network commands error if they're called.

blakepell commented 3 years ago

I believe this was fixed with proper async await support of the TCP connection. Will re-open if it see it's not working.