Re: Proper disconnection with Podsixnet?

2020-07-09 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Proper disconnection with Podsixnet? I've not used Python for a while, but Twisted used to be great for most networking stuff. URL: https://forum.audiogames.net/post/550360/#p550360 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Proper disconnection with Podsixnet?

2020-07-08 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Proper disconnection with Podsixnet? @7I mean, it's not something you should know.  The only people who know how to do this are the people who get into monkeypatching.  It's a horrible horrible hack.How Python importing actually works is that it creates global variables in your file

Re: Proper disconnection with Podsixnet?

2020-07-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Proper disconnection with Podsixnet? I see. Thank you. It was not my choice to use the library, I had negative experiences with it beforehand. I will pass your message along.In retrospect I should have known that importing connection from the module would cause issues, but I did

Re: Proper disconnection with Podsixnet?

2020-07-08 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Proper disconnection with Podsixnet? @5To replace a variable in a module, you must do:import mymod mymod.thing = 5Not:from mymod import thing thing = 5The latter introduces a new name in the current scope. IN general this strategy is flawed anyway.  You can't actually fully reliably

Re: Proper disconnection with Podsixnet?

2020-07-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Proper disconnection with Podsixnet? So an update.We fixed the issues with connection, but we gained a whole bucket of new problems in the process.Not calling connection.close causes the following scenarios to occur.1. I log in. Everyone gets alerted that I am online.2. I press escape

Re: Proper disconnection with Podsixnet?

2020-07-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Proper disconnection with Podsixnet? So an update.We fixed the issues with connection, but we gained a whole bucket of new ones in the process.Not calling connection.close causes the following scenarios to occur.1. I log in. Everyone gets alerted that I am online.2. I press escape

Re: Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Proper disconnection with Podsixnet? Replacing the connection did work, thank you. We had to give up on calling connection.close() and replaced the old instance with a new one. URL: https://forum.audiogames.net/post/549831/#p549831 -- Audiogames-reflector mailing list Audiogames

Re: Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Proper disconnection with Podsixnet? Thank you. If someone else has any ideas I'm open to hearing them, but as of right now I will do what you suggested. Appreciate the response. URL: https://forum.audiogames.net/post/549640/#p549640 -- Audiogames-reflector mailing list

Re: Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Proper disconnection with Podsixnet? I looked out of curiosity because podsixnet is surely, surely UDP and I vaguely wondered what it's using.  But actually no it's TCP.  And more to the point it looks like connection is a singleton, which is kinda braindead.  But if you just import

Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Proper disconnection with Podsixnet? Recently one of my friends attempted to use the previously mentioned culprit. He managed to edit the chat client example and give it a proper window using Lucia. However, he has encountered an issue: If the server errors out and the client disconnects

Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Proper disconnection with Podsixnet? Recently one of my friends attempted to use the previously mentioned culprit. He managed to edit the chat client example and give it a proper window using Lucia. However, he has encountered an issue: If the server errors out and the client disconnects

Proper disconnection with Podsixnet?

2020-07-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Proper disconnection with Podsixnet? Recently one of my friends attempted to use the previously mentioned culprit. He managed to edit the chat client example and give it a proper window using Lucia. However, he has encountered an issue: If the server errors out and the client disconnects